JBoss Community

Re: Unable to dispose ksession

created by Arun Selva in jBPM - View the full discussion

Yeah thats right.I got your point.

But in my case the starting of a process and completion of it happens parallely.

And when i do so as u said. i'm getting this hibernate exception due to optimistic lock.

 

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)

 

and im looking for a way to clear this exception.

Reply to this message by going to Community

Start a new discussion in jBPM at Community