URGENT: Transaction timeout - completed with multiple threads

757 views
Skip to first unread message

ram...@gmail.com

unread,
Oct 15, 2021, 12:42:16 PM10/15/21
to jBPM Setup
Hi

I am using KIE Server Client API to start a process from a Workitem Handler. Everything works fine on my laptop with windows 10.

WorkItem Handler business logic requires to execute few other sub-processes dynamically. So, inside WI Handler I use KIE Server client API to invoke the same container and start the processes using the client API. Is this causing the issue? But this works fine on my laptop with windows 10.

I am facing the issue when moved the JBPM and business processes code to Windows Server 2019 on AWS EC2.

When the client API tries to start a process, I see below error

---------------------------------------------------------------------------------------------------------------------------
Oct 14, 2021 7:54:05 AM com.arjuna.ats.arjuna.coordinator.TransactionReaper check
WARN: ARJUNA012117: TransactionReaper::check timeout for TX 0:ffffac1f2b9d:e1d5:6167e10d:c0 in state  RUN
Oct 14, 2021 7:54:05 AM com.arjuna.ats.arjuna.coordinator.BasicAction checkChildren
WARN: ARJUNA012095: Abort of action id 0:ffffac1f2b9d:e1d5:6167e10d:c0 invoked while multiple threads active within it.
Oct 14, 2021 7:54:05 AM com.arjuna.ats.arjuna.coordinator.BasicAction checkChildren
WARN: ARJUNA012381: Action id 0:ffffac1f2b9d:e1d5:6167e10d:c0 completed with multiple threads - thread http-nio-0.0.0.0-8090-exec-9 was in progress with java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
java.net.SocketInputStream.read(SocketInputStream.java:171)
java.net.SocketInputStream.read(SocketInputStream.java:141)
java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
java.io.BufferedInputStream.read(BufferedInputStream.java:345)
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1593)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
org.kie.server.common.rest.KieServerHttpRequest.responseCode(KieServerHttpRequest.java:1329)
org.kie.server.client.impl.AbstractKieServicesClientImpl$6.doOperation(AbstractKieServicesClientImpl.java:307)
org.kie.server.client.impl.AbstractKieServicesClientImpl.invoke(AbstractKieServicesClientImpl.java:809)
org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateCustomResponse(AbstractKieServicesClientImpl.java:304)
org.kie.server.client.impl.AbstractKieServicesClientImpl.makeHttpPostRequestAndCreateCustomResponse(AbstractKieServicesClientImpl.java:299)
org.kie.server.client.impl.ProcessServicesClientImpl.startProcess(ProcessServicesClientImpl.java:262)
com.digitalgalaxy.service.util.JbpmClient.startProcessById(JbpmClient.java:172)
com.digitalgalaxy.service.util.JbpmClient.startByProcessId(JbpmClient.java:88)

------skipped few error lines
Oct 14, 2021 7:54:05 AM com.arjuna.ats.arjuna.coordinator.CheckedAction check
WARN: ARJUNA012108: CheckedAction::check - atomic action 0:ffffac1f2b9d:e1d5:6167e10d:c0 aborting with 1 threads active!
Oct 14, 2021 7:54:05 AM org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorTrackingImpl afterCompletion
WARN: HHH000451: Transaction afterCompletion called by a background thread; delaying afterCompletion processing until the original thread can handle it. [status=4]
Oct 14, 2021 7:54:05 AM org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorTrackingImpl afterCompletion
WARN: HHH000451: Transaction afterCompletion called by a background thread; delaying afterCompletion processing until the original thread can handle it. [status=4]
Oct 14, 2021 7:54:05 AM org.hibernate.resource.transaction.backend.jta.internal.synchronization.SynchronizationCallbackCoordinatorTrackingImpl afterCompletion
WARN: HHH000451: Transaction afterCompletion called by a background thread; delaying afterCompletion processing until the original thread can handle it. [status=4]
Oct 14, 2021 7:54:05 AM com.arjuna.ats.arjuna.coordinator.TransactionReaper doCancellations
WARN: ARJUNA012121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffffac1f2b9d:e1d5:6167e10d:c0
[http-nio-0.0.0.0-8090-exec-9] WARN org.drools.persistence.PersistableRunner - Could not commit session
org.jbpm.workflow.instance.WorkflowRuntimeException: [create-component-kjar.create_project_process:2 - Create Project:1] -- No available endpoints found
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.processWorkItemHandler(WorkItemNodeInstance.java:175)
        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:146)
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:197)
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:402)
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:383)
        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:352)
        at org.jbpm.workflow.instance.node.JoinInstance.triggerCompleted(JoinInstance.java:272)

-----------------------------------------------------------------------------------------------------------------------------------------
Detailed log is attached.

How can resolve this?

Thanks
Ram

error_process_fails_due_to_another_active_thread.txt

ram...@gmail.com

unread,
Oct 18, 2021, 11:14:37 PM10/18/21
to jBPM Setup
Hi guys, Need help here. Can you please suggest if there is an alternative? Is it wrong to do that way in first place? Awaiting for an answer.

ram...@gmail.com

unread,
Oct 21, 2021, 12:41:21 PM10/21/21
to jBPM Setup
Hi experts of the community: 

Please suggest any alternative solution. 

Request attention.

On Friday, October 15, 2021 at 10:12:16 PM UTC+5:30 ram...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages