cancel
Showing results for 
Search instead for 
Did you mean: 

NullPointerException during deployment

jzi
Champ in-the-making
Champ in-the-making
Hello,

I get the following exception each time I deploy a process.

Is there a solution for avoiding this exception?

12:50:49,002 SEV  | Uknown exception
java.lang.NullPointerException
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseBPMNPlane(BpmnParse.java:1998)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseBPMNDiagram(BpmnParse.java:1990)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseDiagramInterchangeElements(BpmnParse.java:1981)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.parseRootElement(BpmnParse.java:253)
   at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:224)
   at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:74)
   at org.activiti.engine.impl.db.DbRepositorySession.deploy(DbRepositorySession.java:64)
   at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:53)
   at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
   at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:103)
   at de.tnt.innight.ttms.test.utils.Util.deployProcess(Util.java:47)
   at de.tnt.innight.ttms.test.utils.Util.main(Util.java:26)
  [org.activiti.engine.impl.bpmn.parser.BpmnParse]

Thank you for your help.

JZI
2 REPLIES 2

ptriller
Champ in-the-making
Champ in-the-making
Hi, I am not sure what it does exactly at that point in the code, but I am sure it is a Bug

      processDefinition.setGraphicalNotationDefined(true);
      if (processDefinition != null) {

the setGraphicalNotationDefined has to be movd in the "if" part.

The error you should be getting would be along the line:

Invalid reference in 'bpmnElement' attribute, process " + processId + " not found"

frederikherema1
Star Contributor
Star Contributor
Thanks for pointing that out ptriller, I'll fix it on trunk.
Strange that we missed is, compiler-warning in eclipse marked it as dead code Smiley Wink

So indeed, instead of the nullpointer 'jzi' has, that message should have appeared.