JBoss Community

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

created by Maciej Swiderski in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community