cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a cast exception when trying to invoke a camel task

castyn
Champ in-the-making
Champ in-the-making
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" />
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
Hi,
I cannot see the error,  please make sure you escaped it correctly. to be displayed in your post.

castyn
Champ in-the-making
Champ in-the-making
Sorry about that, tried to reformat the errors text a number of different ways but it always showed a blank string after I got more than half of this in the code block.  Sorry but here it is unformatted:

org.activiti.engine.ActivitiException: Expecting a SpringProcessEngineConfiguration for the Activiti Camel module.
        at org.activiti.camel.CamelBehavior.setAppropriateCamelContext(CamelBehavior.java:191){252Smiley Surprisedrg.activiti.camel:5.17.0}
        at org.activiti.camel.CamelBehavior.execute(CamelBehavior.java:105){252Smiley Surprisedrg.activiti.camel:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:450){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:428){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:45){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:62){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:96){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:631){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:626){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:378){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:111){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:65){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:77){254Smiley Surprisedrg.activiti.engine:5.17.0}
        at Proxy4f074ca3_fbd1_4387_9fae_4818a2323d05.startProcessInstanceByKey(Unknown Source){:}
        at org.activiti.camel.ActivitiProducer.startProcess(ActivitiProducer.java:154){252Smiley Surprisedrg.activiti.camel:5.17.0}
        at org.activiti.camel.ActivitiProducer.process(ActivitiProducer.java:62){252Smiley Surprisedrg.activiti.camel:5.17.0}
        at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:118){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:80){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191){137Smiley Surprisedrg.apache.camel.camel-core:2.15.2}
        at org.apache.camel.component.jetty.CamelContinuationServlet.service(CamelContinuationServlet.java:162){397Smiley Surprisedrg.apache.camel.camel-jetty-common:2.15.2}
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668){45Smiley Surprisedrg.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0.0}
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:503){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.Server.handle(Server.java:370){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543){50Smiley Surprisedrg.eclipse.jetty.aggregate.jetty-all-server:8.1.17.v20150415}
        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.SpringProcessEngineConfiguration
        at org.activiti.camel.CamelBehavior.setAppropriateCamelContext(CamelBehavior.java:189){252Smiley Surprisedrg.activiti.camel:5.17.0}
        … 97 more