cancel
Showing results for 
Search instead for 
Did you mean: 

Error using camel task

jain_arnaud
Champ in-the-making
Champ in-the-making
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)
1 REPLY 1

trademak
Star Contributor
Star Contributor
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.

Best regards,