AnsweredAssumed Answered

Error using camel task

Question asked by jain_arnaud on Apr 25, 2013
Latest reply on Apr 29, 2013 by trademak
I try to use a camel task in a process:

<blockcode>
<serviceTask id="cameltask" name="Camel Task" activiti:type="camel"></serviceTask>

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)

Outcomes