Author Message
Kamal-
Joined: Jan 18, 2017
Messages: 12
Offline
Hi,
We are getting this error while iterating and looping back to exclusive gateway. We are maintaining termination properly but not able to identify where are we doing wrong.

Workflow problem is : There is infinite loop, please check the flow and the conditionsDataAccessException is: java.lang.Exception in method executeNode()


Thanks & regards
  • [Thumb - workflowerror.PNG]
[Disk] Download
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
can you please provide ED logs, and a if possible export workflow and provide that as well
Kamal-
Joined: Jan 18, 2017
Messages: 12
Offline
Hi,
We are able to cop up with this issue. We were not using call drop task at the end in exclusive gateway where we had loop. We added another gateway before getting back to the same process and in it we added a call drop task and I worked.


Thanks & regards,
--
bbailey
Joined: Jan 13, 2017
Messages: 16
Offline
I have the same problem and it is difficult to pinpoint as there appears to be some race condition that doesn't happen on a specific event. I doesn't occur often but one in about 15 calls create this loop exception. The logs quickly overflow but you can see the exception below.

at com.roobroo.bpm.exec.Engine.executeNode(Engine.java:424)
at com.roobroo.bpm.exec.Engine.putTokens(Engine.java:1139)
at com.roobroo.bpm.exec.Engine.completeTask(Engine.java:847)
at com.roobroo.bpm.im.InstanceManager.resumeInstance(InstanceManager.java:379)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.processRuntimeEvents(WorkFlowRuntimeEventListener.java:660)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.access$100(WorkFlowRuntimeEventListener.java:62)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener$1.execute(WorkFlowRuntimeEventListener.java:109)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener$1.execute(WorkFlowRuntimeEventListener.java:98)
at com.roobroo.bpm.db.TransactionAwareContext.execute(TransactionAwareContext.java:121)
at com.roobroo.bpm.db.TransactionAwareContext.execute(TransactionAwareContext.java:112)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.eventReceived(WorkFlowRuntimeEventListener.java:126)
at com.avaya.workflow.eventing.WFEventDao$1.call(WFEventDao.java:47)
at com.avaya.workflow.eventing.WFEventDao$1.call(WFEventDao.java:41)
at java.util.concurrent.FutureTask.run(FutureTask.java:277)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
at java.util.concurrent.FutureTask.run(FutureTask.java:277)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:785)
2018-08-10 10:53:59,287 [pool-129-thread-3] EngagementDesigner ERROR - EngagementDesigner-3.4.0.0.32008 - Error in getting the call object. Invalid callID:00002004291533912797
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.StackOverflowError
at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:783)
at javax.rmi.CORBA.Util.wrapException(Util.java:290)
2018-08-10 10:53:59,312 [pool-129-thread-3] EngagementDesigner INFO - EngagementDesigner-3.4.0.0.32008 - Removing 266
2018-08-10 10:53:59,322 [pool-129-thread-3] EngagementDesigner INFO - EngagementDesigner-3.4.0.0.32008 - Adding 266 com.avaya.app.entity.Instance@630b3be3
2018-08-10 10:53:59,322 [pool-129-thread-3] EngagementDesigner INFO - EngagementDesigner-3.4.0.0.32008 - Removing 266
2018-08-10 10:53:59,322 [pool-129-thread-3] EngagementDesigner ERROR - EngagementDesigner-3.4.0.0.32008 - Error in processing
java.lang.RuntimeException: com.roobroo.bpm.exceptions.WorkflowException: Workflow problem is : There is infinite loop, please check the flow and the conditionsDataAccessException is: java.lang.Exception in method executeNode()
at com.roobroo.bpm.im.InstanceManager.resumeInstance(InstanceManager.java:396)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.processRuntimeEvents(WorkFlowRuntimeEventListener.java:660)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.access$100(WorkFlowRuntimeEventListener.java:62)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener$1.execute(WorkFlowRuntimeEventListener.java:109)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener$1.execute(WorkFlowRuntimeEventListener.java:98)
at com.roobroo.bpm.db.TransactionAwareContext.execute(TransactionAwareContext.java:121)
at com.roobroo.bpm.db.TransactionAwareContext.execute(TransactionAwareContext.java:112)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.eventReceived(WorkFlowRuntimeEventListener.java:126)
at com.avaya.workflow.eventing.WFEventDao$1.call(WFEventDao.java:47)
at com.avaya.workflow.eventing.WFEventDao$1.call(WFEventDao.java:41)
at java.util.concurrent.FutureTask.run(FutureTask.java:277)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
at java.util.concurrent.FutureTask.run(FutureTask.java:277)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:785)
Caused by: com.roobroo.bpm.exceptions.WorkflowException: Workflow problem is : There is infinite loop, please check the flow and the conditionsDataAccessException is: java.lang.Exception in method executeNode()
at com.roobroo.bpm.exceptions.WorkflowExceptionFactory.getWorkflowException(WorkflowExceptionFactory.java:111)
at com.roobroo.bpm.im.InstanceManager.handleWorkflowException(InstanceManager.java:769)
... 16 more
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
can you please provide workflow xml and ED logs
bbailey
Joined: Jan 13, 2017
Messages: 16
Offline
The ed logs roll over with the volume of entries and what I have above shows the last few entries (everything else is repeating in the log). I am going to have to see how to increase the logs to collect this volume or monitor and trap the initial entries to the log.
bbailey
Joined: Jan 13, 2017
Messages: 16
Offline
Some additional detail. It looks like the infinite loop occurs often when the caller/remote party disconnects during a play and collect task:

.
.
.
.
at com.roobroo.bpm.exec.Engine.completeTask(Engine.java:847)
at com.roobroo.bpm.im.InstanceManager.resumeInstance(InstanceManager.java:379)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.processRuntimeEvents(WorkFlowRuntimeEventListener.java:660)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.access$100(WorkFlowRuntimeEventListener.java:62)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener$1.execute(WorkFlowRuntimeEventListener.java:109)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener$1.execute(WorkFlowRuntimeEventListener.java:98)
at com.roobroo.bpm.db.TransactionAwareContext.execute(TransactionAwareContext.java:121)
at com.roobroo.bpm.db.TransactionAwareContext.execute(TransactionAwareContext.java:112)
at com.avaya.workflow.events.WorkFlowRuntimeEventListener.eventReceived(WorkFlowRuntimeEventListener.java:126)
at com.avaya.workflow.eventing.WFEventDao$1.call(WFEventDao.java:47)
at com.avaya.workflow.eventing.WFEventDao$1.call(WFEventDao.java:41)
at java.util.concurrent.FutureTask.run(FutureTask.java:277)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)
at java.util.concurrent.FutureTask.run(FutureTask.java:277)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.lang.Thread.run(Thread.java:785)
Caused by: java.lang.StackOverflowError
at com.ibm.rmi.iiop.CDROutputStream.writeBoolean(CDROutputStream.java:369)
at com.ibm.rmi.iiop.CDRWriter.write_boolean(CDRWriter.java:374)
at com.ibm.rmi.iiop.EncoderOutputStream.write_boolean(EncoderOutputStream.java:559)
at com.ibm.rmi.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:792)
at com.ibm.rmi.io.OutputStreamHook.defaultWriteObject(OutputStreamHook.java:145)
at java.lang.Throwable.writeObject(Throwable.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at com.ibm.rmi.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:1186)
at com.ibm.rmi.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:1220)
at com.ibm.rmi.io.IIOPOutputStream.writeSerializable(IIOPOutputStream.java:1309)
at com.ibm.rmi.io.IIOPOutputStream.simpleWriteObjectInternal(IIOPOutputStream.java:641)
at com.ibm.rmi.io.IIOPOutputStream.simpleWriteObjectLoop(IIOPOutputStream.java:669)
at com.ibm.rmi.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:751)
at com.ibm.rmi.io.FastPathForCollocated.copyUsingORBSerialization(FastPathForCollocated.java:1650)
at com.ibm.rmi.io.FastPathForCollocated.doCopy(FastPathForCollocated.java:541)
at com.ibm.rmi.io.FastPathForCollocated.deepCopy(FastPathForCollocated.java:284)
at com.ibm.rmi.iiop.ObjectCopierFactory$DeepObjectCopier.doWork(ObjectCopierFactory.java:332)
at com.ibm.rmi.iiop.ObjectCopierFactory$AbstractCopier.waitForCompletion(ObjectCopierFactory.java:171)
at com.ibm.rmi.iiop.ObjectCopierFactory$AbstractCopier.getCopy(ObjectCopierFactory.java:189)
at com.ibm.rmi.util.ProxyUtil.copyObject(ProxyUtil.java:371)
at com.ibm.CORBA.iiop.ClientDelegate.invoke0(ClientDelegate.java:1327)
at com.ibm.CORBA.iiop.ClientDelegate$ClientDelegate0.invoke(ClientDelegate.java:1531)
at com.sun.proxy.$Proxy231.readCallByUcid(Unknown Source)
... 4885 more
2018-08-17 14:40:21,500 [pool-44-thread-47] EngagementDesigner ERROR - EngagementDesigner-3.4.0.0.32008 - Error getting call object...
2018-08-17 14:40:21,501 [pool-44-thread-47] EngagementDesigner ERROR - EngagementDesigner-3.4.0.0.32008 - Error while executing instance for id: 344
java.lang.IllegalArgumentException: Call object not found...
at com.avaya.designer.task.communication.PlayCollectExecution.execute(PlayCollectExecution.java:203)
at com.roobroo.bpm.exec.Engine.executeNode(Engine.java:314)
at com.roobroo.bpm.exec.Engine.putTokens(Engine.java:1139)
at com.roobroo.bpm.exec.Engine.completeTask(Engine.java:847)
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
can you please provide workflow xml also
bbailey
Joined: Jan 13, 2017
Messages: 16
Offline
Ok I am getting this in a repeatable manner now. My flow uses a number of different custom tasks that I developed so I don't think it will help. The issue appears when intercepting a call and engaging AMS (via prompting or just playing an announcement) and disconnecting the call. If you disconnect the call and your flow has a error boundary event to 'allow' the call, the infinite loop will occur every time.
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
would it be possible for you to create a small version of your workflow which does not have your custom tasks and still has the issue

That way we would have test case that we can work with
Go to:   
Mobile view