cancel
Showing results for 
Search instead for 
Did you mean: 

Why is there no any Diagram Resource when I deploy process?

croc1
Champ in-the-making
Champ in-the-making
hi!~
Why is there no any Diagram Resource when I deploy process….

1.create process definition diagram.
2.deploy this process definition.
but…
Windows:
[attachment=0]w.png[/attachment]

Linux:

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.activiti.engine.ActivitiException: resourceName is null
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
   org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

root cause

org.activiti.engine.ActivitiException: resourceName is null
   org.activiti.engine.impl.cmd.GetDeploymentResourceCmd.execute(GetDeploymentResourceCmd.java:44)
   org.activiti.engine.impl.cmd.GetDeploymentResourceCmd.execute(GetDeploymentResourceCmd.java:28)
   org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
   org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
   org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
   org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
   org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
   org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   org.activiti.engine.impl.RepositoryServiceImpl.getResourceAsStream(RepositoryServiceImpl.java:71)
—————————————————————
and I see .on linux, there is nothing  Diagram Resource in act_ge_bytearray table when I deployed process


Thank u.
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Do you see errors when you engine boots? Make sure an X11 environment is available for java.awt.* to do image-generation.

Also, with what diagram tool did you create the diagram? Seems strange rendering…

croc1
Champ in-the-making
Champ in-the-making
no exception when server boot
strange because the coordinate not calculated well..


but..When I start a process.
and trace the process. the strange is that Diagram is rendering…

[attachment=0]w.png[/attachment]

why? Smiley Surprisedops:  Smiley Surprisedops:  Smiley Surprisedops:  Smiley Surprisedops:

frederikherema1
Star Contributor
Star Contributor
Again, what tool did you create the diagram with? Perhaps attach/post the BPMN20.xml…

croc1
Champ in-the-making
Champ in-the-making

<?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="11">
<process id="process1340244996260" name="xxx">
  <startEvent id="startEvent1340244996261" name="startEvent" />
  <userTask id="userTask1340244996261" name="P1"
   activiti:assignee="${nextUserId}">
  </userTask>
  <endEvent id="endEvent1340244996261" name="endEvent" />
  <sequenceFlow id="sequenceFlow1340244996261" name="sequenceFlow"
   sourceRef="startEvent1340244996261" targetRef="userTask1340244996261">
   <conditionExpression><![CDATA[${rollbackTag==null}]]></conditionExpression>
  </sequenceFlow>
  <sequenceFlow id="sequenceFlow1340244996262" name="sequenceFlow"
   sourceRef="userTask1340244996261" targetRef="endEvent1340244996261">
   <conditionExpression><![CDATA[${rollbackTag==null}]]></conditionExpression>
  </sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_process1340244996260">
  <bpmndi:BPMNPlane bpmnElement="process1340244996260"
   id="BPMNPlane_process1340244996260">
   <bpmndi:BPMNShape bpmnElement="startEvent1340244996261"
    id="BPMNShape_startEvent1340244996261">
    <omgdc:Bounds height="34" width="34" x="89" y="101" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape bpmnElement="userTask1340244996261"
    id="BPMNShape_userTask1340244996261">
    <omgdc:Bounds height="39" width="99" x="238" y="99" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape bpmnElement="endEvent1340244996261"
    id="BPMNShape_endEvent1340244996261">
    <omgdc:Bounds height="34" width="34" x="484" y="103" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge bpmnElement="sequenceFlow1340244996261"
    id="BPMNEdgeEle_sequenceFlow1340244996261">
    <omgdi:waypoint x="106" y="118" />
    <omgdi:waypoint x="238" y="118" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge bpmnElement="sequenceFlow1340244996262"
    id="BPMNEdgeEle_sequenceFlow1340244996262">
    <omgdi:waypoint x="288" y="119" />
    <omgdi:waypoint x="484" y="120" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

that Diagram designer is our development..with VML.