0 Replies Latest reply on Dec 13, 2017 4:09 AM by Mahesh Lalwani

    Frequently getting issues related to Hibernate JBPM

    Mahesh Lalwani Newbie

      Hi,

       

      I am using JBPM libraries of version 6.0 in java application. It is not web application, its normal java application

       

      I am frequently getting issues of Hibernate as below from JBPM Engine.

       

      1) No active JTA transaction on joinTransaction call while using auditService object

            For statement auditService.findVariableInstances(Integer.parseInt(processInstanceId));

      2) Also on auditService object to findProcessInstance

      JMSWorkThread:134 - Breaking Flow, Command Threw Exception :

      javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call

      at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1233)

      at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1183)

      at org.jbpm.process.audit.JPAAuditLogService.joinTransaction(JPAAuditLogService.java:366)

      at org.jbpm.process.audit.JPAAuditLogService.findProcessInstances(JPAAuditLogService.java:102)

       

      3) On taskservice object to getTaskList

      javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call

      at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1233)

      at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1183)

      at org.jbpm.shared.services.impl.JbpmJTATransactionManager.attachPersistenceContext(JbpmJTATransactionManager.java:43)

      at org.jbpm.shared.services.impl.JbpmServicesPersistenceManagerImpl.beginTransaction(JbpmServicesPersistenceManagerImpl.java:307)

      at org.jbpm.services.task.HumanTaskConfigurator$TransactionInterceptor.invoke(HumanTaskConfigurator.java:352)

      at com.sun.proxy.$Proxy38.getTasksAssignedAsPotentialOwner(Unknown Source)

      at org.jbpm.runtime.manager.impl.task.SynchronizedTaskService.getTasksAssignedAsPotentialOwner(SynchronizedTaskService.java:328)