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.)

Oracle Community | 666705 | 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

    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.)
  2. 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.

    Root Cause Analysis

    1. 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.

      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.setObject
      1. kodo.jdbc.sql.AbstractRow.setObject(AbstractRow.java:562)
      1 frame
    4. kodo.jdbc.meta
      ColumnVersionIndicator.update
      1. kodo.jdbc.meta.ColumnVersionIndicator.change(ColumnVersionIndicator.java:512)
      2. kodo.jdbc.meta.ColumnVersionIndicator.update(ColumnVersionIndicator.java:435)
      2 frames
    5. kodo.jdbc.runtime
      JDBCStoreManager.flush
      1. kodo.jdbc.runtime.UpdateManagerImpl.update(UpdateManagerImpl.java:315)
      2. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:128)
      3. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:73)
      4. kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:588)
      4 frames
    6. kodo.runtime
      PersistenceManagerImpl.beforeCompletion
      1. kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:152)
      2. kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:969)
      3. kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:814)
      3 frames
    7. JBoss Transaction 7.1.0 SPI
      TransactionImpl.commit
      1. org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1362)
      2. org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:347)
      2 frames
    8. JBoss Application Server Server
      Container.invoke
      1. org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:458)
      2. org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:326)
      3. org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
      4. org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111)
      5. org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
      6. org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      7. org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
      8. org.jboss.ejb.Container.invoke(Container.java:709)
      8 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:324)
      3 frames
    10. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      2. org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      3. org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      4. org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      5. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      6. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      6 frames
    11. JBoss Application Server Server
      JRMPInvoker.invoke
      1. org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
      1 frame
    12. Java RT
      Thread.run
      1. sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:324)
      4. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      5. sun.rmi.transport.Transport$1.run(Transport.java:148)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      8. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      9. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      10. java.lang.Thread.run(Thread.java:534)
      10 frames