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) >

Oracle Community | 392 Guest | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    javax.persistence exception swallowed?

    Oracle Community | 8 years ago | 392 Guest
    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) >

    Root Cause Analysis

    1. 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()
    2. Unknown
      $Proxy191.deleteGlobalParameter
      1. $Proxy191.deleteGlobalParameter(Unknown Source)
      1 frame