<Need Help >javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call

21 views
Skip to first unread message

jeevank...@gmail.com

unread,
Mar 21, 2023, 11:43:08 AM3/21/23
to jBPM Development
Hi Team,
We are facing some abnormal issue in production few transaction is failing with below error.

| Exception occured in continueProcess javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
        at org.hibernate.jpa.spi.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1605) ~[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
        at org.hibernate.jpa.spi.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1568) ~[hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
        at org.jbpm.shared.services.impl.JpaPersistenceContext.joinTransaction(JpaPersistenceContext.java:191) ~[jbpm-shared-services-6.2.0.Final.jar:6.2.0.Final]
        at org.jbpm.shared.services.impl.TransactionalCommandService.execute(TransactionalCommandService.java:41) ~[jbpm-shared-services-6.2.0.Final.jar:6.2.0.Final]
        at org.jbpm.kie.services.impl.RuntimeDataServiceImpl.getProcessInstanceById(RuntimeDataServiceImpl.java:406) ~[jbpm-kie-services-6.2.0.Final.jar:6.2.0.Final]
        at org.jbpm.services.cdi.impl.RuntimeDataServiceCDIImpl$Proxy$_$$_WeldClientProxy.getProcessInstanceById(Unknown Source) ~[jbpm-services-cdi-6.2.0.Final.jar:6.2.0.Final]
        at org.jbpm.kie.services.impl.ProcessServiceImpl.setProcessVariables(ProcessServiceImpl.java:200) ~[jbpm-kie-services-6.2.0.Final.jar:6.2.0.Final]
        at org.jbpm.services.cdi.impl.ProcessServiceCDIImpl$Proxy$_$$_WeldClientProxy.setProcessVariables(Unknown Source) ~[jbpm-services-cdi-6.2.0.Final.jar:6.2.0.Final]
        at co.in.sixdee.middleware.services.bo.GenericServiceBOJPANewChanges.continueProcess(GenericServiceBOJPANewChanges.java:2520) [om_togo_core-5.9.6.0.jar:?]
        at co.in.sixdee.middleware.services.bo.GenericServiceBOJPANewChanges.processRequest(GenericServiceBOJPANewChanges.java:1017) [om_togo_core-5.9.6.0.jar:?]
        at co.in.sixdee.middleware.fw.bo.SyncProcessBO.serviceRequestProcessing(SyncProcessBO.java:58) [om_togo_core-5.9.6.0.jar:?]
        at co.in.sixdee.middleware.fw.util.FlowOneUtility.processCallBackResponse(FlowOneUtility.java:279) [om_togo_core-5.9.6.0.jar:?]
        at co.in.sixdee.middleware.fw.queue.GenericResponseProcessThread.run(GenericResponseProcessThread.java:37) [om_togo_core-5.9.6.0.jar:?].


Scenario :
1.Once module got request ,we started the process normally and there is some wait signal for call back trigger from other module/application.
2. Once we get the async call back from  module/application we are fetching the corresponding process instance and signals from processInstanc and eventtypes bpm table. And start continuing the process.

Here we are getting the signals but during  processService.setProcessVariables(Long.parseLong(processInstanceId), processVariables) execution getting above exception.

after some few minutes if we trigger ame call back request manually process will continue with success response.


Kindly help!!

Thanks &Regards,
Jeevan
Reply all
Reply to author
Forward
0 new messages