Strange Null Pointer

From: Bret Gregory (bret.gregor..ccesspointinc.com)
Date: Wed Jan 07 2004 - 14:47:03 EST

  • Next message: Andrus Adamchik: "Re: Global Exception"

     java.lang.NullPointerException
            at
    org.objectstyle.cayenne.ObjectId.getValueForAttribute(ObjectId.java:188)
            at
    org.objectstyle.cayenne.access.SnapshotManager.isToOneTargetModified(Snapsho
    tManager.java:340)
            at
    org.objectstyle.cayenne.access.SnapshotManager.mergeObjectWithSnapshot(Snaps
    hotManager.java:246)
            at
    org.objectstyle.cayenne.access.DataContext.objectFromDataRow(DataContext.jav
    a:335)
            at
    org.objectstyle.cayenne.access.util.ContextSelectObserver.nextDataRows(Conte
    xtSelectObserver.java:115)
            at
    org.objectstyle.cayenne.access.DataNode.runSelect(DataNode.java:401)
            at
    org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:281)
            at
    org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:466
    )
            at
    org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:8
    86)
            at
    org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:938
    )
            at
    org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:816
    )
            at
    org.objectstyle.cayenne.access.util.RelationshipDataSource.updateListData(Re
    lationshipDataSource.java:97)
            at
    org.objectstyle.cayenne.access.ToManyList.getObjectList(ToManyList.java:120)
            at
    org.objectstyle.cayenne.access.ToManyList.hashCode(ToManyList.java:174)
            at java.lang.Object.toString(Object.java:206)
            at java.lang.String.valueOf(String.java:2131)
            at java.lang.StringBuffer.append(StringBuffer.java:370)
            at
    api.reconciliation.conversion.AutoCbosConverter.processVendorCharges(AutoCbo
    sConverter.java:220)
            at
    api.reconciliation.conversion.AutoCbosConverter.processRows(AutoCbosConverte
    r.java:103)
            at
    api.reconciliation.conversion.AutoCbosConverter.<init>(AutoCbosConverter.jav
    a:29)

    I am getting this exception while trying to get the size of an ToManyList or
    to create an iterator off of the List.
    The list may or may not contain anything.

    I have looked for similar problem with this and I found something but source
    forge was being fical and not letting me get to it.

    This link was posted in a Nov 22, 2002 note.
    http://sourceforge.net/tracker/index.php?func=detail&aid=637545&group_id=481
    32&atid=452068
    <http://sourceforge.net/tracker/index.php?func=detail&aid=637545&group_id=48
    132&atid=452068>

    Any thoughts?



    This archive was generated by hypermail 2.0.0 : Wed Jan 07 2004 - 14:48:00 EST