[jboss-user] [JBoss jBPM] - Re: Fork Join and Async Nodes

ffernandez do-not-reply at jboss.com
Fri Mar 7 08:14:40 EST 2008


Hi Ronald van Kuijk

I have executed the example with the CVS HEAD and the error is the same. The action handler in the each node, throws the same Exception when executionContext.leaveNode() is executed.


  | org.hibernate.exception.LockAcquisitionException: could not update: [org.jbpm.graph.exe.Token#235]
  | 	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:82)
  | 	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2425)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
  | 	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.jbpm.graph.node.Join.execute(Join.java:116)
  | 	at org.jbpm.graph.def.Node.enter(Node.java:319)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
  | 	at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$663a82f3.enter(<generated>)
  | 	at org.jbpm.graph.def.Transition.take(Transition.java:151)
  | 	at org.jbpm.graph.def.Node.leave(Node.java:394)
  | 
  | 
  | 
  | 189579     [:172.26.0.243:4] INFO            DbPersistenceService:258 - optimistic locking failed
  | 189579     [:172.26.0.243:4] INFO            DbPersistenceService:258 - optimistic locking failed
  | 189672     [:172.26.0.243:4] INFO                        Services:228 - problem closing service 'persistence': optimistic locking failed
  | 189672     [:172.26.0.243:4] INFO                        Services:228 - problem closing service 'persistence': optimistic locking failed
  | 189672     [:172.26.0.243:4] INFO               JobExecutorThread:197 - problem committing job execution transaction: optimistic locking failed
  | 189672     [:172.26.0.243:4] INFO               JobExecutorThread:197 - problem committing job execution transaction: optimistic locking failed
  | 189688     [:172.26.0.243:3] 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#235]
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307)
  | 	at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607)
  | 	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:256)
  | 	at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:214)
  | 	at org.jbpm.svc.Services.close(Services.java:224)
  | 	at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 	at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:193)
  | 	at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
  | 

Any suggestion? Thanks in advanced!

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

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



More information about the jboss-user mailing list