I'm facing the below workflow error
"org.hibernate.StaleObjectStateException"

please resolve this issue.

we are using userApps version 3.5.1

Exception:
-----------------------------------

INFO [LogEvent] [Workflow_Error] Initiated by System, Error Message:
null, Process ID: d39489d120c84dd6aa0ee5b2f353c67b, Process Name:
cn=Update-UK,cn=RequestDefs,cn=AppConfig,cn=UserApplication, cn=AIUDriverSet,ou=servers,ou=services,o=aiu,
Activity: Activity59, Recipient: cn=Test_25th,ou=people,o=aiu
21:34:36,644 ERROR [ProcessImpl] Process requestId
[d39489d120c84dd6aa0ee5b2f353c67b], Id
[cn=Update-UK,cn=RequestDefs,cn=AppConfig,cn=UserApplication, cn=AIUDriverSet,ou=servers,ou=services,o=aiu],
activityId [Activity59]: Error persisting activity state, scheduling
activity for retry.
com.novell.soa.af.impl.activity.ActivityPersistenc eException: Activity
Id [Activity59]: Error while forwarding to activity [Activity49].
at
com.novell.soa.af.impl.core.ProcessImpl.forward(Pr ocessImpl.java:1465)
at
com.novell.soa.af.impl.activity.ActivityNode.forwa rd(ActivityNode.java:243)
at
com.novell.soa.af.impl.activity.ActivityNode.forwa rd(ActivityNode.java:216)
at
com.novell.soa.af.impl.activity.LogActivity.proces s(LogActivity.java:138)
at
com.novell.soa.af.impl.activity.ActivityNode.notif yArrive(ActivityNode.java:182)
at
com.novell.soa.af.impl.activity.RunnableActivity.r un(RunnableActivity.java:50)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.novell.soa.persist.PersistenceException:
org.hibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was incorrect):
[com.novell.soa.af.impl.persist.BranchCountInfo#req uestId =
[d39489d120c84dd6aa0ee5b2f353c67b] activityId = [Activity48]]
at
com.novell.soa.persist.HibernateUtil.commit(Hibern ateUtil.java:149)
at
com.novell.soa.af.impl.core.ProcessImpl.forward(Pr ocessImpl.java:1439)
... 8 more
**Caused by: org.hibernate.StaleObjectStateException**: *Row was
updated or deleted by another transaction (or unsaved-value mapping was
incorrect): [com.novell.soa.af.impl.persist.BranchCountInfo#req uestId *=
[d39489d120c84dd6aa0ee5b2f353c67b] activityId = [Activity48]]
at
org.hibernate.persister.entity.AbstractEntityPersi ster.check(AbstractEntityPersister.java:1765)
at
org.hibernate.persister.entity.AbstractEntityPersi ster.update(AbstractEntityPersister.java:2407)
at
org.hibernate.persister.entity.AbstractEntityPersi ster.updateOrInsert(AbstractEntityPersister.java:2 307)
at
org.hibernate.persister.entity.AbstractEntityPersi ster.update(AbstractEntityPersister.java:2607)
at
org.hibernate.action.EntityUpdateAction.execute(En tityUpdateAction.java:92)
at
org.hibernate.engine.ActionQueue.execute(ActionQue ue.java:248)
at
org.hibernate.engine.ActionQueue.executeActions(Ac tionQueue.java:232)
at
org.hibernate.engine.ActionQueue.executeActions(Ac tionQueue.java:140)
at
org.hibernate.event.def.AbstractFlushingEventListe ner.performExecutions(AbstractFlushingEventListene r.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener. onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.j ava:1000)
at
org.hibernate.impl.SessionImpl.managedFlush(Sessio nImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(J DBCTransaction.java:106)
at
com.novell.soa.persist.HibernateUtil.commit(Hibern ateUtil.java:147)
... 9 more
21:37:06,336 INFO [Server] Runtime shutdown hook called, forceHalt:
true
21:37:06,337 INFO [Server] JBoss SHUTDOWN: Undeploying all packages


--
yogesh_novell
------------------------------------------------------------------------
yogesh_novell's Profile: http://forums.novell.com/member.php?userid=36391
View this thread: http://forums.novell.com/showthread.php?t=362008