-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8.0-HF33, 6.0-HF13, 7.2
-
Fix Version/s: 5.8.0-HF37, 6.0-HF15, 7.4
-
Component/s: Workflow
-
Epic Link:
-
Tags:
-
Sprint:nxNag Sprint 7.3.6, nxNag Sprint 7.4.5
Let's consider the following automation chain:
- Fetch > Context Document(s)
- Workflow Context > Resume workflow (avec nodeId et workflowInstanceId vides)
used as an escalation rule triggered on a node of which some tasks have been manually or automatically deleted.
This may end up with the following automation error:
2015-04-14 14:13:00,464 ERROR [Nuxeo-Work-escalation-1] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: EscalationRuleWork(, Progress(?%, ?/0), null) org.nuxeo.ecm.core.api.ClientException: Error when executing worker: default:21eb713c-f0f4-4d45-ae50-85c8965544dd:escalationRule:timeout at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:155) at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:68) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Error running chain: Wf_ForceResume at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:557) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:525) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:149) ... 4 more Caused by: org.nuxeo.ecm.automation.TraceException: ****** chain ****** Name: Wf_ForceResume Exception: OperationException Caught error: Failed to invoke operation Workflow.ResumeNodeOperation Caused by: org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Cannot cancel task ****** Hierarchy calls ****** org.nuxeo.ecm.automation.core.operations.FetchContextDocument org.nuxeo.ecm.platform.routing.core.api.operation.ResumeNodeOperation at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:183) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:88) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:549) ... 6 more Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Workflow.ResumeNodeOperation at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:151) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:127) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:113) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:130) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:113) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:159) ... 8 more Caused by: org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Cannot cancel task at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTasks(GraphNodeImpl.java:726) at org.nuxeo.ecm.platform.routing.core.impl.GraphRunner.resume(GraphRunner.java:143) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRouteElementImpl.resume(DocumentRouteElementImpl.java:88) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEngineServiceImpl.resume(DocumentRoutingEngineServiceImpl.java:50) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl$3.run(DocumentRoutingServiceImpl.java:343) at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:115) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.completeTask(DocumentRoutingServiceImpl.java:336) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.resumeInstance(DocumentRoutingServiceImpl.java:323) at org.nuxeo.ecm.platform.routing.core.api.operation.ResumeNodeOperation.resumeWorkflow(ResumeNodeOperation.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:130) at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:143) ... 13 more Caused by: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Cannot cancel task at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTask(GraphNodeImpl.java:1151) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTasks(GraphNodeImpl.java:722) ... 27 more Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to get document 1b3d5b2a-5b87-46b1-8f35-618d673e4bab at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1184) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTask(GraphNodeImpl.java:1129) ... 28 more Caused by: org.nuxeo.ecm.core.model.NoSuchDocumentException: No such document: 1b3d5b2a-5b87-46b1-8f35-618d673e4bab at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:256) at org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:61) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:510) at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1180) ... 29 more 2015-04-14 14:13:00,476 ERROR [Nuxeo-Work-escalation-1] [org.nuxeo.ecm.core.work.WorkManagerImpl] Uncaught error on thread Nuxeo-Work-escalation-1 java.lang.RuntimeException: org.nuxeo.ecm.core.api.ClientException: Error when executing worker: default:21eb713c-f0f4-4d45-ae50-85c8965544dd:escalationRule:timeout at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:75) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.nuxeo.ecm.core.api.ClientException: Error when executing worker: default:21eb713c-f0f4-4d45-ae50-85c8965544dd:escalationRule:timeout at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:155) at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:68) ... 3 more Caused by: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Error running chain: Wf_ForceResume at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:557) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:525) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:149) ... 4 more Caused by: org.nuxeo.ecm.automation.TraceException: ****** chain ****** Name: Wf_ForceResume Exception: OperationException Caught error: Failed to invoke operation Workflow.ResumeNodeOperation Caused by: org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Cannot cancel task ****** Hierarchy calls ****** org.nuxeo.ecm.automation.core.operations.FetchContextDocument org.nuxeo.ecm.platform.routing.core.api.operation.ResumeNodeOperation at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:183) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:88) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:549) ... 6 more Caused by: org.nuxeo.ecm.automation.OperationException: Failed to invoke operation Workflow.ResumeNodeOperation at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:151) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:127) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:113) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.doInvoke(CompiledChainImpl.java:130) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.invoke(CompiledChainImpl.java:113) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:159) ... 8 more Caused by: org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Cannot cancel task at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTasks(GraphNodeImpl.java:726) at org.nuxeo.ecm.platform.routing.core.impl.GraphRunner.resume(GraphRunner.java:143) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRouteElementImpl.resume(DocumentRouteElementImpl.java:88) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEngineServiceImpl.resume(DocumentRoutingEngineServiceImpl.java:50) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl$3.run(DocumentRoutingServiceImpl.java:343) at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:115) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.completeTask(DocumentRoutingServiceImpl.java:336) at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.resumeInstance(DocumentRoutingServiceImpl.java:323) at org.nuxeo.ecm.platform.routing.core.api.operation.ResumeNodeOperation.resumeWorkflow(ResumeNodeOperation.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:130) at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:143) ... 13 more Caused by: org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: Cannot cancel task at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTask(GraphNodeImpl.java:1151) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTasks(GraphNodeImpl.java:722) ... 27 more Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to get document 1b3d5b2a-5b87-46b1-8f35-618d673e4bab at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1184) at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.cancelTask(GraphNodeImpl.java:1129) ... 28 more Caused by: org.nuxeo.ecm.core.model.NoSuchDocumentException: No such document: 1b3d5b2a-5b87-46b1-8f35-618d673e4bab at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:256) at org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:61) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:510) at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1180) ... 29 more