javax.persistence.OptimisticLockException

Exception [TOPLINK-5001] (Oracle > TopLink Essentials - 2.1 (Build b60g-fcs (01/08/2009))): > oracle.toplink.essentials.exceptions.OptimisticLockException > Exception Description: An attempt was made to delete the object > [GlobalParameter{ucpId=2, name='aaa', value='aaa'}], but it has no version > number in the identity map. > It may not have been read before the delete was attempted. > Class> com.ericsson.collaboration.cas.entities.GlobalClientParameter Primary > Key> [2] > at > oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:498) > at > oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1126) > at > oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2458) > at > oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:277) > at > oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:131) > at > oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:91) > at > com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:428) > at > com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371) > at > com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3817) > at > com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3596) > at > com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1379) > at > com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316) > at > com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205) > at > com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83) >

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 web1

  • via Unknown by 392 Guest,
  • Stack trace

    • javax.persistence.OptimisticLockException: Exception [TOPLINK-5001] (Oracle > TopLink Essentials - 2.1 (Build b60g-fcs (01/08/2009))): > oracle.toplink.essentials.exceptions.OptimisticLockException > Exception Description: An attempt was made to delete the object > [GlobalParameter{ucpId=2, name='aaa', value='aaa'}], but it has no version > number in the identity map. > It may not have been read before the delete was attempted. > Class> com.ericsson.collaboration.cas.entities.GlobalClientParameter Primary > Key> [2] > at > oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:498) > at > oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1126) > at > oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2458) > at > oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:277) > at > oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:131) > at > oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:91) > at > com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:428) > at > com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371) > at > com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3817) > at > com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3596) > at > com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1379) > at > com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316) > at > com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205) > at > com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83) > at $Proxy191.deleteGlobalParameter(Unknown Source)

    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.