cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment of Web service process failed in Activity-Explorer 5.13

perpetuum_mobil
Champ in-the-making
Champ in-the-making
Hello!
I have a problem with deployment of process containing a web service task
(in explorer: 'Manage'->'Deployments'->'Upload new')
I've got this error:

08.07.2013 15:11:18 com.vaadin.Application terminalError
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method uploadFinished in org.activiti.explorer.ui.custom.UploadComponent failed.
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:530)
   at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
   at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
   at com.vaadin.ui.Upload.fireUploadInterrupted(Upload.java:731)
   at com.vaadin.ui.Upload$1.streamingFailed(Upload.java:1037)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.streamToReceiver(AbstractCommunicationManager.java:619)
   at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleSimpleMultipartFileUpload(AbstractCommunicationManager.java:476)
   at com.vaadin.terminal.gwt.server.CommunicationManager.handleFileUpload(CommunicationManager.java:259)
   at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:495)
   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.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
   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:472)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
   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:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
   at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.showUploadedDeployment(DeploymentUploadReceiver.java:114)
   at org.activiti.explorer.ui.management.deployment.DeploymentUploadReceiver.uploadFinished(DeploymentUploadReceiver.java:73)
   at org.activiti.explorer.ui.custom.UploadComponent.uploadFinished(UploadComponent.java:173)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
   … 28 more


I have Activiti CXF module in classpath, and I have my WS running at certain URL.
Here is my process description:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:activiti="http://activiti.org/bpmn"
           xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
           xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
           xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
           typeLanguage="http://www.w3.org/2001/XMLSchema"
           expressionLanguage="http://www.w3.org/1999/XPath"
           targetNamespace="org.activiti.enginge.impl.webservice"
           xmlns:tns="org.activiti.enginge.impl.webservice"
           xmlns:hello="http://hello.srv.ws.cnv.com/">
          
  <import importType="http://schemas.xmlsoap.org/wsdl/"
        location="http://localhost:9080/WS/hello?wsdl"
        namespace="http://hello.srv.ws.cnv.com/'/>
 
  <!– Interface: implementationRef = QName of WSDL Port Type –>
   <interface name="hello Interface" implementationRef="hello:Hello">
      <!– Operation: implementationRef = QName of WSDL Operation –>
      <operation id="sayHelloOperation" name="say hello Operation" implementationRef="hello:sayHello">
         <inMessageRef>tns:sayHelloRequestMessage</inMessageRef>
      </operation>
   </interface>
   <message id="sayHelloRequestMessage" itemRef="tns:sayHelloRequestItem" />
   <itemDefinition id="sayHelloRequestItem" structureRef="hello:sayHello" /><!– QName of input element –>
     
  <process id="specProcess" name="Spec process" isExecutable="true">
     <dataObject id="dataInputOfProcess" name="Input for webservice" itemSubjectRef="tns:sayHelloRequestItem"/>
 
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
   
    <scriptTask id="scripttask1" name="Script Task" scriptFormat="groovy">
       <script>
          def scriptVar = "Hello"
          execution.setVariable("dataInputOfProcess", scriptVar)
        </script>
    </scriptTask>
    <serviceTask id="webService" name="WSTask" implementation="##WebService" operationRef="tns:sayHelloOperation">
       <!– The BPMN 2.0 Meta Model requires an Input/Output Specification –>
      <ioSpecification>
         <dataInput itemSubjectRef="tns:sayHelloRequestItem" 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>
    <receiveTask id="receivetask1" name="Receive Task"></receiveTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="scripttask1"></sequenceFlow>
    <sequenceFlow id="flow2" sourceRef="scripttask1" targetRef="webService"></sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="webService" targetRef="receivetask1"></sequenceFlow>
    <sequenceFlow id="flow4" sourceRef="receivetask1" targetRef="endevent1"></sequenceFlow>
  </process>
</definitions>


So, I got mentioned error trying to deploy this process.
Then I wanted to deploy very simple bpmn including only WSDL import:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:activiti="http://activiti.org/bpmn"
           xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
           xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC"
           xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
           typeLanguage="http://www.w3.org/2001/XMLSchema"
           expressionLanguage="http://www.w3.org/1999/XPath"
           targetNamespace="org.activiti.enginge.impl.webservice"
           xmlns:tns="org.activiti.enginge.impl.webservice"
           xmlns:hello="http://hello.srv.ws.cnv.com/">
          
  <import importType="http://schemas.xmlsoap.org/wsdl/"
        location="http://localhost:9080/WS/hello?wsdl"
        namespace="http://hello.srv.ws.cnv.com/" />
  <process id="specProcess" name="Spec process" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"></sequenceFlow>
    <sequenceFlow id="flow2" sourceRef="usertask1" targetRef="endevent1"></sequenceFlow>
    <userTask id="usertask1" name="WSTask"></userTask>
  </process>
</definitions>


But I've got the same error.
This old topic contains the similar problem's discussion, but I found no answer there.

Thank you.
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Not sure about this, but if it's the same "http://schemas.xmlsoap.org/wsdl/" issue, maybe it's worth looking into how to make the xml-parser aware of the XSD for this URL…

perpetuum_mobil
Champ in-the-making
Champ in-the-making
Thank you for reply!
I've solved the problem.. It was, however, in cxf dependencies. There were I've uploaded 5.12 version of activity and made the same actions. So, i found info about needed dependencies in tomcat log.
By the way, 5.13's log contained only mensioned error…
Here is the list of jars i added to tomcat/lib:
<code>
antlr-2.7.7.jar
aopalliance-1.0.jar
asm-3.3.1.jar
commons-codec-1.7.jar
commons-collections-3.2.1.jar
commons-lang-2.6.jar
commons-logging-1.1.1.jar
cxf-2.7.5.jar
cxf-api-2.7.5.jar
cxf-manifest.jar
cxf-rt-ws-addr-2.7.5.jar
cxf-rt-ws-mex-2.7.5.jar
cxf-rt-ws-policy-2.7.5.jar
cxf-rt-ws-rm-2.7.5.jar
cxf-rt-ws-security-2.7.5.jar
cxf-services-sts-core-2.7.5.jar
cxf-services-ws-discovery-api-2.7.5.jar
cxf-services-ws-discovery-service-2.7.5.jar
cxf-services-wsn-api-2.7.5.jar
cxf-services-wsn-core-2.7.5.jar
cxf-xjc-boolean-2.6.1.jar
cxf-xjc-bug671-2.6.1.jar
cxf-xjc-dv-2.6.1.jar
cxf-xjc-runtime-2.6.1.jar
cxf-xjc-ts-2.6.1.jar
ehcache-core-2.5.1.jar
FastInfoset-1.2.12.jar
geronimo-javamail_1.4_spec-1.7.1.jar
geronimo-jaxws_2.2_spec-1.1.jar
geronimo-jms_1.1_spec-1.1.1.jar
geronimo-servlet_3.0_spec-1.0.jar
httpasyncclient-4.0-beta3.jar
httpclient-4.2.1.jar
httpcore-4.2.2.jar
httpcore-nio-4.2.2.jar
isorelax-20030108.jar
javax.ws.rs-api-2.0-m10.jar
jaxb-api-2.2.6.jar
jaxb-impl-2.2.6.jar
jaxb-xjc-2.2.6.jar
jettison-1.3.3.jar
jetty-continuation-8.1.7.v20120910.jar
jetty-http-8.1.7.v20120910.jar
jetty-io-8.1.7.v20120910.jar
jetty-security-8.1.7.v20120910.jar
jetty-server-8.1.7.v20120910.jar
jetty-util-8.1.7.v20120910.jar
joda-time-1.6.2.jar
js-1.7R2.jar
mina-core-2.0.7.jar
msv-core-2011.1.jar
neethi-3.0.2.jar
oauth-20100527.jar
oauth-provider-20100527.jar
opensaml-2.5.1-1.jar
openws-1.4.2-1.jar
relaxngDatatype-20020414.jar
slf4j-api-1.7.5.jar
slf4j-jdk14-1.7.5.jar
stax2-api-3.1.1.jar
velocity-1.7.jar
woodstox-core-asl-4.2.0.jar
wsdl4j-1.6.3.jar
wss4j-1.6.10.jar
xmlbeans-2.6.0.jar
xml-resolver-1.2.jar
xmlschema-core-2.0.3.jar
xmlsec-1.5.4.jar
xmltooling-1.3.2-1.jar
xsdlib-2010.1.jar
</code>

frederikherema1
Star Contributor
Star Contributor
Great, thanks for sharing this…