Error when posting a pause node

Post any question regarding setting up, running or configuring Verj.io Workflow

Moderators: Jon, Steve, Ian, Dave

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

Error when posting a pause node

#1

Postby ericb » Thu Jul 06, 2017 7:14 pm

In the past I've been able to post pause nodes with the workflow API, but recently all of my attempts have resulted in the error below, and I'm not sure what's different in how I'm trying to post them now that didn't occur in the past.

In short, the following line of code:

Code: Select all

system.workflow.api.post(fields._parentJobID.value, 'approvalWait', 'check if ready to continue', 'system');
generates the following error:
Exception in run: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations
Bonus pause node-related question: We've noticed that with a pause node set to repeat every minute, repetition stops after 100 iterations. Is there a hard-coded limit that a pause node can't repeat its code more than 100 times?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Fri Jul 07, 2017 8:47 am

Which Ebase version are you using?

If you have an exception in your server log, could you also add this please.

Bonus question answer: no, there is no limit. 100 is a bit of a suspicious number
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

#3

Postby ericb » Fri Jul 07, 2017 12:34 pm

We are using V5.2.0. Server log with the exception is below:

Code: Select all

Thu Jul 06 14:58:46: INFO ** START POSTED EXECUTION OF WORKFLOW PAUSE NODE SCRIPT: awaitApprovals, JOB: JOB:SSA_doorITsysApprovals:1:551 **
Thu Jul 06 14:58:46: INFO Executing Javascript script PAUSE_SCRIPT_awaitApprovals
com.ebasetech.xi.exceptions.FormRuntimeException: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
Thu Jul 06 14:58:46: ERROR Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.handleExecutionErrors(JVMScriptNode.java:213)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:355)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:114)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:280)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:133)
	at com.ebasetech.ufs.workflow.server.enactment.Job.executeScript_(Job.java:1090)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:99)
	at com.ebasetech.ufs.workflow.server.enactment.Job.executeScript(Job.java:1054)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.workflow.server.process.activity.ScriptActivityImpl.go(ScriptActivityImpl.java:34)
	at com.ebasetech.ufs.workflow.server.enactment.Job.executeScript_(Job.java:1090)
	at com.ebasetech.ufs.workflow.server.enactment.SystemTaskEnactment.doit(SystemTaskEnactment.java:84)
	at com.ebasetech.ufs.workflow.server.enactment.WorkQueue$WorkThread.run(WorkQueue.java:472)
	at com.ebasetech.ufs.workflow.server.enactment.Job.executeScript(Job.java:1054)
	at com.ebasetech.ufs.workflow.server.process.activity.ScriptActivityImpl.go(ScriptActivityImpl.java:34)
	at com.ebasetech.ufs.workflow.server.enactment.SystemTaskEnactment.doit(SystemTaskEnactment.java:84)
	at com.ebasetech.ufs.workflow.server.enactment.WorkQueue$WorkThread.run(WorkQueue.java:472)
Caused by: com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:775)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2226)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2205)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:355)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:280)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:133)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:99)
	... 6 more
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
Caused by: com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
	at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
	at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:270)
	... 8 more
Caused by: com.ebasetech.ufs.workflow.server.process.activity.ScriptFailedException: Cannot have any pending top calls when executing a script with continuations
	at com.ebasetech.ufs.workflow.server.enactment.PauseEnactment.runScript(PauseEnactment.java:244)
	at com.ebasetech.ufs.workflow.server.enactment.PauseEnactment.post(PauseEnactment.java:165)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:775)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$34.go(WorkflowManager.java:2250)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:751)
	... 24 more
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2226)
Thu Jul 06 14:58:46: INFO ** END EXECUTION OF WORKFLOW SYSTEM TASK NODE: updateApprovalRequest, ACTIVITY: doorITsysJobUpdate, JOB: JOB:SSA_doorITsysJob:1:263 **
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2205)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
	at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
	at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:270)
	... 8 more
Caused by: com.ebasetech.ufs.workflow.server.process.activity.ScriptFailedException: Cannot have any pending top calls when executing a script with continuations
	at com.ebasetech.ufs.workflow.server.enactment.PauseEnactment.runScript(PauseEnactment.java:244)
	at com.ebasetech.ufs.workflow.server.enactment.PauseEnactment.post(PauseEnactment.java:165)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$34.go(WorkflowManager.java:2250)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:751)
	... 24 more
com.ebasetech.ufs.workflow.server.process.activity.ActivityFailedException: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
	at com.ebasetech.ufs.workflow.server.enactment.SystemTaskEnactment.doit(SystemTaskEnactment.java:96)
	at com.ebasetech.ufs.workflow.server.enactment.WorkQueue$WorkThread.run(WorkQueue.java:472)
Caused by: com.ebasetech.xi.exceptions.FormRuntimeException: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.handleExecutionErrors(JVMScriptNode.java:213)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:114)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.workflow.server.enactment.Job.executeScript_(Job.java:1090)
	at com.ebasetech.ufs.workflow.server.enactment.Job.executeScript(Job.java:1054)
	at com.ebasetech.ufs.workflow.server.process.activity.ScriptActivityImpl.go(ScriptActivityImpl.java:34)
	at com.ebasetech.ufs.workflow.server.enactment.SystemTaskEnactment.doit(SystemTaskEnactment.java:84)
	... 1 more
Caused by: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.handleExecutionErrors(JavascriptExecutionHandler.java:355)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:280)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute_(JVMScriptNode.java:133)
	at com.ebasetech.ufs.runtime.events.JVMScriptNode.execute(JVMScriptNode.java:99)
	... 6 more
Caused by: com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:775)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2226)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2205)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3280)
	at org.mozilla.javascript.Context.callFunctionWithContinuations(Context.java:1284)
	at org.mozilla.javascript.Context.executeScriptWithContinuations(Context.java:1251)
	at com.ebasetech.ufs.runtime.events.rhinojavascript.JavascriptExecutionHandler.execute(JavascriptExecutionHandler.java:270)
	... 8 more
Caused by: com.ebasetech.ufs.workflow.server.process.activity.ScriptFailedException: Cannot have any pending top calls when executing a script with continuations
	at com.ebasetech.ufs.workflow.server.enactment.PauseEnactment.runScript(PauseEnactment.java:244)
	at com.ebasetech.ufs.workflow.server.enactment.PauseEnactment.post(PauseEnactment.java:165)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$34.go(WorkflowManager.java:2250)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:751)
	... 24 more
Thu Jul 06 14:58:46:  Failed while enacting node: enactment 3 in Stream 0 for Job: SSA_doorITsysJob / 1 ( 263 )  of type com.ebasetech.ufs.workflow.server.enactment.SystemTaskEnactment: com.ebasetech.ufs.runtime.events.rhinojavascript.RhinoScriptException: Wrapped com.ebasetech.ufs.workflow.server.external.WorkflowManagementException: Script execution error: Cannot have any pending top calls when executing a script with continuations (ACTIVITY_SCRIPT_doorITsysJobUpdate#66)
Thu Jul 06 14:58:46: INFO Transaction rolled back
Do you have any hunches for why it could be stopping after 100? After the first time it happened, the 100 number was a bit suspicious to me as well, so we started another process and left it to see if it would stop after 100, and it did once again.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Fri Jul 07, 2017 1:25 pm

I suspect that the error is caused by the fact that the system activity node and the pause node script are both Javascript. This leads to nesting two Javascript executions within each other which is not allowed. You can see this in the stack trace. In which case this is a bug and we will need to fix it. As a bypass I suggest changing one of the two scripts from Javascript to FPL. Hopefully that will solve the problem.

I still don't have any suggestions about the 100 iterations. Obvious question but are you sure you haven't got anything in the pause node logic which is doing this?
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

#5

Postby ericb » Fri Jul 07, 2017 2:42 pm

I've created a barebones test process that also repeats every minute to see if that one stops after 100 repetitions, I'll see what that one does.

I also created another one to check if posting the pause node with an FPL script works, but I'm getting a different error. I don't really ever use FPL, so I'm not very good at debugging this.

This is the process and the pause node:

Image

I created a test form with a new script that just opened a job for that process. Here it is afterwards in the workflow admin:

Image

I then changed my test form to use an FPL script to post it, with the following code, which I think is correct:

Code: Select all

workflow post job 'JOB:PauseTest_1:1:1' testWait;
However I'm getting the following error in the server log:

Code: Select all

Fri Jul 07 10:51:03: INFO Executing FPL script test_script2
Fri Jul 07 10:51:03: INFO (test_script2:1) executing workflow post job 'JOB:PauseTest_1:1:1' testWait
Fri Jul 07 10:51:03: ERROR Object not found in the repository: Job: PAUSETEST_1 / 1 ( 1 ) 
com.ebasetech.ufs.kernel.EntityNotFoundException: Object not found in the repository: Job: PAUSETEST_1 / 1 ( 1 ) 
	at com.ebasetech.ufs.utility.PersistenceHelper.load(PersistenceHelper.java:130)
	at com.ebasetech.ufs.workflow.server.dbpersist.JobDbPersist.loadJob(JobDbPersist.java:205)
	at com.ebasetech.ufs.workflow.server.enactment.Job._openExistingJob(Job.java:414)
	at com.ebasetech.ufs.workflow.server.enactment.Job.openExistingJob(Job.java:214)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$JobAccessor.load(WorkflowManager.java:99)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$JobAccessor.getJob(WorkflowManager.java:112)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$JobAccessor.access$800(WorkflowManager.java:70)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager$34.go(WorkflowManager.java:2243)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.protect(WorkflowManager.java:751)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2226)
	at com.ebasetech.ufs.workflow.server.external.WorkflowManager.post(WorkflowManager.java:2205)
	at com.ebasetech.ufs.runtime.workflow.RuntimeFormWorkflow.post(RuntimeFormWorkflow.java:844)
	at com.ebasetech.ufs.validation.WorkflowCommand.execute(WorkflowCommand.java:757)
	at com.ebasetech.ufs.validation.CommandProcessor.process(CommandProcessor.java:2932)
	at com.ebasetech.ufs.runtime.events.CommandTextNode.execute(CommandTextNode.java:107)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
	at com.ebasetech.ufs.validation.Node.execute(Node.java:627)
	at com.ebasetech.ufs.validation.Root.execute(Root.java:45)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
	at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
	at com.ebasetech.ufs.runtime.events.ScriptNode.execute(ScriptNode.java:30)
	at com.ebasetech.ufs.runtime.events.EventScriptNode.execute(EventScriptNode.java:35)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
	at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
	at com.ebasetech.ufs.runtime.events.BaseEventNode.execute(BaseEventNode.java:32)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.runtime.events.SuspendableExecutable.execute(SuspendableExecutable.java:47)
	at com.ebasetech.ufs.runtime.events.SuspendableContainerExecutable.execute(SuspendableContainerExecutable.java:26)
	at com.ebasetech.ufs.runtime.events.RunnableContext.execute(RunnableContext.java:69)
	at com.ebasetech.ufs.runtime.Request.execute(Request.java:448)
	at com.ebasetech.ufs.runtime.Request.execute(Request.java:417)
	at com.ebasetech.ufs.runtime.Request._execute(Request.java:352)
	at com.ebasetech.ufs.runtime.Request.execute(Request.java:317)
	at formservlets.FormProcessingUtil.executeRequest(FormProcessingUtil.java:503)
	at formservlets.FormProcessor.performExecution(FormProcessor.java:162)
	at formservlets.FormProcessor.processRequest(FormProcessor.java:149)
	at formservlets.FormProcessor.runForm(FormProcessor.java:46)
	at formservlets.FormClient.process(FormClient.java:118)
	at formservlets.FormClient.doGet(FormClient.java:48)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at formservlets.EbaseFilter.processHtmlRequest(EbaseFilter.java:355)
	at formservlets.EbaseFilter.processRequest(EbaseFilter.java:258)
	at formservlets.EbaseFilter.performFilter(EbaseFilter.java:180)
	at formservlets.EbaseFilter.doFilter(EbaseFilter.java:100)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:198)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:176)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:203)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:673)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1526)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1482)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:745)
Fri Jul 07 10:51:03: ERROR Unable to post event testWait for job JOB:PAUSETEST_1:1:1 - Object not found in the repository: Job: PAUSETEST_1 / 1 ( 1 ) 
Fri Jul 07 10:51:03: INFO Transaction rolled back
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#6

Postby Jon » Fri Jul 07, 2017 3:48 pm

Your FPL command looks correct to me. It's gone wrong trying to load the job, it might be an issue with the case sensitivity of the Job id, in which case it's another bug. I can check this on Monday.
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

#7

Postby ericb » Fri Jul 07, 2017 3:50 pm

Should I try with an all-lowercase or all-uppercase process name?
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

#8

Postby ericb » Fri Jul 07, 2017 3:52 pm

Plot twist on the subject of the pause node stopping after 100 repetitions: It turns out it doesn't actually stop. Since my test process mentioned earlier was in my local version of Ebase, I could see the server log updating in realtime. The audit trail stopped at 100, but I can still see it running every minute.

So I checked the audit trail table to see if it was just limited to the 100 first entries, which didn't appear to be the case. I then checked the WF_AUDITLIST resource to see if there were any parameters to limit how many items were returned, which there is: AUDIT_MAX_ITEMS_FILTER. We don't have any scripts that set/change its value, and its default value was blank, so it didn't seem like it should have any effect. Just in case though, I set its default value to 500, and lo and behold, I suddenly got all the missing audit log entries.

With all that done, if the AUDIT_MAX_ITEMS_FILTER is not set, shouldn't the WF_AUDITLIST resource return an unlimited number of entries, rather than what seems like an invisible default limit of 100?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#9

Postby Jon » Fri Jul 07, 2017 3:59 pm

Try all upper case.

Yes, you're right - a hidden limit of 100 sounds pretty awful.
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

#10

Postby ericb » Fri Jul 07, 2017 5:00 pm

All-uppercase did indeed work, so looks like there's an issue with case sensitivity as you thought.
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

Re: Error when posting a pause node

#11

Postby ericb » Tue Jan 23, 2018 9:48 pm

Are either of these bugs ever going to be fixed so that pause nodes can be manually posted? I've just had a case where a pause node stopped checking if it needed to run after a server restart, and since I can't post it manually, I'm going to have to cancel the job and restart it from scratch. This is in a production environment, so not something I like having to do.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

Re: Error when posting a pause node

#12

Postby Jon » Wed Jan 24, 2018 4:50 pm

A server restart should not have any impact on pause nodes - the time of the next execution is stored in the database and the system just picks up where it left off on a restart. It's possible your pause node had an error and was therefore in "Failed" state. If this occurs, it needs to be restarted with "re-execute" from the workflow admin app.

And yes, the bug that stops the post from working will be fixed.
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

Re: Error when posting a pause node

#13

Postby ericb » Wed Jan 24, 2018 8:02 pm

In what table is that next execution stored?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

Re: Error when posting a pause node

#14

Postby Jon » Fri Jan 26, 2018 9:17 am

Table workflow_workitem - this table acts as a queue for the workflow background process. The DUE column, if present, represents something that should occur in the future.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

Re: Error when posting a pause node

#15

Postby Jon » Thu Aug 02, 2018 3:02 pm

The first problem: "Cannot have any pending top calls when executing a script with continuations" when posting a pause node - is fixed in V5.4.0
0 x

ericb
Ebase User
Posts: 82
Joined: Fri Jan 15, 2016 2:34 pm

Re: Error when posting a pause node

#16

Postby ericb » Thu Aug 02, 2018 3:24 pm

Great, thanks Jon
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

Re: Error when posting a pause node

#17

Postby Jon » Thu Aug 02, 2018 3:28 pm

The second problem: display of audit records has a default limit of 1000.
This is changed in V5.4.0 to 9999.
0 x


Who is online

Users browsing this forum: No registered users and 2 guests