AnsweredAssumed Answered

Exception while deploying BAR file in Activiti-explorer

Question asked by mohit on Feb 28, 2016
Hi All,
I have created a BAR file in eclipse and I am trying to get it deployed in Activiti-Explorer. BUt I am geeting an exception when I upload the file.

Stack Trace:
========

04:55:04,128 [http-nio-8080-exec-6] INFO  org.activiti.engine.impl.bpmn.deployer.BpmnDeployer  - Processing resource Book order process.bpmn20.xml
04:55:04,226 [http-nio-8080-exec-6] INFO  org.activiti.engine.impl.bpmn.deployer.BpmnDeployer  - Processing resource Book order process.bpmn20.xml
Feb 28, 2016 4:55:04 PM 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:729)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:53)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
   at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
   at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)
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:197)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
   … 33 more



I am using the following BPMN file copied from Activiti In Action chapter 3.


<?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:xsd="http://www.w3.org/2001/XMLSchema" 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" xmlns:signavio="http://www.signavio.com" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.signavio.com/bpmn20" exporter="Signavio Process Editor, http://www.signavio.com" exporterVersion="" id="sid-dbc352d0-1330-4f3a-8da8-e1ab75b2ad95" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/2.0/20100501/BPMN20.xsd">
  <process id="sid-04b8555f-eb33-43ea-b148-3a37bc7daeeb" isExecutable="false">
    <startEvent id="sid-4CB989A2-0678-4B80-80CC-BB7653648F55">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"></signavio:signavioMetaData>
      </extensionElements>
    </startEvent>
    <parallelGateway id="sid-42AFA1EC-BC0D-4841-8C09-EDA40F714E90">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"></signavio:signavioMetaData>
      </extensionElements>
    </parallelGateway>
    <parallelGateway id="sid-46174D69-26A7-420F-B546-0733E29F4E63">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"></signavio:signavioMetaData>
      </extensionElements>
    </parallelGateway>
    <userTask id="sid-6CB197DE-222D-4DD7-A63A-B14315DA44EE" name="Prepare book for shipment" activiti:assignee="kermit" completionQuantity="1" implementation="webService" isForCompensation="false" startQuantity="1">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"></signavio:signavioMetaData>
      </extensionElements>
    </userTask>
    <userTask id="sid-3B477C53-C24B-432D-9964-571ACA627A53" name="Send email with arrival date" activiti:assignee="kermit" completionQuantity="1" implementation="webService" isForCompensation="false" startQuantity="1">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"></signavio:signavioMetaData>
      </extensionElements>
    </userTask>
    <userTask id="sid-6BDAED32-C408-4842-BF78-40C0CC44838F" name="Send shipment" activiti:assignee="kermit" completionQuantity="1" implementation="webService" isForCompensation="false" startQuantity="1">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"></signavio:signavioMetaData>
      </extensionElements>
    </userTask>
    <endEvent id="sid-4577B13A-D057-442D-A26A-9EA8EF840DE2">
      <extensionElements>
        <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffff"></signavio:signavioMetaData>
      </extensionElements>
    </endEvent>
    <sequenceFlow id="sid-999C47A4-BB16-4666-BAB3-A94E3E923746" sourceRef="sid-4CB989A2-0678-4B80-80CC-BB7653648F55" targetRef="sid-42AFA1EC-BC0D-4841-8C09-EDA40F714E90"></sequenceFlow>
    <sequenceFlow id="sid-CFE0874F-8DE6-4F1D-84F2-61B4D8A6C123" sourceRef="sid-42AFA1EC-BC0D-4841-8C09-EDA40F714E90" targetRef="scripttask1"></sequenceFlow>
    <sequenceFlow id="sid-902B388B-448B-4848-9DB2-0AE8B690F909" sourceRef="sid-42AFA1EC-BC0D-4841-8C09-EDA40F714E90" targetRef="sid-6CB197DE-222D-4DD7-A63A-B14315DA44EE"></sequenceFlow>
    <sequenceFlow id="sid-EBA1AED2-A6BD-4D2F-AA57-76621032C236" sourceRef="scripttask1" targetRef="sid-46174D69-26A7-420F-B546-0733E29F4E63"></sequenceFlow>
    <sequenceFlow id="sid-5CE4E65F-9EC6-4B56-9812-C5648568D191" sourceRef="sid-46174D69-26A7-420F-B546-0733E29F4E63" targetRef="sid-3B477C53-C24B-432D-9964-571ACA627A53"></sequenceFlow>
    <sequenceFlow id="sid-242B139F-6C53-4CDA-9AC6-BB42087927FA" sourceRef="sid-3B477C53-C24B-432D-9964-571ACA627A53" targetRef="sid-6BDAED32-C408-4842-BF78-40C0CC44838F"></sequenceFlow>
    <sequenceFlow id="sid-68749406-CBA2-47D0-BEB0-050AFF4319E8" sourceRef="sid-6BDAED32-C408-4842-BF78-40C0CC44838F" targetRef="sid-4577B13A-D057-442D-A26A-9EA8EF840DE2"></sequenceFlow>
    <sequenceFlow id="sid-0B8923A1-B55C-43CB-A998-CC6F2B1EA9BA" sourceRef="sid-6CB197DE-222D-4DD7-A63A-B14315DA44EE" targetRef="sid-46174D69-26A7-420F-B546-0733E29F4E63"></sequenceFlow>
    <scriptTask id="scripttask1" name="Process payment" scriptFormat="groovy" activiti:autoStoreVariables="false">
      <script>out:println “Process payment”</script>
    </scriptTask>
  </process>

Outcomes