WFTXN0084 when using ExecutorJPAAuditService in RHPAM

Solution Unverified - Updated -

Issue

  • I get WFTXN0084 when using ExecutorJPAAuditService under the scope of @Transactional
Caused by: java.lang.IllegalStateException: Unable to find or open a transaction: WFTXN0084: UserTransaction access is forbidden in the current context
        at org.jbpm.process.audit.strategy.StandaloneJtaStrategy.joinTransaction(StandaloneJtaStrategy.java:70)
        at org.jbpm.process.audit.JPAService.joinTransaction(JPAService.java:146)
        at org.jbpm.services.task.audit.service.TaskJPAAuditService.joinTransaction(TaskJPAAuditService.java:70)
        at org.jbpm.executor.impl.jpa.ExecutorJPAAuditService.joinTransaction(ExecutorJPAAuditService.java:50)
        at org.jbpm.process.audit.AuditQueryCriteriaUtil.joinTransaction(AuditQueryCriteriaUtil.java:154)
        at org.jbpm.process.audit.AuditQueryCriteriaUtil.createQueryAndCallApplyMetaCriteriaAndGetResult(AuditQueryCriteriaUtil.java:170)
        at org.jbpm.query.jpa.impl.QueryCriteriaUtil.doCriteriaQuery(QueryCriteriaUtil.java:146)
        at org.jbpm.process.audit.JPAAuditLogService.doQuery(JPAAuditLogService.java:364)
        at org.jbpm.process.audit.JPAAuditLogService.queryLogs(JPAAuditLogService.java:347)
        at org.jbpm.process.audit.query.AbstractAuditQueryBuilderImpl$2.getResultList(AbstractAuditQueryBuilderImpl.java:144)
        at org.example.MyService.findCompletedProcessInstances(MyService.java:82)
        ...
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:51)
        at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:79)
        at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase.invokeInCallerTx(TransactionalInterceptorBase.java:132)
        at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorRequired.doIntercept(TransactionalInterceptorRequired.java:55)
        at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase.intercept(TransactionalInterceptorBase.java:79)
        at com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorRequired.intercept(TransactionalInterceptorRequired.java:47)
        ...
Caused by: java.lang.IllegalStateException: WFTXN0084: UserTransaction access is forbidden in the current context
        at org.wildfly.transaction.client.LocalUserTransaction.checkTransactionStateAvailability(LocalUserTransaction.java:112)
        at org.wildfly.transaction.client.LocalUserTransaction.getStatus(LocalUserTransaction.java:67)
        at org.jbpm.process.audit.strategy.StandaloneJtaStrategy.joinTransaction(StandaloneJtaStrategy.java:64)
        ... 135 more

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.