kodo.util.FatalUserException: Attempt to set column "CHILD.parentId" to two different values: (class java.lang.Integer)"0", (class java.lang.Integer)"2,503" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these fields in synch.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
Attempt to set column "CHILD.parentId" to two different values: (class java.lang.Integer)"0", (class java.lang.Integer)"2,503" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these fields in synch.
via Oracle Community by 3004, 1 year ago
Attempt to set column "BASECLASSPC.REFERENCEDCLASS_JDOID" to two different values: (null)"null", (class java.lang.Long)"251" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these fields in synch.
via Oracle Community by 3004, 1 year ago
Attempt to set column "ADDRESS.P_ID" to two different values: (null)"null", (class java.lang.Long)"1'750" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these fields in synch.
kodo.util.FatalUserException: Attempt to set column "CHILD.parentId" to two different values: (class java.lang.Integer)"0", (class java.lang.Integer)"2,503" This can occur when you fail to set both sides of a two-sided relation between objects, or when you map different fields to the same column, but you do not keep the values of these fields in synch.
at kodo.jdbc.sql.PrimaryRow.setObject(PrimaryRow.java:215)
at kodo.jdbc.sql.RowImpl.flushJoinValues(RowImpl.java:267)
at kodo.jdbc.sql.RowImpl.flushForeignKey(RowImpl.java:189)
at kodo.jdbc.sql.RowImpl.setForeignKey(RowImpl.java:158)
at kodo.jdbc.sql.PrimaryRow.generateSQL(PrimaryRow.java:238)
at kodo.jdbc.sql.RowImpl.getSQL(RowImpl.java:681)
at kodo.jdbc.runtime.UpdateManagerImpl$SQLComparator.compare(UpdateManagerImpl.java:773)
at java.util.Arrays.mergeSort(Arrays.java:1278)
at java.util.Arrays.sort(Arrays.java:1219)
at java.util.Collections.sort(Collections.java:155)
at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:437)
at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:192)
at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:609)
at kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at kodo.datacache.DataCacheStoreManager.flush(DataCacheStoreManager.java:507)
at kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
at kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1159)
at kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1042)
at kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:812)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.