kodo.util.FatalUserException: Attempt to set column "DOCUMENTGROUP.DOCG_INDEX" to two different values: "0", "1" This usually occurs when you map different fields to the same column, but you do not keep the values of these fields in synch.

Oracle Community | 3004 | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Kodo 3 - inverse owner and order-column bug?

    Oracle Community | 1 decade ago | 3004
    kodo.util.FatalUserException: Attempt to set column "DOCUMENTGROUP.DOCG_INDEX" to two different values: "0", "1" This usually occurs when you map different fields to the same column, but you do not keep the values of these fields in synch.
  2. 0

    Optimistic Locking using version number column in Kodo 3.1.4

    Oracle Community | 1 decade ago | 666705
    kodo.util.FatalUserException: Attempt to set column "my_table.version_number" to two different values: (java.lang.Integer)"27", (java.lang.Integer)"29" 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.)

    Root Cause Analysis

    1. kodo.util.FatalUserException

      Attempt to set column "DOCUMENTGROUP.DOCG_INDEX" to two different values: "0", "1" This usually occurs when you map different fields to the same column, but you do not keep the values of these fields in synch.

      at kodo.jdbc.runtime.VRow.setObjectInternal()
    2. kodo.jdbc.runtime
      VRow.setObjectInternal
      1. kodo.jdbc.runtime.VRow.setObjectInternal(VRow.java:95)
      1 frame
    3. kodo.jdbc.sql
      AbstractRow.setInt
      1. kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java:535)
      2. kodo.jdbc.sql.AbstractRow.setInt(AbstractRow.java:301)
      2 frames
    4. kodo.jdbc.meta
      OneToManyFieldMapping.update
      1. kodo.jdbc.meta.OneToManyFieldMapping.updateInverse(OneToManyFieldMapping.java:364)
      2. kodo.jdbc.meta.OneToManyFieldMapping.update(OneToManyFieldMapping.java:299)
      2 frames
    5. kodo.jdbc.runtime
      JDBCStoreManager.flush
      1. kodo.jdbc.runtime.UpdateManagerImpl.update(UpdateManagerImpl.java:303)
      2. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:126)
      3. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:71)
      4. kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:503)
      4 frames
    6. kodo.runtime
      PersistenceManagerImpl.commit
      1. kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:158)
      2. kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:760)
      3. kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:639)
      4. kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
      5. kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:411)
      5 frames