AnsweredAssumed Answered

Context.getCommandContext() returning null

Question asked by jorell on Nov 13, 2013
Latest reply on Nov 22, 2013 by trademak
I am encountering a situation where during certain operations Context.getCommandContext() is return null. I am not using a activity.cfg.xml file in my project and am building the ProcessEngineConfiguration programatically and then using guice to inject it where needed.
I can run a process to cpmpletion without any issues, but when I try to get an execution's super execution I see this:

java.lang.NullPointerException
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.ensureSuperExecutionInitialized(ExecutionEntity.java:768)
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.getSuperExecution(ExecutionEntity.java:749)


I'm not sure what the cause here is. I am using 5.13
I'd appreciate any guidance here.

Outcomes