1 Reply Latest reply on Jun 3, 2009 9:23 PM by Xiaohong Zheng

    Seam jBPM getting "Transaction Already Active" exception

    Xiaohong Zheng Newbie

      Hi,


      Keep getting exception with Transaction already active message on exiting @CreateProcess annotated method. I have transaction disabled in jbpm config.


      Any help or hint is appreciated.

        • 1. Re: Seam jBPM getting "Transaction Already Active" exception
          Xiaohong Zheng Newbie
          One of the requirement of my project is to be able to dynamicall create a number of process instances in reponse to UI event. So I changed from annotatoin to manual creation of processes in my JSF event handler. Now, I am getting a different exception as follows,

          org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.jbpm.graph.log.TransitionLog#16]

          Note, I am doing this in tomcat 6 environment using Seam managed JPA persistence. I also diable the transaction in jbpm.cfg.xml

              <service name="persistence">
                 <factory>
                    <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
                       <field name="isTransactionEnabled"><false/></field>
                    </bean>
                 </factory>
              </service>