Re: big problem with release version 1.0

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Oct 03 2003 - 12:25:32 EDT

  • Next message: Andrus Adamchik: "Re: big problem with release version 1.0"

    Michael,

    Browsing through the code, now I can see this can possibly happen if there
    is a new (uncommitted) object being the target of to-one relationship of
    the object being fetched... This looks like your case.

    I will be patching 1.0 and make it available later today.

    If the patched version works for you, next week we will make it official
    via a 1.0.1 maintenance release.

    Andrus

    >
    > org.objectstyle.cayenne.CayenneRuntimeException: [v.1.0 September 20
    > 2003] Global exception.
    > at
    > .
    > .
    > .
    > .
    > Caused by: java.lang.NullPointerException
    > at
    > org.objectstyle.cayenne.ObjectId.getValueForAttribute(ObjectId.java:145)
    > at
    > org.objectstyle.cayenne.access.SnapshotManager.isToOneTargetModified(Snapsho
    > tManager.java:337)
    > at
    > org.objectstyle.cayenne.access.SnapshotManager.mergeObjectWithSnapshot(Snaps
    > hotManager.java:246)
    > at
    > org.objectstyle.cayenne.access.DataContext.objectFromDataRow(DataContext.jav
    > a:336)
    > 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)
    > ... 59 more
    >
    >
    >
    > Thank you
    >
    > Michael



    This archive was generated by hypermail 2.0.0 : Fri Oct 03 2003 - 12:25:33 EDT