AnsweredAssumed Answered

Error parsing XML

Question asked by benreich on Apr 5, 2016
Latest reply on Apr 5, 2016 by benreich
Hello,

I created a very simple process in Activiti, imported it to the designer assigned some tasks and created a deployment. When I try to deploy the bar file I get the followin log in catalina and I would like to know what the problem is as I do not understand the nullpointer exception thing.

Can anyone help me?

05-Apr-2016 15:21:00.024 SEVERE [http-nio-80-exec-4] com.vaadin.Application.terminalError 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:292)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:53)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
   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:522)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
   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(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Unknown Source)
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(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
   … 33 more

Here is the XML:

<?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 "processing payment"</script>
    </scriptTask>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_sid-04b8555f-eb33-43ea-b148-3a37bc7daeeb">
    <bpmndi:BPMNPlane bpmnElement="sid-04b8555f-eb33-43ea-b148-3a37bc7daeeb" id="BPMNPlane_sid-04b8555f-eb33-43ea-b148-3a37bc7daeeb">
      <bpmndi:BPMNShape bpmnElement="sid-4CB989A2-0678-4B80-80CC-BB7653648F55" id="BPMNShape_sid-4CB989A2-0678-4B80-80CC-BB7653648F55">
        <omgdc:Bounds height="35.0" width="35.0" x="125.0" y="230.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-42AFA1EC-BC0D-4841-8C09-EDA40F714E90" id="BPMNShape_sid-42AFA1EC-BC0D-4841-8C09-EDA40F714E90">
        <omgdc:Bounds height="40.0" width="40.0" x="200.0" y="225.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-46174D69-26A7-420F-B546-0733E29F4E63" id="BPMNShape_sid-46174D69-26A7-420F-B546-0733E29F4E63">
        <omgdc:Bounds height="40.0" width="40.0" x="435.0" y="225.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-6CB197DE-222D-4DD7-A63A-B14315DA44EE" id="BPMNShape_sid-6CB197DE-222D-4DD7-A63A-B14315DA44EE">
        <omgdc:Bounds height="80.0" width="100.0" x="285.0" y="270.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-3B477C53-C24B-432D-9964-571ACA627A53" id="BPMNShape_sid-3B477C53-C24B-432D-9964-571ACA627A53">
        <omgdc:Bounds height="80.0" width="100.0" x="525.0" y="205.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-6BDAED32-C408-4842-BF78-40C0CC44838F" id="BPMNShape_sid-6BDAED32-C408-4842-BF78-40C0CC44838F">
        <omgdc:Bounds height="80.0" width="100.0" x="690.0" y="205.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-4577B13A-D057-442D-A26A-9EA8EF840DE2" id="BPMNShape_sid-4577B13A-D057-442D-A26A-9EA8EF840DE2">
        <omgdc:Bounds height="35.0" width="35.0" x="855.0" y="231.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="scripttask1" id="BPMNShape_scripttask1">
        <omgdc:Bounds height="80.0" width="100.0" x="285.0" y="150.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-999C47A4-BB16-4666-BAB3-A94E3E923746" id="BPMNEdge_sid-999C47A4-BB16-4666-BAB3-A94E3E923746">
        <omgdi:waypoint x="160.0" y="247.0"></omgdi:waypoint>
        <omgdi:waypoint x="200.0" y="245.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-CFE0874F-8DE6-4F1D-84F2-61B4D8A6C123" id="BPMNEdge_sid-CFE0874F-8DE6-4F1D-84F2-61B4D8A6C123">
        <omgdi:waypoint x="220.0" y="225.0"></omgdi:waypoint>
        <omgdi:waypoint x="220.0" y="190.0"></omgdi:waypoint>
        <omgdi:waypoint x="285.0" y="190.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-902B388B-448B-4848-9DB2-0AE8B690F909" id="BPMNEdge_sid-902B388B-448B-4848-9DB2-0AE8B690F909">
        <omgdi:waypoint x="220.0" y="265.0"></omgdi:waypoint>
        <omgdi:waypoint x="220.0" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="285.0" y="310.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-EBA1AED2-A6BD-4D2F-AA57-76621032C236" id="BPMNEdge_sid-EBA1AED2-A6BD-4D2F-AA57-76621032C236">
        <omgdi:waypoint x="385.0" y="190.0"></omgdi:waypoint>
        <omgdi:waypoint x="455.0" y="190.0"></omgdi:waypoint>
        <omgdi:waypoint x="455.0" y="225.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-5CE4E65F-9EC6-4B56-9812-C5648568D191" id="BPMNEdge_sid-5CE4E65F-9EC6-4B56-9812-C5648568D191">
        <omgdi:waypoint x="475.0" y="245.0"></omgdi:waypoint>
        <omgdi:waypoint x="525.0" y="245.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-242B139F-6C53-4CDA-9AC6-BB42087927FA" id="BPMNEdge_sid-242B139F-6C53-4CDA-9AC6-BB42087927FA">
        <omgdi:waypoint x="625.0" y="245.0"></omgdi:waypoint>
        <omgdi:waypoint x="690.0" y="245.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-68749406-CBA2-47D0-BEB0-050AFF4319E8" id="BPMNEdge_sid-68749406-CBA2-47D0-BEB0-050AFF4319E8">
        <omgdi:waypoint x="790.0" y="245.0"></omgdi:waypoint>
        <omgdi:waypoint x="855.0" y="248.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-0B8923A1-B55C-43CB-A998-CC6F2B1EA9BA" id="BPMNEdge_sid-0B8923A1-B55C-43CB-A998-CC6F2B1EA9BA">
        <omgdi:waypoint x="385.0" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="455.0" y="310.0"></omgdi:waypoint>
        <omgdi:waypoint x="455.0" y="265.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>I

Outcomes