when the program invoked "org.jbpm.db.TaskMgmtSession.findPooledTaskInstances", the StaleObjectStateException was throwed.I cant figure out why this exception was thrown in jbpm, so want to get some ideas from here.
Thanks in advice.
[java] Caused by: org.hibernate.StaleObjectStateException: Row was updated o
r deleted by another transaction (or unsaved-value mapping was incorrect): [org.
jbpm.graph.exe.Token#130]
[java] at org.hibernate.persister.entity.AbstractEntityPersister.check(
AbstractEntityPersister.java:1634)
[java] at org.hibernate.persister.entity.AbstractEntityPersister.update
(AbstractEntityPersister.java:2207)
[java] at org.hibernate.persister.entity.AbstractEntityPersister.update
OrInsert(AbstractEntityPersister.java:2117)
[java] at org.hibernate.persister.entity.AbstractEntityPersister.update
(AbstractEntityPersister.java:2373)
[java] at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateA
ction.java:84)
[java] at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243
)
[java] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.j
ava:227)
[java] at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.j
ava:141)
[java] at org.hibernate.event.def.AbstractFlushingEventListener.perform
Executions(AbstractFlushingEventListener.java:296)
[java] at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoF
lush(DefaultAutoFlushEventListener.java:41)
[java] at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImp
l.java:878)
[java] at org.hibernate.impl.SessionImpl.prepareQueries(SessionImpl.jav
a:1071)
[java] at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:10
61)
[java] at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1010)
[java] at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
[java] at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtS
ession.java:118)
[java] ... 105 more
It is difficult to analyze this error by the stack trace alone. What is your application doing exactly?
Please post the processdefinition as well as a listing of the code producing this error...
Regards,
Koen