com.solarmetric.kodo.runtime.OptimisticLockException: An instance wa s concurrently modified in another transaction (optimistic lock #: ???). [java] FailedObject:ibp.tran.model.Animal-15700 [java] at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping$3.after Update(ClassMapping.java:770) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut ePreparedStatementBatch(SQLExecutionManagerImpl.java:564) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut ePreparedStatement(SQLExecutionManagerImpl.java:425) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut eInternal(SQLExecutionManagerImpl.java:381) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.flush( SQLExecutionManagerImpl.java:255) [java] at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:514) [java] at com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager. flush(DataCacheStoreManager.java:655) [java] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.flushInte rnal(PersistenceManagerImpl.java:730) [java] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(Pe rsistenceManagerImpl.java:455) [java]

Oracle Community | 3004 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Query result delete?

    Oracle Community | 1 decade ago | 3004
    com.solarmetric.kodo.runtime.OptimisticLockException: An instance wa s concurrently modified in another transaction (optimistic lock #: ???). [java] FailedObject:ibp.tran.model.Animal-15700 [java] at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping$3.after Update(ClassMapping.java:770) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut ePreparedStatementBatch(SQLExecutionManagerImpl.java:564) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut ePreparedStatement(SQLExecutionManagerImpl.java:425) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut eInternal(SQLExecutionManagerImpl.java:381) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.flush( SQLExecutionManagerImpl.java:255) [java] at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:514) [java] at com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager. flush(DataCacheStoreManager.java:655) [java] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.flushInte rnal(PersistenceManagerImpl.java:730) [java] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(Pe rsistenceManagerImpl.java:455) [java]

    Root Cause Analysis

    1. com.solarmetric.kodo.runtime.OptimisticLockException

      An instance wa s concurrently modified in another transaction (optimistic lock #: ???). [java] FailedObject:ibp.tran.model.Animal-15700 [java] at com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping$3.after Update(ClassMapping.java:770) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut ePreparedStatementBatch(SQLExecutionManagerImpl.java:564) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut ePreparedStatement(SQLExecutionManagerImpl.java:425) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.execut eInternal(SQLExecutionManagerImpl.java:381) [java] at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.flush( SQLExecutionManagerImpl.java:255) [java] at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:514) [java] at com.solarmetric.kodo.runtime.datacache.DataCacheStoreManager. flush(DataCacheStoreManager.java:655) [java] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.flushInte rnal(PersistenceManagerImpl.java:730) [java] at com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(Pe rsistenceManagerImpl.java:455) [java]

      at ibp.test.ServiceBean.execute()
    2. ibp.test
      IbpTest.main
      1. ibp.test.ServiceBean.execute(ServiceBean.java:91)[java]
      2. ibp.test.IbpTest.doTest(IbpTest.java:116)[java]
      3. ibp.test.IbpTest.doTest(IbpTest.java:73)[java]
      4. ibp.test.IbpTest.main(IbpTest.java:311)[java]
      4 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
      1 frame