Hello,
We still have the same issue, we tested with the patch in the pull request related to this same Jira ticket https://github.com/kiegroup/droolsjbpm-integration/pull/2880 (version 7.74.0-SNAPSHOT), but we still have the same error after few minutes with high load; then the server just freezes until we restart it.
Find bellow the error that keeps repeating in the logs.
2023-06-09 19:43:33.012 WARN 1 --- [ool-6-thread-19] o.j.executor.impl.AvailableJobsExecutor : Unexpected error while processin executor's job javax.persistence.TransactionRequiredException: Explicitly joining a JTA transaction requires a JTA transaction be currently activejava.lang.RuntimeException: javax.persistence.TransactionRequiredException: Explicitly joining a JTA transaction requires a JTA transaction be currently active
at org.kie.spring.jbpm.services.SpringTransactionalCommandService.execute(SpringTransactionalCommandService.java:79) ~[kie-spring-7.73.0.Final.jar!/:7.73.0.Final]
at org.jbpm.executor.impl.jpa.ExecutorQueryServiceImpl.getRequestForProcessing(ExecutorQueryServiceImpl.java:224) ~[jbpm-executor-7.73.0.Final.jar!/:7.73.0.Final]
at org.jbpm.executor.impl.AvailableJobsExecutor.executeJob(AvailableJobsExecutor.java:31) ~[jbpm-executor-7.73.0.Final.jar!/:7.73.0.Final]
at org.jbpm.executor.impl.concurrent.PrioritisedRunnable.run(PrioritisedRunnable.java:47) ~[jbpm-executor-7.73.0.Final.jar!/:7.73.0.Final]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na]
at org.jbpm.executor.impl.concurrent.PrioritisedScheduledFutureTask.run(PrioritisedScheduledFutureTask.java:41) ~[jbpm-executor-7.73.0.Final.jar!/:7.73.0.Final]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Caused by: javax.persistence.TransactionRequiredException: Explicitly joining a JTA transaction requires a JTA transaction be currently active
at org.hibernate.internal.SessionImpl.joinTransaction(SessionImpl.java:3649) ~[hibernate-core-5.4.32.Final.jar!/:5.4.32.Final]
at org.hibernate.internal.SessionImpl.joinTransaction(SessionImpl.java:3634) ~[hibernate-core-5.4.32.Final.jar!/:5.4.32.Final]
at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.doJoinTransaction(ExtendedEntityManagerCreator.java:378) ~[spring-orm-5.3.13.jar!/:5.3.13]
at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:345) ~[spring-orm-5.3.13.jar!/:5.3.13]
at com.sun.proxy.$Proxy137.joinTransaction(Unknown Source) ~[na:na]
at org.jbpm.shared.services.impl.JpaPersistenceContext.joinTransaction(JpaPersistenceContext.java:229) ~[jbpm-shared-services-7.73.0.Final.jar!/:7.73.0.Final]
at org.jbpm.shared.services.impl.TransactionalCommandService.execute(TransactionalCommandService.java:75) ~[jbpm-shared-services-7.73.0.Final.jar!/:7.73.0.Final]
at org.kie.spring.jbpm.services.SpringTransactionalCommandService.execute(SpringTransactionalCommandService.java:74) ~[kie-spring-7.73.0.Final.jar!/:7.73.0.Final]
... 10 common frames omitted
Have you been able to reproduce/correct the issue ? is it planned for next release?
Thanks in advance,
I am also facing the same issue. Any one found solution to it?