You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michelle Caisse (JIRA)" <ji...@apache.org> on 2005/11/10 00:39:03 UTC
[jira] Created: (JDO-208) Unexpected error during precommit -- java.util.NoSuchElementException
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
Assigned to: Andy Jefferson
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
[jira] Assigned: (JDO-208) Unexpected error during precommit -- java.util.NoSuchElementException
Posted by "Andy Jefferson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-208?page=all ]
Andy Jefferson reassigned JDO-208:
----------------------------------
Assign To: Michelle Caisse (was: Andy Jefferson)
This is now fixed in JPOX CVS - builds dated 11/11/2005 or later will have it.
It brings us on to the next issue which seems to be in the schema. It inserts the row in the main table HASHMAPSTRINGVALUE_COLLECTIONS, and then tries to insert into HASHMAP_BIG_DECIMAL45_STR and throws a FK error (the FK back to the owner object). Is the "IDENTIFIER" join table column being FK'd back to the main table "IDENTIFIER" column ?
> 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
[jira] Commented: (JDO-208) Unexpected error during precommit -- java.util.NoSuchElementException
Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (JDO-208) Unexpected error during precommit -- java.util.NoSuchElementException
Posted by "Michelle Caisse (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JDO-208?page=all ]
Michelle Caisse resolved JDO-208:
---------------------------------
Resolution: Fixed
> 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