kodo.util.FatalUserException: Attempt to set column "B.FOO" to two different values: (java.lang.Object)"java.lang.Object@2f608ac2", (java.lang.String)"fred" 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.runtime.VRow.setObjectInternal(VRow.java(Compiled Code)) at kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java(Compiled Code))

Oracle Community | 3004 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Horizontal Mapping and Flat mapping with Metadata Value Indicator

    Oracle Community | 1 decade ago | 3004
    kodo.util.FatalUserException: Attempt to set column "B.FOO" to two different values: (java.lang.Object)"java.lang.Object@2f608ac2", (java.lang.String)"fred" 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.runtime.VRow.setObjectInternal(VRow.java(Compiled Code)) at kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java(Compiled Code))

    Root Cause Analysis

    1. kodo.util.FatalUserException

      Attempt to set column "B.FOO" to two different values: (java.lang.Object)"java.lang.Object@2f608ac2", (java.lang.String)"fred" 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.runtime.VRow.setObjectInternal(VRow.java(Compiled Code)) at kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java(Compiled Code))

      at kodo.jdbc.meta.ColumnClassIndicator.insert()
    2. kodo.jdbc.meta
      ColumnClassIndicator.insert
      1. kodo.jdbc.meta.ColumnClassIndicator.insert(ColumnClassIndicator.java:143)
      1 frame
    3. kodo.jdbc.runtime
      UpdateManagerImpl.flush
      1. kodo.jdbc.runtime.UpdateManagerImpl.insert(UpdateManagerImpl.java:216)
      2. kodo.jdbc.runtime.UpdateManagerImpl.insert(UpdateManagerImpl.java:219)
      3. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:108)
      4. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:73)
      4 frames