org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#12]

runawfe | zvezddochka | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Проблема с PostgreSQL

    runawfe | 5 years ago | zvezddochka
    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#12]
  2. 0

    Optimistic Locking failure error in Grails GORM

    Stack Overflow | 6 years ago | Alan McCloud
    org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [zen37.User] with identifier [8]: optimistic locking failed; nested exception is org.hibernate.StaleObjec tStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [zen37.User#8]

    Root Cause Analysis

    1. org.hibernate.StaleObjectStateException

      Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#12]

      at org.hibernate.persister.entity.AbstractEntityPersister.forceVersionIncrement()
    2. Hibernate
      AbstractEntityPersister.forceVersionIncrement
      1. org.hibernate.persister.entity.AbstractEntityPersister.forceVersionIncrement(AbstractEntityPersister.java:1235)
      1 frame
    3. Hibernate
      SessionImpl.lock
      1. org.hibernate.event.def.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:82)
      2. org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEventListener.java:64)
      3. org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:584)
      4. org.hibernate.impl.SessionImpl.lock(SessionImpl.java:576)
      4 frames
    4. org.jbpm.graph
      Token.signal
      1. org.jbpm.graph.node.Join.execute(Join.java:125)
      2. org.jbpm.graph.def.Node.enter(Node.java:357)
      3. org.jbpm.graph.def.Transition.take(Transition.java:147)
      4. org.jbpm.graph.def.Node.leave(Node.java:447)
      5. org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:135)
      6. org.jbpm.graph.node.Decision.execute(Decision.java:162)
      7. org.jbpm.graph.def.Node.enter(Node.java:357)
      8. org.jbpm.graph.def.Transition.take(Transition.java:147)
      9. org.jbpm.graph.def.Node.leave(Node.java:447)
      10. org.jbpm.graph.def.Node.leave(Node.java:420)
      11. org.jbpm.graph.node.Fork.execute(Fork.java:145)
      12. org.jbpm.graph.def.Node.enter(Node.java:357)
      13. org.jbpm.graph.def.Transition.take(Transition.java:147)
      14. org.jbpm.graph.def.Node.leave(Node.java:447)
      15. org.jbpm.graph.node.StartState.leave(StartState.java:78)
      16. org.jbpm.graph.exe.Token.signal(Token.java:206)
      17. org.jbpm.graph.exe.Token.signal(Token.java:145)
      17 frames
    5. org.jbpm.taskmgmt
      TaskInstance.cancel
      1. org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:429)
      2. org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:358)
      3. org.jbpm.taskmgmt.exe.TaskInstance.cancel(TaskInstance.java:331)
      3 frames
    6. ru.runa.wf
      JbpmExecutionServiceBean.startProcessInstance
      1. ru.runa.wf.logic.JbpmExecutionLogic.startProcessInstanceInternal(JbpmExecutionLogic.java:754)
      2. ru.runa.wf.logic.JbpmExecutionLogic.startProcessInstance(JbpmExecutionLogic.java:667)
      3. ru.runa.wf.service.impl.ejb.JbpmExecutionServiceBean.startProcessInstance(JbpmExecutionServiceBean.java:101)
      3 frames
    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. JBoss Application Server Server
      StatelessSessionContainer$ContainerInterceptor.invoke
      1. org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      2. org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      2 frames
    9. JBoss Application Server Connector
      CachedConnectionInterceptor.invoke
      1. org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      1 frame
    10. JBoss Application Server Server
      AbstractInterceptor.invoke
      1. org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
      2. org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
      3. org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
      4. org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
      5. org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
      6. org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
      7. org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
      8. org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
      9. org.jboss.ejb.plugins.AbstractInterceptor.invoke(AbstractInterceptor.java:111)
      9 frames
    11. ru.runa.jboss
      CachingLogicInterceptor.invoke
      1. ru.runa.jboss.interceptor.CachingLogicInterceptor.invokeWithRetry(CachingLogicInterceptor.java:76)
      2. ru.runa.jboss.interceptor.CachingLogicInterceptor.invoke(CachingLogicInterceptor.java:51)
      2 frames
    12. JBoss Application Server Server
      StatelessSessionProxy.invoke
      1. org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      2. org.jboss.ejb.Container.invoke(Container.java:960)
      3. org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
      4. org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      4 frames
    13. Unknown
      $Proxy182.startProcessInstance
      1. $Proxy182.startProcessInstance(Unknown Source)
      1 frame
    14. ru.runa.wf
      SubmitStartProcessFormAction.execute
      1. ru.runa.wf.delegate.impl.ExecutionServiceDelegateLocalImpl.startProcessInstance(ExecutionServiceDelegateLocalImpl.java:112)
      2. ru.runa.wf.web.action.SubmitStartProcessFormAction.executeProcessFromAction(SubmitStartProcessFormAction.java:68)
      3. ru.runa.wf.web.action.BaseProcessFormAction.execute(BaseProcessFormAction.java:71)
      4. ru.runa.wf.web.action.SubmitStartProcessFormAction.execute(SubmitStartProcessFormAction.java:51)
      4 frames
    15. struts
      RequestProcessor.process
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      2 frames
    16. ru.runa.common
      UTF8RequestProcessor.process
      1. ru.runa.common.web.UTF8RequestProcessor.process(UTF8RequestProcessor.java:41)
      1 frame
    17. struts
      ActionServlet.doPost
      1. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      2. org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      2 frames
    18. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      2 frames
    19. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    20. ru.runa.common
      HTTPFilterBase.doFilter
      1. ru.runa.common.web.filter.HibernateSessionGuardFilter.doFilter(HibernateSessionGuardFilter.java:42)
      2. ru.runa.common.web.filter.HTTPFilterBase.doFilter(HTTPFilterBase.java:45)
      2 frames
    21. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    22. ru.runa.common
      HTTPFilterBase.doFilter
      1. ru.runa.common.web.filter.HTTPSessionFilter.doFilter(HTTPSessionFilter.java:58)
      2. ru.runa.common.web.filter.HTTPFilterBase.doFilter(HTTPFilterBase.java:45)
      2 frames
    23. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    24. ru.runa.af
      NTLMFilter.doFilter
      1. ru.runa.af.web.filter.NTLMFilter.doFilter(NTLMFilter.java:51)
      1 frame
    25. ru.runa.common
      HTTPFilterBase.doFilter
      1. ru.runa.common.web.filter.HTTPFilterBase.doFilter(HTTPFilterBase.java:45)
      1 frame
    26. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    27. JBoss Application Server Tomcat
      ReplyHeaderFilter.doFilter
      1. org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      1 frame
    28. Glassfish Core
      StandardContextValve.invoke
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      4 frames
    29. JBoss Application Server Tomcat
      JaccContextValve.invoke
      1. org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      2. org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      2 frames
    30. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      2. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      3. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      4. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      4 frames
    31. Grizzly HTTP
      JIoEndpoint$Worker.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      3 frames
    32. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame