3 Replies Latest reply on Mar 10, 2012 2:07 PM by tsurdilovic

    bpmn2.0jbpm.json is Empty

      Hi

       

       

      I'm new to JBPM, and am trying to set up a working environment.

       

       

      I'm using Centos 6, Java SDK 7u3.

       

       

      I have tried using the installer, and that was largely successful, I'm now working through component by component.

       

       

      I've installed JBoss AS 7.0.2, as 7.1.0 didn't seem to want to play with JBPM.  I guess it is too new.

      I've installed mysql, and deployed drools-guvnor (I believe correctly) against mysql.  I'm using guvnor-distribution-wars-5.3.1.Final-jboss-as-7.0.war.  Context is drools-guvnor

      I've deployed Designer - designer-2.0-jboss7.war - under context designer.

       

       

      I created the sample app in Eclipse (the hello world one) and check the BPMN into Guvnor.  All good so far.

       

       

      In the Guvnor web UI, I find the BPMN, and try to open it in Designer - I get the "Please wait while loading..." message but nothing more.

      In the page, I get a JavaScript error:

      namespace is undefined

      var splitted = namespace.split("#", 1);

      In the server log I get:

      12:47:10,232 INFO  [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-5) Successfully deleted file :/opt/jboss/as/jboss_current/standalone/tmp/vfs/tempfffea734628e24ad/designer.war-f2ef12e22fa5851b/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json

      12:47:10,232 INFO  [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-5) Created file:/opt/jboss/as/jboss_current/standalone/tmp/vfs/tempfffea734628e24ad/designer.war-f2ef12e22fa5851b/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json

       

       

      The generated file bpmn2.0jbpm.json exists, has an appropriate last modified timestamp, but is empty.

       

       

      I notice on my server I installed using the installer, this file is populated, and contains namespace information, which is why, I guess, it works there but not on my new server.

       

       

      Other things:

      I'm using the default package in Guvnor.

      I have no credentials set - user logging in as guest.

       

       

      Other issues with the same symptoms don't seem to apply:

      - I'm using Chrome.

      - I have no special characters in my map.

       

       

      Does anyone have any ideas?

       

       

      Many thanks

       

       

      Tim

        • 1. Re: bpmn2.0jbpm.json is Empty

          Some fun debugging later.  It turns out that designer is shipped with a default stencil set:

           

          stencilsets/bpmn2.0jbpm/stencildata/bpmn2.0jbpm.orig

           

          It is this that other posts have been talking about saying it contains German characters.

           

          It also contains an English character that, as it turns out, the designer code that creates the bpmn2.0jbpm file specific to someones BPMN2 file cannot cope with.

           

          It appears the wonky code that can't parse funky characters is:

          com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit

           

          I haven't worked out what's wrong here.

           

          However I will upload my nice and clean of funky characters version of bpmn2.0jbpm.orig.

          • 2. Re: bpmn2.0jbpm.json is Empty
            tsurdilovic

            Would you be willing to contribute your changes back? We have recently removed the german translations from the stencil set until they are fixed. Adding your changes to the other characters would be nice to have for everyone. If you can point out the english character you mention in your post that's causing issues we could add it in master branch as well.

            • 3. Re: bpmn2.0jbpm.json is Empty
              tsurdilovic

              Let me know if this diff fixed the english characters: https://github.com/tsurdilo/process-designer/commit/d3aa6aa8b9a926c4e898427420e4e50e5cbf2f9d

               

              Again thats for your nice find!