cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie again - show diagram....

jchildress
Champ in-the-making
Champ in-the-making
I've deployed a simple process and it "works" fine, but when I click the "Show Diagram" button I get the following….


16:13:16,765  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: no resource found with name 'simple_service.activiti.helloworld.png' in deployment '510'
org.activiti.engine.ActivitiException: no resource found with name 'simple_service.activiti.helloworld.png' in deployment '510'
       at org.activiti.engine.impl.cmd.GetDeploymentResourceCmd.execute(GetDeploymentResourceCmd.java:49)
       at org.activiti.engine.impl.cmd.GetDeploymentResourceCmd.execute(GetDeploymentResourceCmd.java:27)
       at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
       at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:37)
       at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
       at org.activiti.engine.impl.RepositoryServiceImpl.getResourceAsStream(RepositoryServiceImpl.java:68)
       at org.activiti.rest.api.repository.DeploymentResourceGet.executeStreamingWebScript(DeploymentResourceGet.java:37)
       at org.activiti.rest.util.ActivitiStreamingWebScript.execute(ActivitiStreamingWebScript.java:65)
       at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
       at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
       at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
       at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
       at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
       at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
       at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
       at java.lang.Thread.run(Thread.java:662)

I've attached my bpmn file…

I guess my basic question is if anyone has the "auto" diagram working for them?

thanks,

John
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
When I deploy your process with probe, and click on 'show diagram' in Explorer, it just works.

(note I tested on 5.3)

jchildress
Champ in-the-making
Champ in-the-making
I'm on 5.2 

can I get/try 5.3?

thanks,

John

jchildress
Champ in-the-making
Champ in-the-making
Ok, I was looking for some help on loading forms and I came across a post that mentioned the deployment table "ACT_GE_RESOURCE_".  I don't have that table, but found "ACT_GE_BYTEARRAY" which seemed similar.  Anyway that table had a reference to a ".png" file for my process that I didn't "upload/insert".  Once I deleted that entry the diagram was created/generated as advertised.

I'm using 5.2 on Windows with MS SQL Server.

Any idea why that ".png" file entry was inserted?

thanks,

John

jbarrez
Star Contributor
Star Contributor
@jchildress: we're currently testing the 5.3. If all goes well, it is online tomorrow.
But it sure is strange, because not much has changed in that area from 5.2-> 5.3

@John: If your process has Diagram Interchange information (eg coming from Modeler/Designer), then a png will be automatically created when deploying the process. That will probably be the png that you are seeing.

jchildress
Champ in-the-making
Champ in-the-making
So dumb question…  I need the Diagram Interchange information right?  If the diagram is to be auto-generated…

Can I control how the name of the png file that is generated is created?  That way the deployment process would/could name the file "correctly"?

John

jbarrez
Star Contributor
Star Contributor
@John: Yes, your process needs diagram interchange information if you want the diagram to be auto-rendered.
The png name will also be automatically determined based on your process definition, so there is no need to change it.