javax.persistence.OptimisticLockException: Data has changed. updated [0] rows

Google Groups | Thomas Zangl | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    javax.persistence.OptimisticLockException: Data has changed. updated [0] rows

    Google Groups | 6 years ago | Thomas Zangl
    javax.persistence.OptimisticLockException: Data has changed. updated [0] rows
  2. 0

    Re: [ebean] Saving Object Graph with One-to-Many Relationship Fails

    Google Groups | 5 years ago | Josh Kamau
    javax.persistence.OptimisticLockException: Data has changed. updated [0] rows sql[delete from order_item where uuid=? and version=?] bind[Binding Delete [order_item] where[uuid=8463813c-5369-461a-a9be-345fc051dd26, version=null, ]]

    Root Cause Analysis

    1. javax.persistence.OptimisticLockException

      Data has changed. updated [0] rows

      at com.avaje.ebeaninternal.server.core.PersistRequestBean.checkRowCount()
    2. avaje-ebeanorm
      Ebean.save
      1. com.avaje.ebeaninternal.server.core.PersistRequestBean.checkRowCount(PersistRequestBean.java:478)
      2. com.avaje.ebeaninternal.server.persist.dml.UpdateHandler.execute(UpdateHandler.java:104)
      3. com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:104)
      4. com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.update(DmlBeanPersister.java:84)
      5. com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeUpdateBean(DefaultPersistExecute.java:121)
      6. com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:418)
      7. com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:444)
      8. com.avaje.ebeaninternal.server.persist.DefaultPersister.update(DefaultPersister.java:394)
      9. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveEnhanced(DefaultPersister.java:314)
      10. com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:286)
      11. com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:270)
      12. com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1477)
      13. com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1467)
      14. com.avaje.ebean.Ebean.save(Ebean.java:535)
      14 frames