Activiti-cdi: taskService.claim() does not work

Description

When calling taskService.claim(), the org.activiti.cdi.impl.CdiProcessVariableFlushingDelegateInterceptor an Exception is thrown:

Caused by: java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:85) [:1.6.0_26]
at org.activiti.engine.impl.context.Context.getExecutionContext(Context.java:65) [activiti-engine-5.8.jar:]
at org.activiti.cdi.impl.CdiProcessVariableFlushingDelegateInterceptor.handleInvocation(CdiProcessVariableFlushingDelegateInterceptor.java:37) [activiti-cdi-5.8.jar:]
at org.activiti.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:512) [activiti-engine-5.8.jar:]
... 57 more

Environment

None

Assignee

Daniel Meyer (camunda)

Reporter

Daniel Meyer (camunda)

Labels

None

Fix versions

Affects versions

Priority

Major
Configure