3 Replies Latest reply on Jan 25, 2016 8:17 PM by rajiv_dadhich

    jBPM 6.1.0 and spring local transaction issue

    rahul7163

      Hi,

       

      I am new to jBPM 6.1.0 version. I'm using the jBPM 6.1.0 and Spring Local Transaction(JpaTransactionManager) using the PER PROCESS INSTANCE session strategy. It is throwing below exception at the time of starting the process. Singleton process strategy is working fine with Spring Local Transaction.

       

      java.lang.IllegalStateException: Unable to find transaction: Cannot create resource instance

          at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:139)

          at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:79)

          at org.jbpm.runtime.manager.impl.AbstractRuntimeManager.getTransactionManager(AbstractRuntimeManager.java:228)

          at org.jbpm.runtime.manager.impl.AbstractRuntimeManager.registerDisposeCallback(AbstractRuntimeManager.java:131)

          at org.jbpm.runtime.manager.impl.PerProcessInstanceRuntimeManager.getRuntimeEngine(PerProcessInstanceRuntimeManager.java:115)

       

      How we can solve this problem? Is there any solution for this problem?

       

      Thanks in advance!

        • 1. Re: jBPM 6.1.0 and spring local transaction issue
          swiderski.maciej

          there were some issues with 6.1.0 and spring local transactions that were already addressed. Do you mind checking 6.2.0.CR2 to see if all works well?

           

          HTH

          • 2. Re: jBPM 6.1.0 and spring local transaction issue
            rahul7163

            Hi Maciej,

             

            Thank you for the reply. I will test it on the 6.2.0.CR2 to check it further. Also, just wanted to know, if there is any way like by extending the AbstractRuntimeManager or providing the custom implementation for AbstractRuntimeManager to resolve the above issue in 6.1.0?

             

            Also earlier, while using jBPM 5.4, i have seen that, the Potential Owner information of the task is automatically getting stored in peopleassignments_potowners table when we start the process. However, using the spring local transaction in jBPM 6.1.0 version, i can see that the task related data is not getting persisted in peopleassignments_potowners table and due to this the claim operation failing. It throws PermissionDeniedException. Is this also the known issue in jBPM 6.1.0?

             

            Thanks,

            Amit

            • 3. Re: jBPM 6.1.0 and spring local transaction issue
              rajiv_dadhich

              Hi Amit,

               

              I am facing same issue. Were you able to fix the issue on 6.1.0?

              Thanks