cancel
Showing results for 
Search instead for 
Did you mean: 

smart deployment message

ismail1
Champ in-the-making
Champ in-the-making
Hi folks, its getting harder to deploy process when it gets bigger….
Eclipse editor does not complain about xml but when deploying process , usually "xml parse error" is displayed, but no hint about where the problem can occur….
Is there a way that will make life easier about this? can this message set to be more detailed, line number …
How can i fix xml, notepad++ says its good xml, yaogjang bpmn editor says it s good…but cant deploy…
6 REPLIES 6

ismail1
Champ in-the-making
Champ in-the-making
Any eagle eye help?
<code>
<?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" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="expenseProcess" name="New Expense process with confirmation" isExecutable="true">
    <startEvent id="startevent1" name="Start" activiti:initiator="employee">
      <extensionElements>
        <activiti:formProperty id="amount" name="Amount for expense" type="long" required="true"></activiti:formProperty>
        <activiti:formProperty id="expenseDate" name="Date of expense" type="date" datePattern="dd-MM-yyyy hh:mm" required="true"></activiti:formProperty>
        <activiti:formProperty id="explanation" name="Explanation for expense" type="string"></activiti:formProperty>
      </extensionElements>
    </startEvent>
    <serviceTask id="mailtask1" name="Mail to management" activiti:type="mail">
      <extensionElements>
        <activiti:field name="to">
          <activiti:expression>${employee.mail}</activiti:expression>
        </activiti:field>
        <activiti:field name="from">
          <activiti:string>expenses@kkb.com.tr</activiti:string>
        </activiti:field>
        <activiti:field name="subject">
          <activiti:string>Expense request received</activiti:string>
        </activiti:field>
        <activiti:field name="html">
          <activiti:expression>Hello Pal, ${employee} has requested a refund of ${amount} Euro.</activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <userTask id="usertask2" name="Management handle request" activiti:candidateGroups="management">
      <documentation>${employee} has requested a refund of ${amount} Euro.</documentation>
      <extensionElements>
        <activiti:formProperty id="amount" name="Amount for expense" type="long" required="true"></activiti:formProperty>
        <activiti:formProperty id="expenseDate" name="Date of expense" type="date" datePattern="dd-MM-yyyy hh:mm" required="true"></activiti:formProperty>
        <activiti:formProperty id="explanation" name="Explanation for expense" type="string"></activiti:formProperty>
        <activiti:formProperty id="managerMotivation" name="Motivation" type="string"></activiti:formProperty>
        <activiti:formProperty id="managerApproved" name="Do you approve this expense?" type="enum" required="true">
          <activiti:value id="true" name="Approve"></activiti:value>
          <activiti:value id="false" name="Reject"></activiti:value>
        </activiti:formProperty>
        <activiti:taskListener event="complete" class="org.activiti.engine.impl.bpmn.listener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string>
             var approvingManager = task.assignee; 
    approvingManager // implicit return value
   </activiti:string>
          </activiti:field>
          <activiti:field name="language">
            <activiti:string>javascript</activiti:string>
          </activiti:field>
          <activiti:field name="resultVariable">
            <activiti:string>approvingManager</activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <userTask id="usertask3" name="Accountancy handle request" activiti:candidateGroups="accountancy">
      <documentation>${employee} has requested a refund of ${amount} Euro. ${approvingManager} has been approved.</documentation>
      <extensionElements>
        <activiti:formProperty id="amount" name="Amount for expense" type="long" required="true"></activiti:formProperty>
        <activiti:formProperty id="expenseDate" name="Date of expense" type="date" datePattern="dd-MM-yyyy hh:mm" required="true"></activiti:formProperty>
        <activiti:formProperty id="explanation" name="Explanation for expense" type="string"></activiti:formProperty>
        <activiti:formProperty id="managerMotivation" name="Manager Motivation" type="string"></activiti:formProperty>
        <activiti:formProperty id="accountantApproved" name="Do you approve this expense?(Limit for employee is 5000 Euro.)" type="enum" required="true">
          <activiti:value id="true" name="Approve"></activiti:value>
          <activiti:value id="false" name="Reject"></activiti:value>
        </activiti:formProperty>
        <activiti:formProperty id="accountancyMotivation" name="Accountancy Motivation" type="string"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow1" sourceRef="mailtask1" targetRef="usertask2"></sequenceFlow>
    <sequenceFlow id="flow2" sourceRef="usertask2" targetRef="exclusivegateway1"></sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="usertask3" targetRef="exclusivegateway2"></sequenceFlow>
    <sequenceFlow id="flow4" sourceRef="startevent1" targetRef="mailtask1"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Manager Approve Decision"></exclusiveGateway>
    <sequenceFlow id="flow5" name="Manager approved" sourceRef="exclusivegateway1" targetRef="usertask3">
      <conditionExpression xsi:type="tFormalExpression">${managerApproved == 'true'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow6" name="Manager disapproved" sourceRef="exclusivegateway1" targetRef="usertask4">
      <conditionExpression xsi:type="tFormalExpression">${managerApproved == 'false'}</conditionExpression>
    </sequenceFlow>
    <userTask id="usertask4" name="Adjust expense request" activiti:assignee="${employee}">
      <documentation>${approvingManager} has requested to adjust your request.</documentation>
      <extensionElements>
        <activiti:formProperty id="amount" name="Amount for expense" type="long" required="true"></activiti:formProperty>
        <activiti:formProperty id="expenseDate" name="Date of expense" type="date" datePattern="dd-MM-yyyy hh:mm" required="true"></activiti:formProperty>
        <activiti:formProperty id="explanation" name="Explanation for expense" type="string"></activiti:formProperty>
        <activiti:formProperty id="managerMotivation" name="Manager Motivation" type="string"></activiti:formProperty>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow7" sourceRef="usertask4" targetRef="mailtask1"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway2" name="Accountant Approve Decision"></exclusiveGateway>
    <serviceTask id="servicetask1" name="Call Muhasebe Web Service" activiti:class="org.activiti.demo.muhasebe.MuhasebeWebServiceCaller">
      <extensionElements>
        <activiti:field name="wsdl">
          <activiti:expression>muhasebeWebService.wsdl</activiti:expression>
        </activiti:field>
        <activiti:field name="operation">
          <activiti:string>payAmount</activiti:string>
        </activiti:field>
        <activiti:field name="parameters">
          <activiti:expression>${amount},${employee}</activiti:expression>
        </activiti:field>
        <activiti:field name="returnValue">
          <activiti:string>payAmountResult</activiti:string>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow8" name="Account Manager Approved" sourceRef="exclusivegateway2" targetRef="servicetask1">
      <conditionExpression xsi:type="tFormalExpression">${accountantApproved == 'true'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow12" name="Account Manager Disapproved" sourceRef="exclusivegateway2" targetRef="mailtask2">
      <conditionExpression xsi:type="tFormalExpression">${accountantApproved == 'false'}</conditionExpression>
    </sequenceFlow>
    <serviceTask id="mailtask2" name="Mail Expense Request Result" activiti:type="mail">
      <extensionElements>
        <activiti:field name="to">
          <activiti:expression>${employee.mail}</activiti:expression>
        </activiti:field>
        <activiti:field name="cc">
          <activiti:expression>${approvingManager.mail}</activiti:expression>
        </activiti:field>
        <activiti:field name="from">
          <activiti:string>expenses@kkb.com.tr</activiti:string>
        </activiti:field>
        <activiti:field name="subject">
          <activiti:expression>${accountantApproved == 'true' ? 'Expense request Approved' : 'Expense request Disapproved'}</activiti:expression>
        </activiti:field>
        <activiti:field name="html">
          <activiti:expression>Your expense request of ${amount} Euro was ${accountantApproved == 'true' ? 'approved','disapproved. Sorry'}</activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>
    <sequenceFlow id="flow10" sourceRef="servicetask1" targetRef="mailtask2"></sequenceFlow>
    <sequenceFlow id="flow11" sourceRef="mailtask2" targetRef="endevent1"></sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_expenseProcess">
    <bpmndi:BPMNPlane bpmnElement="expenseProcess" id="BPMNPlane_expenseProcess">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="50.0" y="294.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="mailtask1" id="BPMNShape_mailtask1">
        <omgdc:Bounds height="55.0" width="105.0" x="150.0" y="284.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
        <omgdc:Bounds height="55.0" width="121.0" x="290.0" y="284.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
        <omgdc:Bounds height="65.0" width="141.0" x="580.0" y="279.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="1026.0" y="294.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="464.0" y="291.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask4" id="BPMNShape_usertask4">
        <omgdc:Bounds height="55.0" width="105.0" x="150.0" y="410.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="770.0" y="291.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1">
        <omgdc:Bounds height="55.0" width="105.0" x="870.0" y="284.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="mailtask2" id="BPMNShape_mailtask2">
        <omgdc:Bounds height="55.0" width="105.0" x="870.0" y="387.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
        <omgdi:waypoint x="85.0" y="311.0"></omgdi:waypoint>
        <omgdi:waypoint x="150.0" y="311.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="255.0" y="311.0"></omgdi:waypoint>
        <omgdi:waypoint x="290.0" y="311.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="411.0" y="311.0"></omgdi:waypoint>
        <omgdi:waypoint x="464.0" y="311.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="721.0" y="311.0"></omgdi:waypoint>
        <omgdi:waypoint x="770.0" y="311.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="504.0" y="311.0"></omgdi:waypoint>
        <omgdi:waypoint x="580.0" y="311.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="91.0" x="-38.0" y="-17.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="484.0" y="331.0"></omgdi:waypoint>
        <omgdi:waypoint x="484.0" y="437.0"></omgdi:waypoint>
        <omgdi:waypoint x="255.0" y="437.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="-153.0" y="-7.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="202.0" y="410.0"></omgdi:waypoint>
        <omgdi:waypoint x="202.0" y="339.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="810.0" y="311.0"></omgdi:waypoint>
        <omgdi:waypoint x="870.0" y="311.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="-40.0" y="-51.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="922.0" y="339.0"></omgdi:waypoint>
        <omgdi:waypoint x="922.0" y="387.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
        <omgdi:waypoint x="975.0" y="414.0"></omgdi:waypoint>
        <omgdi:waypoint x="1043.0" y="414.0"></omgdi:waypoint>
        <omgdi:waypoint x="1043.0" y="329.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
        <omgdi:waypoint x="790.0" y="331.0"></omgdi:waypoint>
        <omgdi:waypoint x="790.0" y="414.0"></omgdi:waypoint>
        <omgdi:waypoint x="870.0" y="414.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="42.0" width="100.0" x="-20.0" y="5.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
</code>

frederikherema1
Star Contributor
Star Contributor
When deploying, look at the stacktrace of the exception, it's logged. The cause of the root-exceptions contains more info. In your case:


org.activiti.engine.ActivitiException: Error parsing XML
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:195)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:88)
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:45)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:70)
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:35)
        …
Caused by: org.activiti.engine.impl.juel.TreeBuilderException: Error parsing 'Your expense request of ${amount} Euro was ${accountantApproved == 'true' ? 'approved','disapproved. Sorry'}': syntax error at position 86, encountered ',', expected ':'
at org.activiti.engine.impl.juel.Builder.build(Builder.java:99)
at org.activiti.engine.impl.juel.TreeStore.get(TreeStore.java:61)
at org.activiti.engine.impl.juel.TreeValueExpression.<init>(TreeValueExpression.java:62)
at org.activiti.engine.impl.juel.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:428)
at org.activiti.engine.impl.juel.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:73)
at org.activiti.engine.impl.el.ExpressionManager.createExpression(ExpressionManager.java:72)
at org.activiti.engine.impl.bpmn.parser.factory.AbstractBehaviorFactory.createFieldDeclarations(AbstractBehaviorFactory.java:38)
at org.activiti.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory.createMailActivityBehavior(DefaultActivityBehaviorFactory.java:160)
at org.activiti.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory.createMailActivityBehavior(DefaultActivityBehaviorFactory.java:152)
at org.activiti.engine.impl.bpmn.parser.handler.ServiceTaskParseHandler.executeParse(ServiceTaskParseHandler.java:48)
at org.activiti.engine.impl.bpmn.parser.handler.ServiceTaskParseHandler.executeParse(ServiceTaskParseHandler.java:31)
at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:79)
at org.activiti.engine.impl.bpmn.parser.handler.AbstractFlowNodeBpmnParseHandler.parse(AbstractFlowNodeBpmnParseHandler.java:27)
at org.activiti.engine.impl.bpmn.parser.handler.AbstractActivityBpmnParseHandler.parse(AbstractActivityBpmnParseHandler.java:35)
at org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:73)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.processFlowElements(BpmnParse.java:400)
at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.transformProcess(ProcessParseHandler.java:87)
at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:48)
at org.activiti.engine.impl.bpmn.parser.handler.ProcessParseHandler.executeParse(ProcessParseHandler.java:34)
at org.activiti.engine.impl.bpmn.parser.handler.AbstractBpmnParseHandler.parse(AbstractBpmnParseHandler.java:79)
at org.activiti.engine.impl.bpmn.parser.BpmnParseHandlers.parseElement(BpmnParseHandlers.java:73)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.transformProcessDefinitions(BpmnParse.java:367)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:190)
… 26 more


I think you should use a ":" instead of a ",", when delimiting the choices of the inline-if ('approved':'disapproved. Sorry')

ismail1
Champ in-the-making
Champ in-the-making
Thanks Frederick,
in my case, logs are printed to server console,  it doesn't include xml parse errors…
here is my console log when deploying, (at screen error message 'xml parse error' is displayed…)
Are those logs you pasted here taken from console log, how can i achieve my console prints xml parse errors too? or are there any log files, should i increase log level to debug for some packages or so?
<code>
Dec 13, 2013 10:41:22 AM 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:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
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: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)
</code>

frederikherema1
Star Contributor
Star Contributor
Since the error is logged, I recon the cause should be logged as well (I don't see the root of the stack pasted below, so perhaps you're missing a part). Log-level doesn't influence the depth of exceptions logged. What about catalina.out and localhost.log?

imbaczek
Champ in-the-making
Champ in-the-making
Related: I have similar problems when using the KIS editor. Sometimes I get exceptions like this:

17:13:55,818 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) java.lang.NullPointerException

17:13:55,822 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at org.activiti.editor.language.json.converter.BpmnJsonConverter.retrieveAttachedRefObject(BpmnJsonConverter.java:487)

17:13:55,828 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at org.activiti.editor.language.json.converter.BpmnJsonConverter.postProcessElements(BpmnJsonConverter.java:470)

17:13:55,833 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at org.activiti.editor.language.json.converter.BpmnJsonConverter.convertToBpmnModel(BpmnJsonConverter.java:373)

17:13:55,839 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel.deployModelerModel(EditorProcessDefinitionDetailPanel.java:344)

17:13:55,844 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel.deployModel(EditorProcessDefinitionDetailPanel.java:278)

17:13:55,849 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel$1.valueChange(EditorProcessDefinitionDetailPanel.java:162)

17:13:55,854 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at sun.reflect.GeneratedMethodAccessor332.invoke(Unknown Source)

17:13:55,858 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

17:13:55,863 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at java.lang.reflect.Method.invoke(Method.java:606)

17:13:55,868 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)  at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)

Good luck figuring out what's wrong here…

frederikherema1
Star Contributor
Star Contributor
It's all open-source, so it's not that hard to figure out what is wrong if you take some time…