Trying to get a SOAP call to work

1,006 views
Skip to first unread message

Sherry Koontz

unread,
Feb 13, 2015, 11:38:53 AM2/13/15
to camunda-...@googlegroups.com
I combined two of the sample projects together the loan approval and get weather forecast.  I just want to get a soap call to work on the Camunda tasklist.  I am new to using Camunda do I have something setup wrong?  It errors out on the SOAP call to get the weather.  Any help would be great.  Thanks

Here is my loan-approval.bpmn file and below that is the log file from Apache tomcat running the Camunda tasklist.

<?xml version="1.0" encoding="UTF-8"?>

<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://activiti.org/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_5V2IcL4gEeOQo_IRkjDF6w" exporter="camunda modeler" exporterVersion="2.5.0" targetNamespace="http://activiti.org/bpmn">

<bpmn2:process id="approve-loan" name="Loan Approval" isExecutable="true">

<bpmn2:startEvent id="StartEvent_1" camunda:formKey="embedded:app:forms/request-loan.html" name="Loan Request&#xD;&#xA;Received">

<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>

</bpmn2:startEvent>

<bpmn2:userTask id="UserTask_1" camunda:assignee="john" camunda:formKey="embedded:app:forms/approve-loan.html" name="Approve&#xD;&#xA;Loan">

<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>

<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>

</bpmn2:userTask>

<bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="UserTask_1"/>

<bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="UserTask_1" targetRef="ServiceTask_3"/>

<bpmn2:serviceTask id="ServiceTask_3" camunda:class="org.camunda.bpm.getstarted.loanapproval.ProcessRequestDelegate" name="Process&#xD;&#xA;Request">

<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>

<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>

</bpmn2:serviceTask>

<bpmn2:serviceTask id="ServiceTask_1" name="Get Weather Forecast (Soap)">

<bpmn2:extensionElements>

<camunda:connector>

<camunda:connectorId>soap-http-connector</camunda:connectorId>

<camunda:inputOutput>

<camunda:inputParameter name="url">http://www.webservicex.net/globalweather.asmx</camunda:inputParameter>

<camunda:inputParameter name="payload">

<camunda:script scriptFormat="freemarker" resource="soapEnvelope.ftl"/>

</camunda:inputParameter>

<camunda:inputParameter name="headers">

<camunda:map>

<camunda:entry key="Content-Type"><![CDATA[application/soap+xml;charset=UTF-8;action="http://www.webserviceX.NET/GetWeather"]]></camunda:entry>

</camunda:map>

</camunda:inputParameter>

<camunda:outputParameter name="forecast">

<![CDATA[

${S(response)

.childElement("Body")

.childElement("http://www.webserviceX.NET", "GetWeatherResponse")

.childElement("GetWeatherResult")

.textContent()}

]]>

</camunda:outputParameter>

</camunda:inputOutput>

</camunda:connector>

<camunda:inputOutput>

<camunda:outputParameter name="temperature">

<camunda:script scriptFormat="Javascript" resource="parseTemperature.js"/>

</camunda:outputParameter>

</camunda:inputOutput>

</bpmn2:extensionElements>

<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>

<bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>

</bpmn2:serviceTask>

<bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="ServiceTask_3" targetRef="ServiceTask_1"/>

<bpmn2:exclusiveGateway id="ExclusiveGateway_1">

<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>

<bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>

<bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>

</bpmn2:exclusiveGateway>

<bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="ServiceTask_1" targetRef="ExclusiveGateway_1"/>

<bpmn2:userTask id="UserTask_3" name="Pack for cold weather">

<bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>

<bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>

</bpmn2:userTask>

<bpmn2:userTask id="UserTask_2" name="Pack for warm weather">

<bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>

<bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>

</bpmn2:userTask>

<bpmn2:endEvent id="EndEvent_1" name="Loan Request&#xD;&#xA;Approved">

<bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>

</bpmn2:endEvent>

<bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="UserTask_3" targetRef="EndEvent_1"/>

<bpmn2:endEvent id="EndEvent_2">

<bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>

</bpmn2:endEvent>

<bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="UserTask_2" targetRef="EndEvent_2"/>

<bpmn2:sequenceFlow id="SequenceFlow_8" name="temperature below 18" sourceRef="ExclusiveGateway_1" targetRef="UserTask_3">

<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" camunda:resource="${temperature &lt; 18}"/>

</bpmn2:sequenceFlow>

<bpmn2:sequenceFlow id="SequenceFlow_9" name="temperature above 18" sourceRef="ExclusiveGateway_1" targetRef="UserTask_2">

<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" camunda:resource="${temperature >= 18}"/>

</bpmn2:sequenceFlow>

</bpmn2:process>

<bpmndi:BPMNDiagram id="BPMNDiagram_1">

<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="approve-loan">

<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">

<dc:Bounds height="36.0" width="36.0" x="158.0" y="215.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNShape id="_BPMNShape_UserTask_2" bpmnElement="UserTask_1">

<dc:Bounds height="80.0" width="100.0" x="244.0" y="193.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_2" targetElement="_BPMNShape_UserTask_2">

<di:waypoint xsi:type="dc:Point" x="194.0" y="233.0"/>

<di:waypoint xsi:type="dc:Point" x="244.0" y="233.0"/>

</bpmndi:BPMNEdge>

<bpmndi:BPMNShape id="_BPMNShape_EndEvent_2" bpmnElement="EndEvent_1">

<dc:Bounds height="36.0" width="36.0" x="881.0" y="324.0"/>

<bpmndi:BPMNLabel>

<dc:Bounds height="44.0" width="119.0" x="840.0" y="365.0"/>

</bpmndi:BPMNLabel>

</bpmndi:BPMNShape>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_UserTask_2" targetElement="_BPMNShape_ServiceTask_4">

<di:waypoint xsi:type="dc:Point" x="344.0" y="233.0"/>

<di:waypoint xsi:type="dc:Point" x="385.0" y="233.0"/>

<bpmndi:BPMNLabel>

<dc:Bounds height="6.0" width="6.0" x="366.0" y="233.0"/>

</bpmndi:BPMNLabel>

</bpmndi:BPMNEdge>

<bpmndi:BPMNShape id="_BPMNShape_ServiceTask_4" bpmnElement="ServiceTask_3">

<dc:Bounds height="80.0" width="100.0" x="385.0" y="193.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNShape id="_BPMNShape_ServiceTask_5" bpmnElement="ServiceTask_1">

<dc:Bounds height="80.0" width="100.0" x="528.0" y="193.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ServiceTask_4" targetElement="_BPMNShape_ServiceTask_5">

<di:waypoint xsi:type="dc:Point" x="485.0" y="233.0"/>

<di:waypoint xsi:type="dc:Point" x="528.0" y="233.0"/>

</bpmndi:BPMNEdge>

<bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_2" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">

<dc:Bounds height="50.0" width="50.0" x="678.0" y="208.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ServiceTask_5" targetElement="_BPMNShape_ExclusiveGateway_2">

<di:waypoint xsi:type="dc:Point" x="628.0" y="233.0"/>

<di:waypoint xsi:type="dc:Point" x="678.0" y="233.0"/>

</bpmndi:BPMNEdge>

<bpmndi:BPMNShape id="_BPMNShape_UserTask_3" bpmnElement="UserTask_2">

<dc:Bounds height="80.0" width="100.0" x="744.0" y="114.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNShape id="_BPMNShape_UserTask_4" bpmnElement="UserTask_3">

<dc:Bounds height="80.0" width="100.0" x="741.0" y="298.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_UserTask_4" targetElement="_BPMNShape_EndEvent_2">

<di:waypoint xsi:type="dc:Point" x="841.0" y="338.0"/>

<di:waypoint xsi:type="dc:Point" x="861.0" y="338.0"/>

<di:waypoint xsi:type="dc:Point" x="861.0" y="342.0"/>

<di:waypoint xsi:type="dc:Point" x="881.0" y="342.0"/>

</bpmndi:BPMNEdge>

<bpmndi:BPMNShape id="_BPMNShape_EndEvent_3" bpmnElement="EndEvent_2">

<dc:Bounds height="36.0" width="36.0" x="894.0" y="136.0"/>

</bpmndi:BPMNShape>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_UserTask_3" targetElement="_BPMNShape_EndEvent_3">

<di:waypoint xsi:type="dc:Point" x="844.0" y="154.0"/>

<di:waypoint xsi:type="dc:Point" x="894.0" y="154.0"/>

</bpmndi:BPMNEdge>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ExclusiveGateway_2" targetElement="_BPMNShape_UserTask_4">

<di:waypoint xsi:type="dc:Point" x="703.0" y="258.0"/>

<di:waypoint xsi:type="dc:Point" x="703.0" y="338.0"/>

<di:waypoint xsi:type="dc:Point" x="741.0" y="338.0"/>

<bpmndi:BPMNLabel>

<dc:Bounds height="25.0" width="162.0" x="568.0" y="354.0"/>

</bpmndi:BPMNLabel>

</bpmndi:BPMNEdge>

<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ExclusiveGateway_2" targetElement="_BPMNShape_UserTask_3">

<di:waypoint xsi:type="dc:Point" x="703.0" y="208.0"/>

<di:waypoint xsi:type="dc:Point" x="703.0" y="154.0"/>

<di:waypoint xsi:type="dc:Point" x="744.0" y="154.0"/>

<bpmndi:BPMNLabel>

<dc:Bounds height="25.0" width="164.0" x="582.0" y="120.0"/>

</bpmndi:BPMNLabel>

</bpmndi:BPMNEdge>

</bpmndi:BPMNPlane>

</bpmndi:BPMNDiagram>

</bpmn2:definitions>


Below is from my logfile.


Feb 13, 2015 9:45:43 AM org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl deployProcessApplication
INFO: Process Application Loan Approval App successfully deployed.
Feb 13, 2015 9:46:06 AM org.camunda.bpm.getstarted.loanapproval.ProcessRequestDelegate execute
INFO: Processing request by 'John'...
Feb 13, 2015 9:46:07 AM org.camunda.bpm.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.camunda.bpm.engine.ProcessEngineException: Exception while invoking connector Error while evaluating expression: ${S(response)
                    .childElement("Body")
                    .childElement("http://www.webserviceX.NET", "GetWeatherResponse")
                    .childElement("GetWeatherResult")
                    .textContent()}. Cause: Error invoking function 'S'
 at org.camunda.connect.plugin.impl.ServiceTaskConnectorActivityBehavior.execute(ServiceTaskConnectorActivityBehavior.java:58)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:42)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:27)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:63)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:26)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:65)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionCreateScope.execute(PvmAtomicOperationTransitionCreateScope.java:55)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionCreateScope.execute(PvmAtomicOperationTransitionCreateScope.java:24)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:76)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:31)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:61)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:31)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionDestroyScope.execute(PvmAtomicOperationTransitionDestroyScope.java:118)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionDestroyScope.execute(PvmAtomicOperationTransitionDestroyScope.java:27)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerEnd.java:36)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerEnd.java:23)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:65)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.take(PvmExecutionImpl.java:280)
 at org.camunda.bpm.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:101)
 at org.camunda.bpm.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:50)
 at org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)
 at org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:46)
 at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:41)
 at org.camunda.bpm.engine.impl.bpmn.behavior.ClassDelegateActivityBehavior.execute(ClassDelegateActivityBehavior.java:63)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:42)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationActivityExecute.execute(PvmAtomicOperationActivityExecute.java:27)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:63)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerStart.java:26)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:65)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionCreateScope.execute(PvmAtomicOperationTransitionCreateScope.java:55)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionCreateScope.execute(PvmAtomicOperationTransitionCreateScope.java:24)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:76)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:31)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:61)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerTake.execute(PvmAtomicOperationTransitionNotifyListenerTake.java:31)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionDestroyScope.execute(PvmAtomicOperationTransitionDestroyScope.java:118)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionDestroyScope.execute(PvmAtomicOperationTransitionDestroyScope.java:27)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerEnd.java:36)
 at org.camunda.bpm.engine.impl.pvm.runtime.operation.PvmAtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(PvmAtomicOperationTransitionNotifyListenerEnd.java:23)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:65)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:429)
 at org.camunda.bpm.engine.impl.core.operation.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:58)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:129)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:117)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext$1.call(CommandContext.java:115)
 at org.camunda.bpm.engine.impl.context.ProcessApplicationClassloaderInterceptor.call(ProcessApplicationClassloaderInterceptor.java:44)
 at org.camunda.bpm.application.AbstractProcessApplication.execute(AbstractProcessApplication.java:102)
 at org.camunda.bpm.engine.impl.context.Context.executeWithinProcessApplication(Context.java:193)
 at org.camunda.bpm.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:115)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:450)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:440)
 at org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:420)
 at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.take(PvmExecutionImpl.java:280)
 at org.camunda.bpm.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:101)
 at org.camunda.bpm.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:50)
 at org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)
 at org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:46)
 at org.camunda.bpm.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:57)
 at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.signal(PvmExecutionImpl.java:262)
 at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:228)
 at org.camunda.bpm.engine.impl.cmd.SubmitTaskFormCmd.execute(SubmitTaskFormCmd.java:73)
 at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
 at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:97)
 at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32)
 at org.camunda.bpm.engine.impl.FormServiceImpl.submitTaskForm(FormServiceImpl.java:86)
 at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.submit(TaskResourceImpl.java:101)
 at sun.reflect.GeneratedMethodAccessor549.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
 at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
 at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
 at org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:159)
 at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:107)
 at org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:154)
 at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:92)
 at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
 at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
 at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126)
 at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
 at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
 at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at org.camunda.bpm.engine.rest.filter.CacheControlFilter.doFilter(CacheControlFilter.java:47)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.doFilterSecure(SecurityFilter.java:67)
 at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.doFilter(SecurityFilter.java:51)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:59)
 at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:56)
 at org.camunda.bpm.webapp.impl.security.SecurityActions.runWithAuthentications(SecurityActions.java:38)
 at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:56)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
 at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: org.camunda.bpm.engine.ProcessEngineException: Error while evaluating expression: ${S(response)
                    .childElement("Body")
                    .childElement("http://www.webserviceX.NET", "GetWeatherResponse")
                    .childElement("GetWeatherResult")
                    .textContent()}. Cause: Error invoking function 'S'
 at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:59)
 at org.camunda.bpm.engine.impl.el.ElValueProvider.getValue(ElValueProvider.java:35)
 at org.camunda.bpm.engine.impl.core.variable.mapping.OutputParameter.execute(OutputParameter.java:45)
 at org.camunda.bpm.engine.impl.core.variable.mapping.IoParameter.execute(IoParameter.java:47)
 at org.camunda.bpm.engine.impl.core.variable.mapping.IoMapping.executeOutputParameters(IoMapping.java:41)
 at org.camunda.connect.plugin.impl.ServiceTaskConnectorActivityBehavior.applyOutputParameters(ServiceTaskConnectorActivityBehavior.java:83)
 at org.camunda.connect.plugin.impl.ServiceTaskConnectorActivityBehavior.execute(ServiceTaskConnectorActivityBehavior.java:56)
 ... 194 more
Caused by: org.camunda.bpm.engine.impl.javax.el.ELException: Error invoking function 'S'
 at org.camunda.bpm.engine.impl.juel.AstFunction.eval(AstFunction.java:121)
 at org.camunda.bpm.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
 at org.camunda.bpm.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
 at org.camunda.bpm.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
 at org.camunda.bpm.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
 at org.camunda.bpm.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
 at org.camunda.bpm.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
 at org.camunda.bpm.engine.impl.juel.AstMethod.invoke(AstMethod.java:79)
 at org.camunda.bpm.engine.impl.juel.AstMethod.eval(AstMethod.java:75)
 at org.camunda.bpm.engine.impl.juel.AstEval.eval(AstEval.java:50)
 at org.camunda.bpm.engine.impl.juel.AstNode.getValue(AstNode.java:26)
 at org.camunda.bpm.engine.impl.juel.TreeValueExpression.getValue(TreeValueExpression.java:114)
 at org.camunda.bpm.engine.impl.delegate.ExpressionGetInvocation.invoke(ExpressionGetInvocation.java:33)
 at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:39)
 at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:46)
 at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:50)
 ... 200 more
Caused by: org.camunda.spin.spi.SpinDataFormatException: SPIN-01004 No matching data format detected
 at org.camunda.spin.impl.logging.SpinCoreLogger.unrecognizableDataFormatException(SpinCoreLogger.java:55)
 at org.camunda.spin.impl.SpinFactoryImpl.createSpinFromReader(SpinFactoryImpl.java:127)
 at org.camunda.spin.impl.SpinFactoryImpl.createSpin(SpinFactoryImpl.java:50)
 at org.camunda.spin.impl.SpinFactoryImpl.createSpinFromString(SpinFactoryImpl.java:103)
 at org.camunda.spin.impl.SpinFactoryImpl.createSpin(SpinFactoryImpl.java:47)
 at org.camunda.spin.Spin.S(Spin.java:64)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.camunda.bpm.engine.impl.juel.AstFunction.invoke(AstFunction.java:110)
 at org.camunda.bpm.engine.impl.juel.AstFunction.eval(AstFunction.java:117)
 ... 215 more

thorben....@camunda.com

unread,
Feb 16, 2015, 4:13:39 AM2/16/15
to camunda-...@googlegroups.com
Hi Sherry,

It appears Spin is not able to identify the response as XML. That can have multiple reasons:

1. The XML data format is not configured
2. Spin's data format detection does not work correctly
3. The response is not XML or JSON

I assume that it's not the third one.

Regarding 1:
How does your setup look like? Do you use the pre-configured Camunda distribution that you can download from www.camunda.org or did you install it into a plain Tomcat?

Regarding 2:
What happens when you change the expression in the connector output mapping from

<camunda:outputParameter name="forecast">

<![CDATA[

${S(response)

.childElement("Body")

.childElement("http://www.webserviceX.NET", "GetWeatherResponse")

.childElement("GetWeatherResult")

.textContent()}

]]>

</camunda:outputParameter>


to


<camunda:outputParameter name="forecast">

<![CDATA[

${XML(response)

.childElement("Body")

.childElement("http://www.webserviceX.NET", "GetWeatherResponse")

.childElement("GetWeatherResult")

.textContent()}

]]>

</camunda:outputParameter>


That means, you change the Spin invocation from S to XML. This tells Spin explicitly that the response is to be treated as XML.

Cheers,
Thorben
...

Sherry Koontz

unread,
Feb 16, 2015, 9:00:54 AM2/16/15
to camunda-...@googlegroups.com
Thanks for responding! 

I used the tomcat from the Camunda website called camunda-bpm-tomcat 7.2.0. 
I changed the command from s to XML like you showed but I still get an error. 
I think there is something wrong with my pom.xml file I don't reference the camunda.cfg.xlm file.  I was looking at other webapps and they reference the file pom.xml.  Not sure how to add the file.

Thanks again for your help.

Sherrry

 



--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/dEIG6qbMEUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/638ddfe3-435a-4bb5-a67e-484a45e9960b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

pom.xml
catalina.2015-02-16.log

thorben....@camunda.com

unread,
Feb 16, 2015, 11:45:14 AM2/16/15
to camunda-...@googlegroups.com
Hi Sherry,

It appears that this is not a problem with your setup but rather with the response content (cf the last lines of the stack trace).
Could you try to set the output parameter configuration to the following:

<camunda:outputParameter name="forecast">

<![CDATA[${response}]]>

</camunda:outputParameter>

This will put the raw response XML into the variable "forecast" and you can inspect its content, for example in a following Java delegate. Could you please post the content of the "forecast" variable in this case?

Thanks,
Thorben
...

Sherry Koontz

unread,
Feb 16, 2015, 9:42:55 PM2/16/15
to camunda-bpm-users
I changed the code.  Here is part of the logfile.  Any help would be great.  Thanks so much.

Feb 16, 2015 9:39:23 PM org.camunda.bpm.getstarted.loanapproval.ProcessRequestDelegate execute
INFO: Processing request by 'Sally'...
Feb 16, 2015 9:39:45 PM org.camunda.bpm.engine.impl.interceptor.CommandContext close

SEVERE: Error while closing command context
org.camunda.bpm.engine.exception.NullValueException: No task found for taskId '2a736f56-b64e-11e4-9d10-34e6d71cafbb': task is null
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at org.camunda.bpm.engine.impl.util.EnsureUtil.generateException(EnsureUtil.java:283)
 at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:44)
 at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:39)
 at org.camunda.bpm.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:44)
 at org.camunda.bpm.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:30)

 at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
 at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:97)
 at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32)
 at org.camunda.bpm.engine.impl.FormServiceImpl.getTaskFormData(FormServiceImpl.java:62)
 at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.getForm(TaskResourceImpl.java:156)
 at sun.reflect.GeneratedMethodAccessor436.invoke(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Feb 16, 2015 9:39:45 PM org.camunda.bpm.engine.rest.exception.RestExceptionHandler toResponse
WARNING: org.camunda.bpm.engine.rest.exception.RestException: Cannot get form for task 2a736f56-b64e-11e4-9d10-34e6d71cafbb
 at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.getForm(TaskResourceImpl.java:158)
 at sun.reflect.GeneratedMethodAccessor436.invoke(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: org.camunda.bpm.engine.exception.NullValueException: No task found for taskId '2a736f56-b64e-11e4-9d10-34e6d71cafbb': task is null
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at org.camunda.bpm.engine.impl.util.EnsureUtil.generateException(EnsureUtil.java:283)
 at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:44)
 at org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull(EnsureUtil.java:39)
 at org.camunda.bpm.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:44)
 at org.camunda.bpm.engine.impl.cmd.GetTaskFormCmd.execute(GetTaskFormCmd.java:30)

 at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
 at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:97)
 at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32)
 at org.camunda.bpm.engine.impl.FormServiceImpl.getTaskFormData(FormServiceImpl.java:62)
 at org.camunda.bpm.engine.rest.sub.task.impl.TaskResourceImpl.getForm(TaskResourceImpl.java:156)
 ... 49 more


--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/dEIG6qbMEUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.

thorben....@camunda.com

unread,
Feb 17, 2015, 3:56:50 AM2/17/15
to camunda-...@googlegroups.com
Hi Sherry,

The stack trace is unrelated to the connector service task. It simply means that you are trying to access a user task instance that does not exist (anymore). So I assume that the connector task was successful.
What do you see when you go into Cockpit and navigate to the process instance that made the request? Do you see a process variable "forecast" and what is its value?

Cheers,
Thorben

Sherry Koontz

unread,
Feb 17, 2015, 8:09:05 AM2/17/15
to camunda-bpm-users
As soon as I hit complete.  I get the error:
An error happend while submitting the task form : cannot POST /camunda/api/engine/engine/default/task/4ab6a40d-b6a5-11e4-9d10-34e6d71cafbb/submit-form (500)

An error happend while submitting the task form : The task does not exist anymore

When I go to Cockpit I get the value "The server cannot service the request because the media type is unsupported."

Sherry

--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/dEIG6qbMEUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.

Sherry Koontz

unread,
Feb 17, 2015, 10:22:16 PM2/17/15
to camunda-bpm-users
Did you have any more ideas to try to see the value?  Thanks for you help.  I'm not sure what else to try.

Thanks
Sherry

Sebastian Menski

unread,
Feb 18, 2015, 1:39:44 AM2/18/15
to camunda-...@googlegroups.com
Hi Sherry,

would it be possible to share your project on github or similar? 

Cheers,
Sebastian

Sherry Koontz

unread,
Feb 18, 2015, 9:36:33 AM2/18/15
to camunda-bpm-users
I zipped the project.  It's just two sample project put together.  I just wanted to see a web server call work with Camunda.

Thanks
Sherry

--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/dEIG6qbMEUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
loan-approval.zip

Sebastian Menski

unread,
Feb 19, 2015, 8:40:31 AM2/19/15
to camunda-...@googlegroups.com
Hi Sherry,

I had a look at your project. I attached a fixed version but please note that it currently doesn't work on Tomcat. This is because of a class loading problem of
spin in combination with script engines on the Tomcat server. So please use the jBoss camunda distribution for this project.

There were 3 things I had to fix:

1. The soap namespace in your request tmpl was wrong I changed it to:

2. As you request a temperature in Canada it is like to below zero and the regex in the parseTemperature.js expected a positive value so I changed it to:
var regex = /\((-?\d+) C\)/;

3. The conditions of the outgoing sequence flows of the gateway were defined as camunda:resource which is strange and wrong so I changed them to be normal expressions:
<bpmn2:sequenceFlow id="SequenceFlow_8" name="temperature below 18" sourceRef="ExclusiveGateway_1" targetRef="UserTask_3">

 
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${temperature < 18}]]></bpmn2:conditionExpression>

</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="SequenceFlow_9" name="temperature above 18" sourceRef="ExclusiveGateway_1" targetRef="UserTask_2">

 
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${temperature >= 18}]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>

Cheers,
Sebastian

loan-approval-fixed.zip

Sherry Koontz

unread,
Feb 19, 2015, 10:16:24 AM2/19/15
to camunda-bpm-users
Thanks so much for the help!  I will try this today!

--
You received this message because you are subscribed to a topic in the Google Groups "camunda BPM users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/camunda-bpm-users/dEIG6qbMEUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.

sridhar akella

unread,
Mar 2, 2016, 4:23:52 PM3/2/16
to camunda BPM users
Hi Sebastian,

I downloaded the attached project, and deployed on jboss. but still seiing the same issue.

I need an example which it calls an external webservice inside camunda

if possible please post on git hub

thanks,
Sridhar

Sebastian Menski

unread,
Mar 3, 2016, 7:30:22 AM3/3/16
to camunda BPM users
Hi Sridhar,

did you had a look at the https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/soap-service examples? It uses a Camunda Connector
Task to send a SOAP request.

Cheers,
Sebastian
Reply all
Reply to author
Forward
0 new messages