AnsweredAssumed Answered

Ending a process throws a NullPointerException(Activiti 5.6)

Question asked by l.marinkov on Jul 20, 2011
Latest reply on Jul 20, 2011 by ronald.van.kuijk
Activiti 5.6

The process was fetched using the ExecutionQuery:



RuntimeService Execution execution = executionService.createExecutionQuery().processInstanceId(processID).singleResult();
((ExecutionEntity)execution).end();


The result of the call to end() was NPE. Stack is listed below:


java.lang.NullPointerException
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:481)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.end(ExecutionEntity.java:299)

I used one of the processes provided in the activiti test suite


..modules\activiti-engine\src\test\resources\org\activiti\examples\bpmn\usertask\taskassignee\TaskAssigneeTest.testTaskAssignee.bpmn20.xml

best regards!

Outcomes