javax.persistence.OptimisticLockException

Exception [EclipseLink-5006] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.OptimisticLockException Exception Description: The object [org.kuali.rice.kew.useroptions.UserOptions@2035056f] cannot be updated because it has changed or been deleted since it was last read. Class> org.kuali.rice.kew.useroptions.UserOptions Primary Key> [[DocSearch.LastSearch.Holding4, admin]: -2136268387]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by Christopher Wade,
  • via Stack Overflow by Manish Kumar Thakur
    ,
  • Stack trace

    • javax.persistence.OptimisticLockException: Exception [EclipseLink-5006] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.OptimisticLockException Exception Description: The object [org.kuali.rice.kew.useroptions.UserOptions@2035056f] cannot be updated because it has changed or been deleted since it was last read. Class> org.kuali.rice.kew.useroptions.UserOptions Primary Key> [[DocSearch.LastSearch.Holding4, admin]: -2136268387] at org.objectweb.jotm.SubCoordinator.commit_one_phase(SubCoordinator.java:444) at org.objectweb.jotm.TransactionImpl.commit(TransactionImpl.java:304) Caused by: javax.persistence.OptimisticLockException: Exception [EclipseLink-5006] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.OptimisticLockException Exception Description: The object [org.kuali.rice.kew.useroptions.UserOptions@2035056f] cannot be updated because it has changed or been deleted since it was last read. Class> org.kuali.rice.kew.useroptions.UserOptions Primary Key> [[DocSearch.LastSearch.Holding4, admin]: -2136268387] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl$1.handleException(EntityManagerSetupImpl.java:694) at org.eclipse.persistence.transaction.AbstractSynchronizationListener.handleException(AbstractSynchronizationListener.java:275) at org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:170) at org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:68) at org.objectweb.jotm.SubCoordinator.doBeforeCompletion(SubCoordinator.java:1463) at org.objectweb.jotm.SubCoordinator.commit_one_phase(SubCoordinator.java:419) ... 2 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.