Re: "Can't build a query for temporary id" after upgrade from 1.2B2 to 1.2RC2

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Jul 05 2006 - 15:39:05 EDT

  • Next message: Mike Kienenberger: "Re: "Can't build a query for temporary id" after upgrade from 1.2B2 to 1.2RC2"

    Well, stepping through it in the debugger shows the state of the
    object as new at this point with B2 but hollow with RC2. Guess I
    need to track down what caused the persistent state change.

    On 7/5/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > Looks like you have a HOLLOW object with a temporary ID? Strange...
    >
    > Andrus
    >
    >
    > On Jul 5, 2006, at 3:20 PM, Mike Kienenberger wrote:
    >
    > > I'm not entirely certain what's changed between 1.2B2 and 1.2RC2, but
    > > I'm now getting this error when I upgrade.
    > >
    > > This is reading a property a newly-created data object.
    > >
    > > CayenneDataObject.readProperty returned null in B2 rather than
    > > throwing an exception.
    > >
    > >
    > > Caused by: org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2RC2
    > > June 23 2006] Can't build a query for temporary id:
    > > <ObjectId:EasementDocument, TEMP:0000000F51E40161>
    > > at
    > > org.objectstyle.cayenne.query.ObjectIdQuery.createReplacementQuery
    > > (ObjectIdQuery.java:151)
    > > at org.objectstyle.cayenne.query.IndirectQuery.getReplacementQuery
    > > (IndirectQuery.java:111)
    > > at org.objectstyle.cayenne.query.IndirectQuery.route
    > > (IndirectQuery.java:94)
    > > at org.objectstyle.cayenne.access.DataDomainQueryAction.runQuery
    > > (DataDomainQueryAction.java:346)
    > > at org.objectstyle.cayenne.access.DataDomainQueryAction.access$000
    > > (DataDomainQueryAction.java:96)
    > > at org.objectstyle.cayenne.access.DataDomainQueryAction$1.transform
    > > (DataDomainQueryAction.java:327)
    > > at org.objectstyle.cayenne.access.DataDomain.runInTransaction
    > > (DataDomain.java:856)
    > > at
    > > org.objectstyle.cayenne.access.DataDomainQueryAction.runQueryInTransac
    > > tion(DataDomainQueryAction.java:324)
    > > at
    > > org.objectstyle.cayenne.access.DataDomainQueryAction.interceptOIDQuery
    > > (DataDomainQueryAction.java:172)
    > > at org.objectstyle.cayenne.access.DataDomainQueryAction.execute
    > > (DataDomainQueryAction.java:142)
    > > at org.objectstyle.cayenne.access.DataDomain.onQuery
    > > (DataDomain.java:766)
    > > at org.objectstyle.cayenne.access.ObjectStore.resolveHollow
    > > (ObjectStore.java:945)
    > > at org.objectstyle.cayenne.access.DataContext.prepareForAccess
    > > (DataContext.java:1842)
    > > at org.objectstyle.cayenne.CayenneDataObject.readProperty
    > > (CayenneDataObject.java:238)
    > > at
    > > com.gvea.eng_work_mgmt.entity.cayenne.generated._EasementDocumentImpl.
    > > getEasementType(_EasementDocumentImpl.java:309)
    > > ... 72 more
    > >
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Jul 05 2006 - 15:39:29 EDT