Not able to start the process after BPMN version upgrade

Hello,

I upgraded BPMN version from 7.13.0 to 7.14.0 and now when I start my spring boot app I get the following exception. Can someone please help?


2021-05-04 11:27:28.403  INFO 479642 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2021-05-04 11:27:28.896  INFO 479642 --- [           main] o.c.b.s.b.s.w.f.LazyInitRegistration     : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazyProcessEnginesFilter@52f8a6f4
2021-05-04 11:27:28.900  INFO 479642 --- [           main] o.c.b.s.b.s.w.f.LazyInitRegistration     : lazy initialized org.camunda.bpm.spring.boot.starter.webapp.filter.LazySecurityFilter@539c4830
2021-05-04 11:27:29.009  INFO 479642 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2021-05-04 11:27:29.010  INFO 479642 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2021-05-04 11:27:29.022  INFO 479642 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2021-05-04 11:27:29.040  INFO 479642 --- [           main] s.d.s.w.s.ApiListingReferenceScanner     : Scanning for api listing references
2021-05-04 11:27:29.199  INFO 479642 --- [           main] org.camunda.bpm.container                : ENGINE-08024 Found processes.xml file at file:/home/vinaya/soh-codebase/soh-business-processing-engine/target/classes/META-INF/processes.xml
2021-05-04 11:27:29.199  INFO 479642 --- [           main] org.camunda.bpm.container                : ENGINE-08025 Detected empty processes.xml file, using default values
2021-05-04 11:27:29.203  INFO 479642 --- [           main] org.camunda.bpm.container                : ENGINE-08023 Deployment summary for process archive 'salesOrderHubProcessApplication': 

      processes/order-item-fulfillment-process.bpmn
      processes/sales-process_with_call_activity.bpmn

2021-05-04 11:27:29.283  INFO 479642 --- [           main] org.camunda.bpm.application              : ENGINE-07021 ProcessApplication 'salesOrderHubProcessApplication' registered for DB deployments [ceaaccfb-a1d8-11eb-9f61-6683657f7a30]. Will execute process definitions 

      SalesOrderProcess_v2[version: 1, id: SalesOrderProcess_v2:1:cee4056f-a1d8-11eb-9f61-6683657f7a30]
      OrderRowFulfillmentProcess[version: 1, id: cee3421e-a1d8-11eb-9f61-6683657f7a30]
Deployment does not provide any case definitions.
2021-05-04 11:27:29.293  INFO 479642 --- [           main] org.camunda.bpm.container                : ENGINE-08050 Process application salesOrderHubProcessApplication successfully deployed
2021-05-04 11:27:29.295  INFO 479642 --- [           main] d.k.s.SalesOrderHubProcessApplication    : Started SalesOrderHubProcessApplication in 9.994 seconds (JVM running for 10.308)
2021-05-04 11:27:29.298  INFO 479642 --- [           main] org.camunda.bpm.engine.jobexecutor       : ENGINE-14014 Starting up the JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor].
2021-05-04 11:27:29.299  INFO 479642 --- [ingJobExecutor]] org.camunda.bpm.engine.jobexecutor       : ENGINE-14018 JobExecutor[org.camunda.bpm.engine.spring.components.jobexecutor.SpringJobExecutor] starting to acquire jobs
2021-05-04 11:27:37.223  INFO 479642 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-05-04 11:27:37.224  INFO 479642 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2021-05-04 11:27:37.229  INFO 479642 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 5 ms
2021-05-04 11:27:55.066 ERROR 479642 --- [nio-8080-exec-7] org.camunda.bpm.engine.context           : ENGINE-16004 Exception while closing command context: No startFormHandler defined in process 'SalesOrderProcess_v2:1:cee4056f-a1d8-11eb-9f61-6683657f7a30': startFormHandler is null

org.camunda.bpm.engine.exception.NullValueException: No startFormHandler defined in process 'SalesOrderProcess_v2:1:cee4056f-a1d8-11eb-9f61-6683657f7a30': startFormHandler is null
  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
  at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:na]
  at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[na:na]
  at org.camunda.bpm.engine.impl.util.EnsureUtil.generateException(EnsureUtil.java:394) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:55) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:50) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:57) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:37) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:110) ~[camunda-engine-7.14.0.jar:7.14.0]
  at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:46) ~[camunda-engine-spring-7.14.0.jar

What steps did you follow as part of the migration?

I was not aware of the steps, I updated version in pom, then my tests failed because of the missing column batch_id_ in ACT_RU_VARIABLE table. I added the column and tried starting again.

Please let me know if there is a guide for the version upgrade.

The upgrade guide can be found here on the docs. There are some addions things to consider as well like if you’re using spring boot ensure the version of spring boot matches with the version of camunda you’re using.

1 Like

Thanks a lot. Much appreciated.

Happy to help :slight_smile:

1 Like