cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deploy webservice xml in Model workspace

anbu
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to import below xml in model workspace to invoke webservice call and getting below error. Can anyone help, Is there any changes required in the xml or the way for making webservice call is incorrect??

12:39:17,193 [http-bio-8080-exec-7] ERROR org.activiti.bpmn.converter.BaseBpmnXMLConverter  - Error converting Input for webservice, invalid data type: setToRequestItem
12:39:17,194 [http-bio-8080-exec-7] ERROR org.activiti.bpmn.converter.BaseBpmnXMLConverter  - Error converting Input for webservice, invalid data type: setToRequestItem
Dec 17, 2015 12:39:17 PM com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method uploadFinished in org.activiti.explorer.ui.custom.ImportComponent failed.

Please find below the xml data for webservice. appreciate the response..

<?xml version="1.0" encoding="UTF-8" ?>
<definitions id="definitions"
   xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn"
   targetNamespace="org.activiti.enginge.impl.webservice" xmlns:tns="org.activiti.enginge.impl.webservice"
   xmlns:counter="http://webservice.activiti.org/">
<import importType="http://schemas.xmlsoap.org/wsdl/" location="http://localhost:63081/counter?wsdl"
      namespace="http://webservice.activiti.org/" />

   <process id="webServiceInvocationWithParametersFromTask">
      <dataObject id="dataInputOfProcess" name="Input for webservice" itemSubjectRef="tns:setToRequestItem"/>

      <startEvent id="theStart" />

      <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theScriptTask" />

      <scriptTask id="theScriptTask" scriptFormat="groovy" name="Execute script">
         <script>
             def scriptVar = "10"
             execution.setVariable("dataInputOfProcess", scriptVar)
           </script>
      </scriptTask>

      <sequenceFlow id="flow1a" sourceRef="theScriptTask" targetRef="webService" />

      <serviceTask id="webService" name="Call WS"
         implementation="##WebService" operationRef="tns:setToOperation">
         <!– The BPMN 2.0 Meta Model requires an Input/Output Specification –>
         <ioSpecification>
            <dataInput itemSubjectRef="tns:setToRequestItem" id="dataInputOfServiceTask" />
            <inputSet>
               <dataInputRefs>dataInputOfServiceTask</dataInputRefs>
            </inputSet>
            <outputSet />
         </ioSpecification>
         <dataInputAssociation>
            <sourceRef>dataInputOfProcess</sourceRef>
            <targetRef>dataInputOfServiceTask</targetRef>
            <assignment>
               <from>${dataInputOfProcess}</from>
               <to>${dataInputOfServiceTask.value}</to>
            </assignment>
         </dataInputAssociation>
      </serviceTask>

      <sequenceFlow id="flow2" sourceRef="webService"
         targetRef="waitState" />

      <receiveTask id="waitState" />

      <sequenceFlow id="flow3" sourceRef="waitState" targetRef="theEnd" />

      <endEvent id="theEnd" />

   </process>
   <!– Interface: implementationRef = QName of WSDL Port Type –>
   <interface name="Counter Interface" implementationRef="counter:Counter">
      <!– Operation: implementationRef = QName of WSDL Operation –>
      <operation id="setToOperation" name="setTo Operation"
         implementationRef="counter:setTo">
         <inMessageRef>tns:setToRequestMessage</inMessageRef>
      </operation>
   </interface>
   <message id="setToRequestMessage" itemRef="tns:setToRequestItem" />
   <itemDefinition id="setToRequestItem" structureRef="counter:setTo" /><!–
      QName of input element –>
</definitions>
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
please attach the xml file so we can download it, and provide some information about Activiti version (and any setup details you consider relevant)

after I had a look into the log you attached i can see this:

<code>
Caused by: java.lang.NullPointerException
at org.activiti.editor.ui.ImportUploadReceiver.showUploadedDeployment(ImportUploadReceiver.java:150)
</code>

you can start debugging the issue by placing a breakpoint at line 150 in ImportUploadReceiver.java file.
and then you can investigate what's NULL at that line.