9 Replies Latest reply on May 3, 2014 11:46 PM by catimage

    Unable to generate PNG document from the Web Designer 2.0.

    vsarmien

      We have just installed jBPM 5.2 from the full installer (jbpm-5.2.0.Final-installer-full.zip) on Windows.  We haven't been able to generate the PNG document from the Web Designer 2.0.  If we use the options "Share Process Image" from the top toolbar, we get the following error message: "Failed to create the process image".

       

      If we use the PNG button at the bottom of the Web Designer,  we get the following error messages.  (I have included the error shown on the web page, as well as the error shown in the server.log file)

       

      ERROR MESSAGE IN DESIGNER

      =========================

      File not found

       

      Firefox can't find the file at http://localhost:8080/designer/transformer?uuid=4ce60bdb-18e0-4580-9ad3-0b40e28bb0bb&profile=jbpm.

       

       

      DETAILS FROM SERVER.LOG

      ========================

       

      14:36:06,075 SEVERE [com.intalio.web.server.TransformerServlet] (http-localhost-127.0.0.1-8080-4) Server returned HTTP response code: 505 for URL: http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/Test Process/source/

       

      14:36:06,076 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) java.io.IOException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found

       

      14:36:06,076 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)

       

      14:36:06,077 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)

       

      14:36:06,077 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)

       

      14:36:06,077 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)

       

      14:36:06,077 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)

       

      14:36:06,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)

       

      14:36:06,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:196)

       

      14:36:06,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

       

      14:36:06,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      14:36:06,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

       

      14:36:06,079 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

       

      14:36:06,079 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)

       

      14:36:06,079 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

       

      14:36:06,079 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

       

      14:36:06,079 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

       

      14:36:06,080 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

       

      14:36:06,080 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)

       

      14:36:06,080 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

       

      14:36:06,080 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

       

      14:36:06,080 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

       

      14:36:06,081 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

       

      14:36:06,081 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

       

      14:36:06,081 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

       

      14:36:06,081 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)

       

      14:36:06,082 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)

       

      14:36:06,082 ERROR [stderr] (http-localhost-127.0.0.1-8080-4)    at java.lang.Thread.run(Thread.java:662)

        • 1. Re: Unable to generate PNG document from the Web Designer 2.0.
          tsurdilovic

          Thanks for reporting the issue! As mentioned on your other post regarding generation of process PDF, replace your designer war with the one here: http://people.redhat.com/tsurdilo/designer/master/ and let me know if you are still running into any problems.

          • 2. Re: Unable to generate PNG document from the Web Designer 2.0.
            vsarmien

            Thank you very much Tihomir.  It worked perfectly!

            • 3. Re: Unable to generate PNG document from the Web Designer 2.0.
              w39hh

              Thanks. Had the same issue, the version of the war provided by Tihomir solved it.

              • 4. Re: Unable to generate PNG document from the Web Designer 2.0.
                tsurdilovic

                Glad to hear. As soon as we accumulate a number of  fixes we can/will release 2.1 ... so keep reporting !

                • 5. Re: Unable to generate PNG document from the Web Designer 2.0.
                  a_nat

                  Hi Tihomir,

                   

                  First of all thanks for the jar. I tried the jar mentioned in this file, it worked for small processes which din't cross the canvas, but while i tried to share the image for a large file, I got this error.

                   

                   

                  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/designer].[TransformerServlet]] (http-localhost-127.0.0.1-8080-4) Servlet.service() for servlet TransformerServlet threw exception: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.TruncatedFileException from [Module "deployment.designer-2.0-jboss7_png_fix.war:main" from Service Module Loader]
                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
                  .....

                  .....

                   

                  Also While I tried the PNG button at the bottom of the page, I just kept waiting as the server did not respond.

                  I just got this line in the server log, but i din't had any problems trying to access to the url...

                  15:52:36,804 SEVERE [com.intalio.web.server.TransformerServlet] (http-localhost-127.0.0.1-8080-16) Server returned HTTP response code: 505 for URL: http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/Create Lending Prospect/source/

                   

                  I'm not sure why the resource is not accessible whether its because of the space in the file name or because the file is large.

                   

                  So, I got the process image from eclipse and uploaded it to guvnor, but I don't get that in my process definition (http://localhost:8080/gwt-console-server/rs/process/definitions)

                   

                  {"definitions":[{"id":"LEND.PROSPECT.ONBOARD","name":"Lending Prospect Onboarding","version":0,"packageName":"defaultPackage","deploymentId":"N/A","suspended":false},{"id":"Test2Id","name":"Test2","version":0,"packageName":"defaultPackage","deploymentId":"N/A","suspended":false,"formUrl":"http://localhost:8080/gwt-console-server/rs/form/process/Test2Id/render","diagramUrl":"http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST/Test2Id-image.png"},{"id":"com.sample.evaluation","name":"Evaluation","version":0,"packageName":"defaultPackage","deploymentId":"N/A","suspended":false,"formUrl":"http://localhost:8080/gwt-console-server/rs/form/process/com.sample.evaluation/render","diagramUrl":"vfs:/D:/JBPM_POC/jBPM5.2/content/jbpm-gwt-console-server.war/WEB-INF/lib/jbpm-gwt-graph-5.2.0.Final.jar/com.sample.evaluation.png"}]}

                   

                  I have the image file for the process with id LEND.PROSPECT.ONBOARD in the default package (name of the file being LEND.PROSPECT.ONBOARD-image.png) , but i can't see that in the process definition even after building the pacakge.

                   

                  Any ideas / fixes  will be very helpful.

                   

                  Thanks & Regards,

                  Aparna


                   

                  • 6. Re: Unable to generate PNG document from the Web Designer 2.0.
                    tsurdilovic

                    Can you attach your process BPMN2 so I can test? There are some issues currently with expanding the default stencil set width/height which we are working on.

                    • 7. Re: Unable to generate PNG document from the Web Designer 2.0.
                      a_nat

                      The BPMN is attached along and it uses a workitem whose definition goes like this.

                       

                       

                       

                      import org.drools.process.core.datatype.impl.type.StringDataType;

                       

                      [

                      // the Notification work item

                      [

                      "name" : "ManualTask",

                      "parameters" : [

                      "Actor" : new StringDataType(),

                      "Comment" : new StringDataType(),

                      ],

                      "displayName" : "Manual Task",

                      "icon" : "icons/manual_task.jpg"

                      ]

                       

                      ]

                       

                      Regards,

                      Aparna

                      • 8. Re: Unable to generate PNG document from the Web Designer 2.0.
                        jpavic1

                        Hallo Tomislav !!

                        I have the same problem like Victor and the logs a the same.

                        File not found

                         

                        Firefox can't find the file at http://localhost:8080/designer/transformer?uuid=4ce60bdb-18e0-4580-9ad3-0b40e28bb0bb&profile=jbpm.

                         

                        I look in this site but do not find the solution how to fix it.

                        Can you help !!

                        Please

                        • 9. Re: Unable to generate PNG document from the Web Designer 2.0.
                          catimage

                          Hi Victor,

                           

                          Good to hear that it's resolved. When I first encountered this issue, I thought I did something wrong. Didn't know how to work this out so I tested another little tool to create png. Now that I find this post here, thanks!

                           

                          Regards,

                          Catherine