Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4341

AuditServiceLogging can't work with Kie-Spring & JPA TxManager

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • 0
    • 0% 0%

    Description

      To reproduce the error, uncomment the line 37

      https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-spring/src/test/java/org/kie/spring/jbpm/EntityManagerFactorySpringJpaTxManagerTest.java#L37

      and run the test. Test will fail as no Tx has been created

      java.lang.IllegalStateException: Unable to join EntityManager to transaction: No local transaction to join
      	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.doJoinTransaction(ExtendedEntityManagerCreator.java:407)
      	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:350)
      	at com.sun.proxy.$Proxy40.joinTransaction(Unknown Source)
      	at org.jbpm.process.audit.strategy.StandaloneJtaStrategy.joinTransaction(StandaloneJtaStrategy.java:54)
      	at org.jbpm.process.audit.JPAAuditLogService.joinTransaction(JPAAuditLogService.java:331)
      

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            cmoullia Charles Moulliard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: