kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object "customer.model.Customer@146c2f2" with id "customer.model.Customer-99" to the data store. This indicates that the object was concurrently modified in another transaction. FailedObject:customer.model.Customer@146c2f2

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

    Why do I get OptimisticVerificationException

    Oracle Community | 1 decade ago | 3004
    kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object "customer.model.Customer@146c2f2" with id "customer.model.Customer-99" to the data store. This indicates that the object was concurrently modified in another transaction. FailedObject:customer.model.Customer@146c2f2
  2. 0

    Oracle batching causes optimistic lock exception

    Oracle Community | 1 decade ago | 3004
    kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object "com.attws.str ess.jdo.SubGadget@110c2e8" with id "com.attws.stress.jdo.Gadget-5023" to the data store. This indicates that the object was concurrently modified in another transaction. FailedObject:com.attws.stress.jdo.SubGadget@110c2e8
  3. 0

    Optimistic mode

    Oracle Community | 1 decade ago | 3004
    kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object instance "com.myapp.MyObject-17998021794883:18001095407305" to the data store. This indicates that the object was concurrently modified in another transaction.[com.myapp.MyObject-17998021794883:18001095407305]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OptimisticVerificationException with vertical mapping in kodo 3.4.0

    Oracle Community | 1 decade ago | 3004
    kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object instance "com.elaxy.service.product.jdoimpl.BEProductPO-26477" to the data store. This indicates that the object was concurrently modified in another transaction.[com.elaxy.service.product.jdoimpl.BEProductPO-26477]

    Root Cause Analysis

    1. kodo.util.OptimisticVerificationException

      An optimistic lock violation was detected when flushing object "customer.model.Customer@146c2f2" with id "customer.model.Customer-99" to the data store. This indicates that the object was concurrently modified in another transaction. FailedObject:customer.model.Customer@146c2f2

      at kodo.jdbc.runtime.PreparedStatementManager.checkUpdate()
    2. kodo.jdbc.runtime
      JDBCStoreManager.flush
      1. kodo.jdbc.runtime.PreparedStatementManager.checkUpdate(PreparedStatementManager.java:272)
      2. kodo.jdbc.runtime.PreparedStatementManager.flushInternal(PreparedStatementManager.java:187)
      3. kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:164)
      4. kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:135)
      5. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:361)
      6. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:156)
      7. kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:73)
      8. kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:588)
      8 frames
    3. kodo.runtime
      PersistenceManagerImpl.commit
      1. kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerImpl.java:969)
      2. kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:814)
      3. kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
      4. kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:543)
      4 frames
    4. tools
      Storage.txCommit
      1. tools.Storage.txCommit(Storage.java:126)
      1 frame
    5. customer.ui
      LoginAction.execute
      1. customer.ui.LoginAction.execute(LoginAction.java:143)
      1 frame
    6. struts
      ActionServlet.doGet
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
      3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      4 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
      2 frames
    8. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
      4. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
      6. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
      7. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
      8. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
      10. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
      11. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      12. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
      13. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
      14. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
      15. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
      16. org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
      17. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
      18. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
      18 frames
    9. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
      1 frame
    10. Grizzly HTTP
      TcpWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
      3. org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
      3 frames
    11. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:534)
      1 frame