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

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

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None

      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)
      

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

                Created:
                Updated:
                Resolved: