[ http://issues.apache.org/jira/browse/JDO-208?page=comments#action_12357308 ]
Michelle Caisse commented on JDO-208: ------------------------------------- Now I'm seeing this FK error for datastore identity only for tests TestHashtableStringKeyCollections and TestTreeMapStringKeyCollections. schema.sql incorrectly assigned the primary key constraint to the IDENTIFIER column rather than the DATASTORE_IDENTITY column -- a cut and paste error. Fixed with revision 332395. > Unexpected error during precommit -- java.util.NoSuchElementException > --------------------------------------------------------------------- > > Key: JDO-208 > URL: http://issues.apache.org/jira/browse/JDO-208 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Michelle Caisse > Assignee: Michelle Caisse > > Tests affected: > TestHashMapStringValueCollections > TestHashtableStringValueCollections > TestTreeMapStringValueCollections > TestMapStringValueCollections > test(org.apache.jdo.tck.models.fieldtypes.TestHashMapStringValueCollections)javax.jdo.JDOException: > Unexpected error during precommit > at > org.jpox.AbstractPersistenceManager.preCommit(AbstractPersistenceManager.java:3048) > at org.jpox.NonmanagedTransaction.commit(NonmanagedTransaction.java:420) > at > org.apache.jdo.tck.models.fieldtypes.TestHashMapStringValueCollections.runTest(TestHashMapStringValueCollections.java:100) > at > org.apache.jdo.tck.models.fieldtypes.TestHashMapStringValueCollections.test(TestHashMapStringValueCollections.java:71) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204) > at > org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120) > at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95) > NestedThrowablesStackTrace: > java.util.NoSuchElementException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:785) > at java.util.HashMap$KeyIterator.next(HashMap.java:818) > at org.jpox.sco.HashMap.setValueFrom(HashMap.java:194) > at org.jpox.sco.SCOUtils.newSCOInstance(SCOUtils.java:87) > at > org.jpox.state.StateManagerImpl.newSCOInstance(StateManagerImpl.java:2938) > at > org.jpox.state.StateManagerImpl.replaceSCOField(StateManagerImpl.java:2955) > at > org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeObjectField(ParameterSetter.java:135) > at > org.jpox.state.StateManagerImpl.providedObjectField(StateManagerImpl.java:2462) > at > org.apache.jdo.tck.pc.fieldtypes.HashMapStringValueCollections.jdoProvideField(HashMapStringValueCollections.java) > at > org.apache.jdo.tck.pc.fieldtypes.HashMapStringValueCollections.jdoProvideFields(HashMapStringValueCollections.java) > at > org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:2799) > at > org.jpox.store.rdbms.request.UpdateRequest.execute(UpdateRequest.java:209) > at org.jpox.store.rdbms.table.ClassTable.update(ClassTable.java:1931) > at org.jpox.store.StoreManager.update(StoreManager.java:780) > at org.jpox.state.StateManagerImpl.flush(StateManagerImpl.java:4336) > at > org.jpox.state.StateManagerImpl.runReachability(StateManagerImpl.java:3099) > at > org.jpox.AbstractPersistenceManager.preCommit(AbstractPersistenceManager.java:3001) > at org.jpox.NonmanagedTransaction.commit(NonmanagedTransaction.java:420) > at > org.apache.jdo.tck.models.fieldtypes.TestHashMapStringValueCollections.runTest(TestHashMapStringValueCollections.java:100) > at > org.apache.jdo.tck.models.fieldtypes.TestHashMapStringValueCollections.test(TestHashMapStringValueCollections.java:71) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204) > at > org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:120) > at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:95) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
