kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object instance "net.inar.cim.reclamos.domain.DetalleStock-8316" to the data store. This indicates that the object was concurrently modified in another transaction.[net.inar.cim.reclamos.domain.DetalleStock-8316]

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

    Attach problem with mySql

    Oracle Community | 1 decade ago | 3004
    kodo.util.OptimisticVerificationException: An optimistic lock violation was detected when flushing object instance "net.inar.cim.reclamos.domain.DetalleStock-8316" to the data store. This indicates that the object was concurrently modified in another transaction.[net.inar.cim.reclamos.domain.DetalleStock-8316]

    Root Cause Analysis

    1. kodo.util.OptimisticVerificationException

      An optimistic lock violation was detected when flushing object instance "net.inar.cim.reclamos.domain.DetalleStock-8316" to the data store. This indicates that the object was concurrently modified in another transaction.[net.inar.cim.reclamos.domain.DetalleStock-8316]

      at kodo.runtime.AttachManager.attach()
    2. kodo.runtime
      PersistenceManagerImpl.attach
      1. kodo.runtime.AttachManager.attach(AttachManager.java:373)
      2. kodo.runtime.AttachManager.attachCollection(AttachManager.java:633)
      3. kodo.runtime.AttachManager.attachField(AttachManager.java:537)
      4. kodo.runtime.AttachManager.attach(AttachManager.java:338)
      5. kodo.runtime.AttachManager.attachField(AttachManager.java:522)
      6. kodo.runtime.AttachManager.attach(AttachManager.java:338)
      7. kodo.runtime.AttachManager.attach(AttachManager.java:55)
      8. kodo.runtime.PersistenceManagerImpl.attach(PersistenceManagerImpl.java:3963)
      8 frames
    3. net.inar.cim
      JPanelStockCamioneta$4.actionPerformed
      1. net.inar.cim.reclamos.control.ControlConfiguracion.guardarCambiosCamioneta(ControlConfiguracion.java:170)
      2. net.inar.cim.reclamos.gui.JPanelStockCamioneta.jButtonGuardar_actionPerformed(JPanelStockCamioneta.java:269)
      3. net.inar.cim.reclamos.gui.JPanelStockCamioneta$4.actionPerformed(JPanelStockCamioneta.java:133)
      3 frames
    4. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
      6. java.awt.Component.processMouseEvent(Component.java:5488)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
      8. java.awt.Component.processEvent(Component.java:5253)
      9. java.awt.Container.processEvent(Container.java:1966)
      10. java.awt.Component.dispatchEventImpl(Component.java:3955)
      11. java.awt.Container.dispatchEventImpl(Container.java:2024)
      12. java.awt.Component.dispatchEvent(Component.java:3803)
      13. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
      14. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
      15. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
      16. java.awt.Container.dispatchEventImpl(Container.java:2010)
      17. java.awt.Window.dispatchEventImpl(Window.java:1766)
      18. java.awt.Component.dispatchEvent(Component.java:3803)
      19. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      20. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
      21. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      22. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      24. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      24 frames