cancel
Showing results for 
Search instead for 
Did you mean: 

Ending a process throws a NullPointerException(Activiti 5.6)

l_marinkov
Champ in-the-making
Champ in-the-making
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!
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
as mentioned in other posts, you should *not* operate on the entities, but use the services for runtime, repository, task etc