I have defined the camel context in my activiti.cfg.xml: <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring"> <packageScan> <package>org.activiti.camel.route</package> </packageScan> </camelContext> </blockcode>
But when I start my process, I have the following error: 2013-04-25 16:25:53 ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command context java.lang.NullPointerException at org.activiti.camel.CamelBehavior.setAppropriateCamelContext(CamelBehavior.java:154) at org.activiti.camel.CamelBehavior.execute(CamelBehavior.java:70)
Could you use the blockcode element to wrap your code example (I just did this in your post). The code example was not showing before. Which version of Activiti are you using? This style of configuration is supported from 5.12 and not earlier.