[jboss-user] [jBPM] - Completing human tasks in CBHornetQWSHumanTaskHandler with multiple ksessions.

Dsire krish do-not-reply at jboss.com
Wed Aug 22 10:45:10 EDT 2012


Dsire krish [https://community.jboss.org/people/arselv] created the discussion

"Completing human tasks in CBHornetQWSHumanTaskHandler with multiple ksessions."

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

--------------------------------------------------------------
I create a ksession for every processinstance.
The process instances are created without any problem.But when i  complete the task of the process instances.
Im getting this exception

javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.drools.persistence.info.SessionInfo#1]
          at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:630)
          at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:588)

I understand that another thread is trying to access a row which is already deleted from the table after completing it.
But I have to use multiple ksessions. How would i use those without getting this exception.
I have attached the class files for reference.
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120822/28aa5b1e/attachment.html 


More information about the jboss-user mailing list