[jboss-user] [JBoss jBPM] - Asynchron execution and repeat timer

Olivier.ch do-not-reply at jboss.com
Fri Nov 9 10:52:37 EST 2007


I have a task that contains a timer.

This timer works fine : is created when it enters on the task and is deleted when it exits. 
When timeout, the execution is correct.

But my process has the possibility to re-enter on this task. 
When it re-enters on this task, I don't see the create-timer and when I save my process instance I get this error :


  | 16:31:06,741 DEBUG DbPersistenceService:253 - committing hibernate transaction org.hibernate.transaction.JDBCTransaction at 1df503b
  | 16:31:06,803 ERROR AbstractFlushingEventListener:301 - Could not synchronize database state with session
  | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#428]
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1714)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2357)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2257)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2557)
  | 	at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
  | 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
  | 	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | 	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | 	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | 	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | 	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | 	at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:255)
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:213)
  | 	at org.jbpm.svc.Services.close(Services.java:222)
  | 	at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 	at ch.workflow.jbpmImpl.JbpmTools.closeJBPMContext(JbpmTools.java:281)
  | 	at ch.workflow.jbpmImpl.JbpmTools.next(JbpmTools.java:234)
  | 	at ocd.common.workflow.facade.FacadeOCD.retroceder(FacadeOCD.java:129)
  | 	at ocd.common.workflow.facade.FacadeOCD$$FastClassByCGLIB$$bb5d06cc.invoke(<generated>)
  | 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
  | 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
  | 	at ocd.common.workflow.facade.FacadeOCD$$EnhancerByCGLIB$$1c8c2a6b.retroceder(<generated>)
  | 	at ch.test.action.ChoisirCrise.execute(ChoisirCrise.java:189)
  | 	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
  | 	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
  | 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
  | 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  | 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
  | 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
  | 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
  | 	at java.lang.Thread.run(Thread.java:534)
  | 16:31:06,819 ERROR DbPersistenceService:257 - hibernate commit failed
  | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#428]
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1714)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2357)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2257)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2557)
  | 	at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
  | 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
  | 	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | 	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | 	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | 	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | 	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | 	at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:255)
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:213)
  | 	at org.jbpm.svc.Services.close(Services.java:222)
  | 	at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 	at ch.workflow.jbpmImpl.JbpmTools.closeJBPMContext(JbpmTools.java:281)
  | 	at ch.workflow.jbpmImpl.JbpmTools.next(JbpmTools.java:234)
  | 	at ocd.common.workflow.facade.FacadeOCD.retroceder(FacadeOCD.java:129)
  | 	at ocd.common.workflow.facade.FacadeOCD$$FastClassByCGLIB$$bb5d06cc.invoke(<generated>)
  | 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
  | 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
  | 	at ocd.common.workflow.facade.FacadeOCD$$EnhancerByCGLIB$$1c8c2a6b.retroceder(<generated>)
  | 	at ch.test.action.ChoisirCrise.execute(ChoisirCrise.java:189)
  | 	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
  | 	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
  | 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
  | 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  | 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
  | 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
  | 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
  | 	at java.lang.Thread.run(Thread.java:534)
  | 16:31:06,819 DEBUG DbPersistenceService:297 - rolling back hibernate transaction
  | 16:31:06,834 DEBUG DbPersistenceService:311 - closing hibernate session
  | 16:31:06,850 ERROR Services:225 - problem closing service 'persistence'
  | org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:218)
  | 	at org.jbpm.svc.Services.close(Services.java:222)
  | 	at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 	at ch.workflow.jbpmImpl.JbpmTools.closeJBPMContext(JbpmTools.java:281)
  | 	at ch.workflow.jbpmImpl.JbpmTools.next(JbpmTools.java:234)
  | 	at ocd.common.workflow.facade.FacadeOCD.retroceder(FacadeOCD.java:129)
  | 	at ocd.common.workflow.facade.FacadeOCD$$FastClassByCGLIB$$bb5d06cc.invoke(<generated>)
  | 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
  | 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
  | 	at ocd.common.workflow.facade.FacadeOCD$$EnhancerByCGLIB$$1c8c2a6b.retroceder(<generated>)
  | 	at ch.test.action.ChoisirCrise.execute(ChoisirCrise.java:189)
  | 	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
  | 	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
  | 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
  | 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  | 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
  | 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
  | 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
  | 	at java.lang.Thread.run(Thread.java:534)
  | Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#428]
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1714)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2357)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2257)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2557)
  | 	at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
  | 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
  | 	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | 	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | 	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | 	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | 	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | 	at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:255)
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:213)
  | 	... 54 more
  | 16:31:06,850 DEBUG Services:221 - closing service 'tx': org.jbpm.tx.TxService at 9addef
  | 16:31:06,850 DEBUG Services:221 - closing service 'scheduler': org.jbpm.scheduler.db.DbSchedulerService at 8f6d64
  | 16:31:06,850 DEBUG Services:221 - closing service 'logging': org.jbpm.logging.db.DbLoggingService at 56ff18
  | org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed}
  | 	at org.jbpm.svc.Services.close(Services.java:234)
  | 	at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 	at ch.workflow.jbpmImpl.JbpmTools.closeJBPMContext(JbpmTools.java:281)
  | 	at ch.workflow.jbpmImpl.JbpmTools.next(JbpmTools.java:234)
  | 	at ocd.common.workflow.facade.FacadeOCD.retroceder(FacadeOCD.java:129)
  | 	at ocd.common.workflow.facade.FacadeOCD$$FastClassByCGLIB$$bb5d06cc.invoke(<generated>)
  | 	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:705)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
  | 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
  | 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
  | 	at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:643)
  | 	at ocd.common.workflow.facade.FacadeOCD$$EnhancerByCGLIB$$1c8c2a6b.retroceder(<generated>)
  | 	at ch.test.action.ChoisirCrise.execute(ChoisirCrise.java:189)
  | 	at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
  | 	at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
  | 	at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
  | 	at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  | 	at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
  | 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  | 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
  | 	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  | 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  | 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  | 	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
  | 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
  | 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
  | 	at java.lang.Thread.run(Thread.java:534)
  | Caused by: org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:218)
  | 	at org.jbpm.svc.Services.close(Services.java:222)
  | 	... 53 more
  | Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#428]
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1714)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2357)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2257)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2557)
  | 	at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92)
  | 	at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
  | 	at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
  | 	at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | 	at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | 	at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | 	at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | 	at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | 	at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:255)
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:213)
  | 	... 54 more
  | 

Before the timer wasn't on and it was working correctly ... 
What is the problem ... ?

Olivier

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103300#4103300

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103300



More information about the jboss-user mailing list