cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Dombrosky" <>
Subject Can't extract a master key
Date Thu, 31 Jul 2008 03:43:27 GMT
I am currently getting a strange exception when trying to commit some
objects to the db.  I'm hoping someone here can help me figure it out.

org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT May 16
2008 12:28:23] Can't extract a master key. Missing key (id), master ID
(<ObjectId:MyDataObject, TEMP:001A1A0065510101>)
       at org.apache.cayenne.access.DataDomainSyncBucket$PropagatedValueFactory.create(
       at org.apache.cayenne.query.BatchQuery.getValue(
       at org.apache.cayenne.query.InsertBatchQuery.getValue(
       at org.apache.cayenne.access.trans.InsertBatchQueryBuilder.getParameterValues(
       at org.apache.cayenne.access.jdbc.BatchAction.runAsBatch(
       at org.apache.cayenne.access.jdbc.BatchAction.performAction(
       at org.apache.cayenne.access.DataNodeQueryAction.runQuery(
       at org.apache.cayenne.access.DataNode.performQueries(
       at org.apache.cayenne.access.DataDomainFlushAction.runQueries(
       at org.apache.cayenne.access.DataDomainFlushAction.flush(
       at org.apache.cayenne.access.DataDomain.onSyncFlush(
       at org.apache.cayenne.access.DataDomain$2.transform(
       at org.apache.cayenne.access.DataDomain.runInTransaction(
       at org.apache.cayenne.access.DataDomain.onSync(
       at org.apache.cayenne.access.DataContext.flushToParent(
       at org.apache.cayenne.access.DataContext.commitChanges(

Any idea what this means?  I'm using some 1:1 mappings on the PK of
this table, and also some cayenne inheritance, so it's possible I set
something up wrong.


View raw message