AnsweredAssumed Answered

NullPointerException when parsing process

Question asked by waldo on Mar 13, 2013
Latest reply on Jun 3, 2016 by jbarrez
Hi all,

we just upgraded from Activiti 5.11 to 5.12. Suddenly, the engine is not able to parse our processes (*.bpmn files) any more and crashes with a NullPointerException.

The processes were designed with Activiti Eclipse BPMN 2.0 Designer 5.11.2 and are read in and deployed without errors by the 5.11 engine.

Is there some kind of migration necessary to make 5.11 processes usable in 5.12? Am I missing something? The relevant stack trace is … not attached (Could not upload attachment to ./files/11030_727fe2b6224b2c87baa8e7bb6d866933.) but shown below.

Thanks!


     [java] Caused by: org.activiti.engine.ActivitiException: Error parsing XML
     [java]    at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:188)
     [java]    at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
     [java]    at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:42)
     [java]    at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:68)
     [java]    at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:33)
     [java]    at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
     [java]    at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:61)
     [java]    at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
     [java]    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
     [java]    at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
     [java]    at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:37)
     [java]    at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:70)
     [java]    at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:134)
     [java]    at org.activiti.spring.SpringProcessEngineConfiguration.autoDeployResources(SpringProcessEngineConfiguration.java:148)
     [java]    at org.activiti.spring.SpringProcessEngineConfiguration.buildProcessEngine(SpringProcessEngineConfiguration.java:65)
     [java]    at org.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:56)
     [java]    at org.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:32)
     [java]    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
     [java]    … 47 more
     [java] Caused by: java.lang.NullPointerException
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.createActivityOnScope(AbstractBpmnParseHandler.java:97)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.IntermediateCatchEventParseHandler.executeParse(IntermediateCatchEventParseHandler.java:57)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.IntermediateCatchEventParseHandler.executeParse(IntermediateCatchEventParseHandler.java:31)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:79)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.AbstractFlowNodeBpmnParseHandler.parse(AbstractFlowNodeBpmnParseHandler.java:27)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.AbstractActivityBpmnParseHandler.parse(AbstractActivityBpmnParseHandler.java:35)
     [java]    at org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:73)
     [java]    at org.activiti.engine.impl.bpmn.parser.BpmnParse.processFlowElements(BpmnParse.java:387)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.transformProcess(ProcessParseHandler.java:82)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:44)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:30)
     [java]    at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:79)
     [java]    at org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:73)
     [java]    at org.activiti.engine.impl.bpmn.parser.BpmnParse.transformProcessDefinitions(BpmnParse.java:359)
     [java]    at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:183)
     [java]    … 64 more

Outcomes