1 Reply Latest reply on Jan 7, 2014 3:00 AM by Maciej Swiderski

    org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#1]

    Charles Souillard Newbie



      I'm running jbpm 6.0.1.Final in a standalone maven project configured to use JPA and JTA (Bitronix).


      I have a simple process (see hereafter) with one startEvent, one userTask and one endEvent.


      When starting an instance of this process, I get the known StaleObjectStateException on processInstanceInfo object.


      I have read all the titles of the forum and looks like none is dealing with this issue. I have Googled it and found the JIRA [JBPM-3996] Help:jbpm5.2 - JBoss Issue Tracker


      I still don't understand what I should be doing as it is marked as fixed... This exception occurs in the same thread that created the instance but the session has been created previously in another thread.


      Thanks for your help.



      <process id="Activiti_UserTask01" isExecutable="true">

        <startEvent id="theStart"  name="theStart" />

        <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />


        <userTask id="theTask" name="theTask" />


        <sequenceFlow id="flow2" sourceRef="theTask" targetRef="theEnd" />

        <endEvent id="theEnd" name="theEnd">