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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Thomas Zangl, 1 year ago
via Google Groups by Ole Hornischer, 6 months ago
Data has changed. updated [0] rows
javax.persistence.OptimisticLockException: Data has changed. updated [0] rows
at com.avaje.ebeaninternal.server.core.PersistRequestBean.checkRowCount(PersistRequestBean.java:478)
at com.avaje.ebeaninternal.server.persist.dml.UpdateHandler.execute(UpdateHandler.java:104)
at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:104)
at com.avaje.ebeaninternal.server.persist.dml.DmlBeanPersister.update(DmlBeanPersister.java:84)
at com.avaje.ebeaninternal.server.persist.DefaultPersistExecute.executeUpdateBean(DefaultPersistExecute.java:121)
at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeNow(PersistRequestBean.java:418)
at com.avaje.ebeaninternal.server.core.PersistRequestBean.executeOrQueue(PersistRequestBean.java:444)
at com.avaje.ebeaninternal.server.persist.DefaultPersister.update(DefaultPersister.java:394)
at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveEnhanced(DefaultPersister.java:314)
at com.avaje.ebeaninternal.server.persist.DefaultPersister.saveRecurse(DefaultPersister.java:286)
at com.avaje.ebeaninternal.server.persist.DefaultPersister.save(DefaultPersister.java:270)
at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1477)
at com.avaje.ebeaninternal.server.core.DefaultServer.save(DefaultServer.java:1467)
at com.avaje.ebean.Ebean.save(Ebean.java:535)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.