<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
JTA Problem with multiple sessions
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/garethed">Gareth Edwards</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/795428#795428">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span style="font-family: arial, helvetica, sans-serif;">Hello.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial, helvetica, sans-serif;">I am writing a system which will allow my to start instances of work-flows using a rest api as well as managing all the human tasks.</span></p><p><span style="font-family: arial, helvetica, sans-serif;">For now I am using one instance of a KnowlegeBase which uses an EntityManagerFactory like this:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco;"><span style="color: #931a68;">if</span> (<span style="color: #0326cc;">emf</span> == <span style="color: #931a68;">null</span>){</p><p style="font-size: 11px; font-family: Monaco;">                              <span style="color: #0326cc;">emf</span> = Persistence.createEntityManagerFactory( <span style="color: #3933ff;">"org.jbpm.persistence.jpa"</span> );</p><p style="font-size: 11px; font-family: Monaco;">                              Environment env = KnowledgeBaseFactory.newEnvironment();</p><p style="font-size: 11px; font-family: Monaco;">                              env.set( EnvironmentName.<span style="color: #0326cc;">ENTITY_MANAGER_FACTORY</span>, <span style="color: #0326cc;">emf</span> );</p><p style="font-size: 11px; font-family: Monaco;">                    }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">I am using a Stateful knowledge session per work-flow instance.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco;">JPAWorkingMemoryDbLogger <span style="text-decoration: underline;">logger</span> = <span style="color: #931a68;">new</span> JPAWorkingMemoryDbLogger(<span style="color: #0326cc;">ksession</span>);</p><p style="font-size: 11px; font-family: Monaco;">                  String connectorName = <span style="color: #3933ff;">"Hornet"</span> + UUID.randomUUID().toString();</p><p style="font-size: 11px; font-family: Monaco;">            </p><p style="font-size: 11px; font-family: Monaco;">                  AsyncHornetQHTWorkItemHandler workItemHandler = <span style="color: #931a68;">new</span> AsyncHornetQHTWorkItemHandler(<span style="color: #931a68;">new</span> AsyncHornetQTaskClient(connectorName), <span style="color: #0326cc;">ksession</span>, OnErrorAction.<span style="color: #0326cc;">LOG</span>);</p><p style="font-size: 11px; font-family: Monaco;">                  workItemHandler.setIpAddress(<span style="color: #3933ff;">"192.168.1.90"</span>);</p><p style="font-size: 11px; font-family: Monaco;">                              <span style="color: #0326cc;">ksession</span>.getWorkItemManager().registerWorkItemHandler(<span style="color: #3933ff;">"Human Task"</span>, workItemHandler);</p><p style="font-size: 11px; font-family: Monaco;">                              <span style="color: #0326cc;">ksession</span>.startProcess(<span style="color: #0326cc;">workflowSession</span>.getWorkflowName(),<span style="color: #0326cc;">workflowSession</span>.getWorkFlowData());</p><p style="font-size: 11px; font-family: Monaco;">                              <span style="color: #931a68;">try</span> {</p><p style="font-size: 11px; font-family: Monaco;">                                        Thread.sleep(2000);</p><p style="font-size: 11px; font-family: Monaco;">                              } <span style="color: #931a68;">catch</span> (InterruptedException e) {</p><p style="font-size: 11px; font-family: Monaco; color: #4e9072;"><span style="color: #000000;">  </span>// <span style="color: #91afcb;">TODO</span> Auto-generated catch block</p><p style="font-size: 11px; font-family: Monaco;">                                        e.printStackTrace();</p><p style="font-size: 11px; font-family: Monaco;">                              }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco;"><span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;">With a clean postgres database the first completion of the human task (and end of the work-flow) I get no problems:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:12:54,302 INFO  [stdout] (workflowExecutor-1) Workflow Instance Variables</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:12:54,303 INFO  [stdout] (workflowExecutor-1) agent:krisv</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:12:54,305 INFO  [stdout] (workflowExecutor-1) test_id:TZ001A0001</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:13:56,128 INFO  [stdout] (Thread-76) test_id is correct</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:13:56,128 INFO  [stdout] (Thread-76) test_id:TZ001A0001</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:13:56,128 INFO  [stdout] (Thread-76) submitted_test_id:TZ001A0001</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco;"><span style="font-family: 'andale mono', times; font-size: 8pt;">But then running the work-flow again (new session) I almost always get problems:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:33,869 INFO  [stdout] (workflowExecutor-2) Workflow Instance Variables</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:33,870 INFO  [stdout] (workflowExecutor-2) agent:krisv</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:33,870 INFO  [stdout] (workflowExecutor-2) test_id:TZ001A0001</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,675 INFO  [stdout] (Thread-76) test_id is correct</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,675 INFO  [stdout] (Thread-76) test_id:TZ001A0001</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,675 INFO  [stdout] (Thread-76) submitted_test_id:TZ001A0001</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,692 INFO  [stdout] (Thread-77) test_id is correct</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,692 INFO  [stdout] (Thread-77) test_id:TZ001A0001</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,693 INFO  [stdout] (Thread-77) submitted_test_id:TZ001A0001</span></p><p style="font-size: 11px; font-family: Monaco;"><span style="font-family: 'andale mono', times; font-size: 8pt;"><br/></span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,719 WARN  [com.arjuna.ats.arjuna] (Thread-77) ARJUNA012125: TwoPhaseCoordinator.beforeCompletion - failed for SynchronizationImple< 0:ffff7f000101:-62cc4985:510a8991:60, org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization@339ec220 >: javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#11]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1394) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:167)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150) [drools-core-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:302) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:122) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#11]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:2359) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3127) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3327) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:91) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:191) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:104) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          ... 17 more</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,732 WARN  [org.drools.persistence.jta.JtaTransactionManager] (Thread-77) Unable to commit transaction: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1177)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:167)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150) [drools-core-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:302) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:122) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#11]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1394) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          ... 11 more</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#11]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:2359) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3127) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3327) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:91) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:191) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:104) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          ... 17 more</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,737 ERROR [org.drools.persistence.SingleSessionCommandService] (Thread-77) Could not commit session: java.lang.RuntimeException: Unable to commit transaction</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:182) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:376) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150) [drools-core-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:302) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:122) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1177)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:167)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.jta.JtaTransactionManager.commit(JtaTransactionManager.java:179) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          ... 7 more</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#11]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.wrapStaleStateException(AbstractEntityManagerImpl.java:1394) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1308) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1289) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1295) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.ejb.AbstractEntityManagerImpl$CallbackExceptionMapperImpl.mapManagedFlushFailure(AbstractEntityManagerImpl.java:1481) [hibernate-entitymanager-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:109) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization.beforeCompletion(RegisteredSynchronization.java:53) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:273)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:93)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          ... 11 more</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.persistence.processinstance.ProcessInstanceInfo#11]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:2359) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3127) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:3327) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.action.internal.EntityDeleteAction.execute(EntityDeleteAction.java:91) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:272) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:264) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:191) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:326) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1081) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:315) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl.beforeCompletion(SynchronizationCallbackCoordinatorImpl.java:104) [hibernate-core-4.0.1.Final.jar:4.0.1.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          ... 17 more</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,748 WARN  [org.drools.persistence.jta.JtaTransactionManager] (Thread-77) Unable to rollback transaction: java.lang.IllegalStateException: BaseTransaction.rollback - ARJUNA016074: no transaction!</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:130)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.rollback(ServerVMClientUserTransaction.java:175)</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:191) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:402) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:381) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150) [drools-core-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:302) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:122) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,751 ERROR [org.drools.persistence.SingleSessionCommandService] (Thread-77) Could not rollback: java.lang.RuntimeException: Unable to rollback transaction</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:197) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:402) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:381) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150) [drools-core-5.5.0.Final.jar:5.5.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:302) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:122) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: java.lang.IllegalStateException: BaseTransaction.rollback - ARJUNA016074: no transaction!</span></p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:130)</span></p><table><tbody><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114)</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.rollback(ServerVMClientUserTransaction.java:175)</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:191) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">... 8 more</span></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-size: 8pt; font-family: 'andale mono', times;">15:14:54,754 ERROR [org.jbpm.task.service.hornetq.HornetQTaskClientConnector] (Thread-77) Client Exception with class class org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5153: java.lang.RuntimeException: Could not commit session or rollback</span></p><table><tbody><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:406) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:381) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150) [drools-core-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler$GetResultContentResponseHandler.execute(AsyncGenericHTWorkItemHandler.java:302) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:122) [jbpm-human-task-hornetq-5.4.0.Final.jar:5.4.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]</span></td></tr></tbody></table><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: java.lang.RuntimeException: Unable to rollback transaction</span></p><table><tbody><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:197) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.persistence.SingleSessionCommandService.rollbackTransaction(SingleSessionCommandService.java:402) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">... 7 more</span></td></tr></tbody></table><p><span style="font-size: 8pt; font-family: 'andale mono', times;">Caused by: java.lang.IllegalStateException: BaseTransaction.rollback - ARJUNA016074: no transaction!</span></p><table><tbody><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:130)</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114)</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.rollback(ServerVMClientUserTransaction.java:175)</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:191) [drools-persistence-jpa-5.5.0.Final.jar:5.5.0.Final]</span></td></tr><tr><td style=";"><br/></td><td style=";"><span style="font-size: 8pt; font-family: 'andale mono', times;">... 8 more</span></td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial, helvetica, sans-serif;">I'm using the bundled human-task-war.war application to handle human tasks.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial, helvetica, sans-serif;">The persistence for my EntityManagerFactory is configured using the following persistence.xml</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #932192;"><span style="color: #009193;"><?</span><span style="color: #4e9192;">xml</span><span style="color: #000000;"> </span>version<span style="color: #000000;">=</span><span style="color: #3933ff;">"1.0"</span><span style="color: #000000;"> </span>encoding<span style="color: #000000;">=</span><span style="color: #3933ff;">"UTF-8"</span><span style="color: #000000;"> </span>standalone<span style="color: #000000;">=</span><span style="color: #3933ff;">"yes"</span><span style="color: #009193;">?></span></p><p style="font-size: 11px; font-family: Monaco; color: #4e9192;"><span style="color: #009193;"><</span>persistence<span style="color: #000000;"> </span><span style="color: #932192;">version</span><span style="color: #000000;">=</span><span style="color: #3933ff;">"2.0"</span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #932192;">xmlns</span><span style="color: #000000;">=</span><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/persistence</a><span>"</span><span style="color: #000000;"> </span><span style="color: #932192;">xmlns:xsi</span><span style="color: #000000;">=</span><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p style="font-size: 11px; font-family: Monaco; color: #932192;"><span style="color: #000000;">  </span>xsi:schemaLocation<span style="color: #000000;">=</span><span style="color: #3933ff;">"</span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span>        </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/persistence</a></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span>        </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" rel="nofollow" target="_blank">http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd</a><span>"</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">persistence-unit</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"org.jbpm.persistence.jpa"</p><p style="font-size: 11px; font-family: Monaco; color: #932192;"><span style="color: #000000;">  </span>transaction-type<span style="color: #000000;">=</span><span style="color: #3933ff;">"JTA"</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">provider</span><span style="color: #009193;">></span>org.hibernate.ejb.HibernatePersistence<span style="color: #009193;"></</span><span style="color: #4e9192;">provider</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">jta-data-source</span><span style="color: #009193;">></span>java:jboss/<span style="text-decoration: underline;">datasources</span>/jbpmDS<span style="color: #009193;"></</span><span style="color: #4e9192;">jta-data-source</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="text-decoration: underline; color: #009193;"><</span><span style="text-decoration: underline; color: #4e9192;">mapping-file</span><span style="text-decoration: underline; color: #009193;">></span>META-INF/JBPMorm-JPA2.<span style="text-decoration: underline;">xml</span><span style="color: #009193;"></</span><span style="color: #4e9192;">mapping-file</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="text-decoration: underline; color: #009193;"><</span><span style="text-decoration: underline; color: #4e9192;">mapping-file</span><span style="text-decoration: underline; color: #009193;">></span>META-INF/ProcessInstanceInfoMapping-JPA2.<span style="text-decoration: underline;">xml</span><span style="color: #009193;"></</span><span style="color: #4e9192;">mapping-file</span><span style="color: #009193;">></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span>org.drools.persistence.info.SessionInfo<span style="color: #009193;"></</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span>org.drools.persistence.info.WorkItemInfo<span style="color: #009193;"></</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span>org.jbpm.process.audit.ProcessInstanceLog<span style="color: #009193;"></</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span>org.jbpm.process.audit.NodeInstanceLog<span style="color: #009193;"></</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco;">                    <span style="color: #009193;"><</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span>org.jbpm.process.audit.VariableInstanceLog<span style="color: #009193;"></</span><span style="color: #4e9192;">class</span><span style="color: #009193;">></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #4e9192;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span>properties<span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">property</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"hibernate.dialect"<span style="color: #000000;"> </span><span style="color: #932192;">value</span><span style="color: #000000;">=</span>"org.hibernate.dialect.PostgreSQLDialect"<span style="color: #000000;"> </span><span style="color: #009193;">/></span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">property</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"hibernate.max_fetch_depth"<span style="color: #000000;"> </span><span style="color: #932192;">value</span><span style="color: #000000;">=</span>"3"<span style="color: #000000;"> </span><span style="color: #009193;">/></span></p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;"><span style="color: #000000;">  </span><!-- property name="hibernate.hbm2ddl.auto" value="update" /--></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">property</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"hibernate.show_sql"<span style="color: #000000;"> </span><span style="color: #932192;">value</span><span style="color: #000000;">=</span>"false"<span style="color: #000000;"> </span><span style="color: #009193;">/></span></p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;"><span style="color: #000000;">  </span><!--property name="hibernate.transaction.manager_lookup_class"</p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;">                                        value="org.hibernate.transaction.JBossTransactionManagerLookup" /--></p><p style="font-size: 11px; font-family: Monaco;">  </p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">property</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"hibernate.transaction.jta.platform"<span style="color: #000000;"> </span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #932192;">value</span><span style="color: #000000;">=</span>"org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform"<span style="color: #000000;"> </span><span style="color: #009193;">/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;"><span style="color: #000000;">  </span><!-- BZ 841786: AS7/EAP 6/<span style="text-decoration: underline;">Hib</span> 4 uses new (sequence) generators which seem </p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;">                                        to cause problems --></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">property</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"hibernate.id.new_generator_mappings"<span style="color: #000000;"> </span><span style="color: #932192;">value</span><span style="color: #000000;">=</span>"false"<span style="color: #000000;"> </span><span style="color: #009193;">/></span></p><p style="font-size: 11px; font-family: Monaco; color: #4e9192;"><span style="color: #000000;">  </span><span style="color: #009193;"></</span>properties<span style="color: #009193;">></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #4e9192;"><span style="color: #000000;">  </span><span style="color: #009193;"></</span>persistence-unit<span style="color: #009193;">></span></p><p style="font-size: 11px; font-family: Monaco; color: #4e9192;"><span style="color: #009193;"></</span>persistence<span style="color: #009193;">></span></p><p><span style="font-family: arial, helvetica, sans-serif;"><br/></span></p><p><span style="font-family: arial, helvetica, sans-serif;">I tried the change below as it was suggested by another user with similar problems with Postgres</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;"><span style="color: #000000;">  </span><!--property name="hibernate.transaction.manager_lookup_class"</p><p style="font-size: 11px; font-family: Monaco; color: #4f76cb;">  value="org.hibernate.transaction.JBossTransactionManagerLookup" /--></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #009193;"><</span><span style="color: #4e9192;">property</span><span style="color: #000000;"> </span><span style="color: #932192;">name</span><span style="color: #000000;">=</span>"hibernate.transaction.jta.platform"<span style="color: #000000;"> </span></p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #000000;">  </span><span style="color: #932192;">value</span><span style="color: #000000;">=</span>"org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform"<span style="color: #000000;"> </span><span style="color: #009193;">/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="font-size: 11px; font-family: Monaco; color: #3933ff;"><span style="color: #009193;"><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 10pt;">But that didn't seem to help.</span><br/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial, helvetica, sans-serif;">I hope somebody can help</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial, helvetica, sans-serif;">Thanks in advance,</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial, helvetica, sans-serif;">Gareth.<br/></span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/795428#795428">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>