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]

Oracle Community | 392 Guest | 8 years ago
  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]
  2. 0

    Can't use Optimistic Locking (Object Relational Mapping forum at Coderanch)

    coderanch.com | 7 months ago
    javax.persistence.OptimisticLockException: Exception [TOPLINK-5006] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.OptimisticLockException Exception Description: The object [bank.entity.common.Role[roleID=1]] cannot be updated because it has changed or been deleted since it was last read. Class> bank.entity.common.Role Primary Key> [1]
  3. 0

    Cannot catch OptimisticLockException in Bean Managed Transaction

    Oracle Community | 8 years ago | iceandfire
    javax.persistence.OptimisticLockException: Exception [TOPLINK-5006] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.OptimisticLockException Exception Description: The object [...] cannot be updated because it has changed or been deleted since it was last read. Class> de.epoq.inbound.stores.catalog.CatalogItem Primary Key> [244947]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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) >
  6. 0

    [eclipselink-dev] Build Failed - EclipseLink Bootstrap Automated Builds

    eclipse.org | 1 year ago
    javax.persistence.OptimisticLockException: Exception [EclipseLink-5006] (Eclipse Persistence Services - 1.1.0 (Build 20081016)): org.eclipse.persistence.exceptions.OptimisticLockException Exception Description: The object [Employee: 33122] cannot be updated because it has changed or been deleted since it was last read. Class> org.eclipse.persistence.testing.models.jpa.advanced.Employee Primary Key> [33122]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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()
    2. oracle.toplink.essentials
      JTASynchronizationListener.beforeCompletion
      1. oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:498)
      2. oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1126)
      3. oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2458)
      4. oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:277)
      5. oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:131)
      6. oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:91)
      6 frames
    3. com.sun.enterprise
      J2EETransactionManagerOpt.commit
      1. com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:428)
      2. com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371)
      2 frames
    4. Embedded GlassFish Web
      EJBLocalObjectInvocationHandlerDelegate.invoke
      1. com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3817)
      2. com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3596)
      3. com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1379)
      4. com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
      5. com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
      6. com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
      6 frames
    5. Unknown
      $Proxy191.deleteGlobalParameter
      1. $Proxy191.deleteGlobalParameter(Unknown Source)
      1 frame
    6. com.ericsson.bcs
      CASProvisioning.deleteGlobalParameter
      1. com.ericsson.bcs.calendarintegration.cisprovisioning.CASProvisioning.deleteGlobalParameter(CASProvisioning.java:151)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. com.sun.enterprise
      InstanceResolverImpl$1.invoke
      1. com.sun.enterprise.webservice.InstanceResolverImpl$1.invoke(InstanceResolverImpl.java:112)
      1 frame
    9. JAX-WS RI Runtime Bundle
      AbstractTubeImpl.process
      1. com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
      2. com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
      3. com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
      4. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      5. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      6. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      7. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      8. com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
      8 frames
    10. com.sun.enterprise
      MonitoringPipe.process
      1. com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
      1 frame
    11. JAX-WS RI Runtime Bundle
      AbstractTubeImpl.process
      1. com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      2. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      3. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      4. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      5. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      6. com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
      6 frames
    12. com.sun.enterprise
      CommonServerSecurityPipe.process
      1. com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:222)
      2. com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:133)
      2 frames
    13. JAX-WS RI Runtime Bundle
      ServletAdapter.handle
      1. com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      2. com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      3. com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      4. com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      5. com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      6. com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
      7. com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
      8. com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
      9. com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
      9 frames
    14. com.sun.enterprise
      JAXWSServlet.doPost
      1. com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:177)
      1 frame
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      2 frames
    16. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
      3. org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
      5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      6. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      6 frames
    17. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
      2 frames
    18. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      6. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
      7. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      8. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      9. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      10. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      10 frames
    19. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
      1 frame
    20. Glassfish Core
      WorkerThreadImpl.run
      1. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
      2. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
      3. com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
      4. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      5. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      6. com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      7. com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      8. com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
      8 frames