Error Message Unable to commit transaction Stacktrace java.lang.RuntimeException: Unable to commit transaction at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronizationImple(TransactionImple.java:401) at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronization(TransactionImple.java:377) at org.apache.tomcat.dbcp.dbcp2.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:114) at org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:137) at org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.(ManagedConnection.java:59) at org.apache.tomcat.dbcp.dbcp2.managed.ManagedDataSource.getConnection(ManagedDataSource.java:81) at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:84) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:109) at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47) at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare(StatementPreparerImpl.java:87) at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172) at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:78) at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.buildBatchStatement(AbstractBatchImpl.java:136) at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.getBatchStatement(AbstractBatchImpl.java:125) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3127) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3063) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3443) at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:145) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:589) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:463) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1295) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1300) at org.drools.persistence.TriggerUpdateTransactionSynchronization.beforeCompletion(TriggerUpdateTransactionSynchronization.java:76) at org.drools.persistence.jta.JtaTransactionSynchronizationAdapter.beforeCompletion(JtaTransactionSynchronizationAdapter.java:54) at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76) at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:368) at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91) at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162) at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289) at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126) at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:246) at org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:597) at org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:552) at org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:398) at org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:66) at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:37) at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:41) at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.insert(CommandBasedStatefulKnowledgeSession.java:431) at org.jbpm.bpmn2.IntermediateEventTest.testIntermediateCatchEventConditionFilterByProcessInstance(IntermediateEventTest.java:1423) Standard Output 2018-05-21 08:36:15,878 [main] INFO >>> testIntermediateCatchEventConditionFilterByProcessInstance[1] <<< 2018-05-21 08:36:15,885 [Time-limited test] ERROR Node Info: id: name: Parser message: (null: 2, 545): cvc-complex-type.4: Attribute 'targetNamespace' must appear on element 'definitions'. 2018-05-21 08:36:15,914 [Time-limited test] INFO KieModule was added: MemoryKieModule[releaseId=org.default:artifact:1.0.0-SNAPSHOT] Started for person: 1 2018-05-21 08:36:15,933 [Time-limited test] WARN SQL Error: 0, SQLState: null 2018-05-21 08:36:15,933 [Time-limited test] ERROR Unable to register transaction context listener 2018-05-21 08:36:15,938 [Time-limited test] WARN Unable to commit transaction javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction. at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1301) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:246) ~[drools-persistence-api-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:597) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:552) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:398) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:66) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:37) [drools-core-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:41) [drools-core-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.insert(CommandBasedStatefulKnowledgeSession.java:431) [drools-core-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.jbpm.bpmn2.IntermediateEventTest.testIntermediateCatchEventConditionFilterByProcessInstance(IntermediateEventTest.java:1423) [test-classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) [junit-4.12.jar:4.12] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_171] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171] Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1303) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.drools.persistence.TriggerUpdateTransactionSynchronization.beforeCompletion(TriggerUpdateTransactionSynchronization.java:76) ~[drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.jta.JtaTransactionSynchronizationAdapter.beforeCompletion(JtaTransactionSynchronizationAdapter.java:54) ~[drools-persistence-api-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:368) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] ... 24 common frames omitted Caused by: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:87) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:109) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare(StatementPreparerImpl.java:87) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:78) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.buildBatchStatement(AbstractBatchImpl.java:136) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.getBatchStatement(AbstractBatchImpl.java:125) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3127) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3063) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3443) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:145) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:589) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:463) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1295) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1300) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] ... 31 common frames omitted Caused by: java.sql.SQLException: Unable to register transaction context listener at org.apache.tomcat.dbcp.dbcp2.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:128) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:137) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.(ManagedConnection.java:59) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.apache.tomcat.dbcp.dbcp2.managed.ManagedDataSource.getConnection(ManagedDataSource.java:81) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:84) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] ... 48 common frames omitted Caused by: java.lang.IllegalStateException: ARJUNA016082: Synchronizations are not allowed! Transaction status isActionStatus.RUNNING at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronizationImple(TransactionImple.java:401) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronization(TransactionImple.java:377) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at org.apache.tomcat.dbcp.dbcp2.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:114) ~[tomcat-dbcp-9.0.7.jar:9.0.7] ... 54 common frames omitted 2018-05-21 08:36:15,939 [Time-limited test] WARN Could not commit session java.lang.RuntimeException: Unable to commit transaction at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:249) ~[drools-persistence-api-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:597) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:552) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:398) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:66) [drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:37) [drools-core-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:41) [drools-core-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.insert(CommandBasedStatefulKnowledgeSession.java:431) [drools-core-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.jbpm.bpmn2.IntermediateEventTest.testIntermediateCatchEventConditionFilterByProcessInstance(IntermediateEventTest.java:1423) [test-classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_171] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_171] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_171] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_171] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292) [junit-4.12.jar:4.12] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_171] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171] Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction. at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1301) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:246) ~[drools-persistence-api-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] ... 22 common frames omitted Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1608) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1303) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] at org.drools.persistence.TriggerUpdateTransactionSynchronization.beforeCompletion(TriggerUpdateTransactionSynchronization.java:76) ~[drools-persistence-jpa-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at org.drools.persistence.jta.JtaTransactionSynchronizationAdapter.beforeCompletion(JtaTransactionSynchronizationAdapter.java:54) ~[drools-persistence-api-7.8.0-SNAPSHOT.jar:7.8.0-SNAPSHOT] at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:368) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] ... 24 common frames omitted Caused by: org.hibernate.exception.GenericJDBCException: Unable to acquire JDBC Connection at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:47) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:87) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:109) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:47) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$1.doPrepare(StatementPreparerImpl.java:87) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:172) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:78) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.buildBatchStatement(AbstractBatchImpl.java:136) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.getBatchStatement(AbstractBatchImpl.java:125) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3127) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3063) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3443) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:145) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:589) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:463) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:337) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:39) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1295) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1300) ~[hibernate-entitymanager-5.1.10.Final.jar:5.1.10.Final] ... 31 common frames omitted Caused by: java.sql.SQLException: Unable to register transaction context listener at org.apache.tomcat.dbcp.dbcp2.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:128) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:137) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.apache.tomcat.dbcp.dbcp2.managed.ManagedConnection.(ManagedConnection.java:59) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.apache.tomcat.dbcp.dbcp2.managed.ManagedDataSource.getConnection(ManagedDataSource.java:81) ~[tomcat-dbcp-9.0.7.jar:9.0.7] at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:386) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:84) ~[hibernate-core-5.1.10.Final.jar:5.1.10.Final] ... 48 common frames omitted Caused by: java.lang.IllegalStateException: ARJUNA016082: Synchronizations are not allowed! Transaction status isActionStatus.RUNNING at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronizationImple(TransactionImple.java:401) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.registerSynchronization(TransactionImple.java:377) ~[narayana-jta-5.6.4.Final.jar:5.6.4.Final (revision: 8eca3)] at org.apache.tomcat.dbcp.dbcp2.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:114) ~[tomcat-dbcp-9.0.7.jar:9.0.7] ... 54 common frames omitted 2018-05-21 08:36:15,941 [main] INFO Finished testIntermediateCatchEventConditionFilterByProcessInstance[1](org.jbpm.bpmn2.IntermediateEventTest)