"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:20:26 EDT

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

    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.runQueryInTransaction(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:20:50 EDT