AnsweredAssumed Answered

Getting a cast exception when trying to invoke a camel task

Question asked by castyn on Sep 17, 2015
Latest reply on Sep 17, 2015 by castyn
I am attempting to call an external camel route from within an activiti process.  The task is defined as


    <serviceTask id="camelTask" name="Invoke Camel route" activiti:type="camel">
      <extensionElements>
        <activiti:field name="camelBehaviorClass" stringValue="org.activiti.camel.impl.CamelBehaviorCamelBodyImpl" />
      </extensionElements>
    </serviceTask>


I have a camel route stood up in the default camelContext such that the from is

.from("activiti:assignServiceRequest:camelTask?copyVariablesToProperties=true")


When the camel process is called from activiti I am seeing the following error. 

org.activiti.engine.ActivitiException: Expecting a SpringProcessEngineConfiguration for the Activiti Camel module.
        at org.activiti.camel.CamelBehavior.setAppropriateCamelContext(CamelBehavior.java:191)[252:org.activiti.camel:5.17.0]
        at org.activiti.camel.CamelBehavior.execute(CamelBehavior.java:105)[252:org.activiti.camel:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListener
Start.java:52)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[254:org.activiti.engi
ne:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)[254:org
.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[254:org.activiti.e
ngine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEn
d.java:35)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:450)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:428)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)[254:org.activiti.engine:5.17
.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:41)[254:org.activ
iti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:133)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListener
Start.java:52)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[254:org.activiti.engi
ne:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)[254:org
.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[254:org.activiti.e
ngine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEn
d.java:35)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:450)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:428)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior.leave(ExclusiveGatewayActivityBehavior.java:75)[254:org.activiti.engine:5.17.
0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListener
Start.java:52)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[254:org.activiti.engi
ne:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)[254:org
.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[254:org.activiti.e
ngine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEn
d.java:35)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:450)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:428)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)[254:org.activiti.engine:5.17
.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:41)[254:org.activ
iti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:133)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListener
Start.java:52)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)[254:org.activiti.engi
ne:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)[254:org
.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)[254:org.activiti.e
ngine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEn
d.java:35)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:450)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:428)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)[254:org.activiti.engine:5.17
.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:45)[254:o
rg.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:62)[254:org.activiti.en
gine:5.17.0]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:378)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:111)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:65)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)[254:org.activiti.engine:5.17.0]
        at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:77)[254:org.activiti.engine:5.17.0]
        at Proxye9f3ead4_d5ea_4c8c_a5e6_545874c2df0b.startProcessInstanceByKey(Unknown Source)[:]
        at org.activiti.camel.ActivitiProducer.startProcess(ActivitiProducer.java:154)[252:org.activiti.camel:5.17.0]
        at org.activiti.camel.ActivitiProducer.process(ActivitiProducer.java:62)[252:org.activiti.camel:5.17.0]
        at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[137:org.apache.cam
el.camel-core:2.15.2]
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:291)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:200)[137:org.apache.camel.camel-core:2.15.2]
        at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:147)[137:org.apache.camel.camel-core:2.15.2]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_80]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_80]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
Caused by: java.lang.ClassCastException: org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration cannot be cast to org.activiti.spring.SpringProcessEngineCon
figuration
        at org.activiti.camel.CamelBehavior.setAppropriateCamelContext(CamelBehavior.java:189)[252:org.activiti.camel:5.17.0]
        … 204 more
Error processing exchange.


My spring config for the process manager is

  <bean id="dataSource" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy">
    <property name="targetDataSource">
      <bean class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
        <property name="driverClass" value="org.h2.Driver" />
        <property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" />
        <property name="username" value="sa" />
        <property name="password" value="" />
      </bean>
    </property>
  </bean>

  <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="dataSource" />
  </bean>

  <bean id="asyncExecutor" class="org.activiti.engine.impl.asyncexecutor.DefaultAsyncJobExecutor">
    <property name="defaultAsyncJobAcquireWaitTimeInMillis" value="1000" />
    <property name="defaultTimerJobAcquireWaitTimeInMillis" value="1000" />
  </bean>

  <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="dataSource" ref="dataSource" />
    <property name="transactionManager" ref="transactionManager" />
    <property name="databaseSchemaUpdate" value="true" />
    <property name="jobExecutorActivate" value="true" />
    <property name="asyncExecutor" ref="asyncExecutor" />
    <property name="asyncExecutorEnabled" value="true" />
    <property name="asyncExecutorActivate" value="true" />
  </bean>

  <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
    <property name="processEngineConfiguration" ref="processEngineConfiguration" />
  </bean>

  <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />

Outcomes