Discussion:
[jboss-user] [jBPM] - Re: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
Krisv W
2013-04-26 01:42:56 UTC
Permalink
Krisv W [https://community.jboss.org/people/gang2007] created the discussion

"Re: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)"

To view the discussion, visit: https://community.jboss.org/message/810406#810406

--------------------------------------------------------------
Please help!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/810406#810406]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-04-26 17:15:03 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)"

To view the discussion, visit: https://community.jboss.org/message/810601#810601

--------------------------------------------------------------
the situation you described indicates you have two HTWorkitem handlers active which both tries to notify the engine that task was completed. So what I could suggest is:
* double check the code you have where you create HTWorkItemHandler and make sure you have just one for given session
* if you dispose session make sure that your handler is disconnected otherwise you'll get exceptions as handler will try to notify disposed session
HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/810601#810601]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Krisv W
2013-04-27 07:14:30 UTC
Permalink
Krisv W [https://community.jboss.org/people/gang2007] created the discussion

"Re: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)"

To view the discussion, visit: https://community.jboss.org/message/810644#810644

--------------------------------------------------------------
Hi, Maciej!
     I do appreciate your timely help! I finally find out there are multiple ksessions in my code. Now no words can describe how excited I am. How careless I was!
     Thank you again for your generous help.
Best Regrads!
Krisv W
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/810644#810644]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...