-
1. Re: Designer loading problem in drools-guvnor
tsurdilovic Jul 18, 2011 11:55 AM (in response to tomcheng76)I am not able to reproduce the issue. Evaluations2.bpmn round-trips fine in the oryx web designer (1.0.0.053 and pretty sure would in 052 as well). Show you entire error in server logs. Most likely is that you are using an older Guvnor version. If you use 1.0.0.053 you need to use Guvnor from master currently (build it yourself).
Thanks.
-
2. Re: Designer loading problem in drools-guvnor
tomcheng76 Jul 18, 2011 9:55 PM (in response to tsurdilovic)Do you mean this log ?
[code]
2011-07-19 09:31:27,345 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-4) SLF4J: Class path contains multiple SLF4J bindings.
2011-07-19 09:31:27,377 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-4) SLF4J: Found binding in [vfszip:/C:/dev2/jbpm-5.1/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
2011-07-19 09:31:27,377 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-4) SLF4J: Found binding in [vfszip:/C:/dev2/jbpm-5.1/jboss-5.1.0.GA/server/default/deploy/designer.war/WEB-INF/lib/slf4j-jdk14-1.5.6.jar/org/slf4j/impl/StaticLoggerBinder.class]
2011-07-19 09:31:27,377 ERROR [STDERR] (http-localhost%2F127.0.0.1-8080-4) SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2011-07-19 09:31:28,719 INFO [org.oryxeditor.server.EditorHandler] (http-localhost%2F127.0.0.1-8080-4) The diagram editor is running in development mode. Javascript will be served uncompressed
2011-07-19 09:31:28,736 INFO [org.oryxeditor.server.EditorHandler] (http-localhost%2F127.0.0.1-8080-4) Performing diagram information pre-processing steps.
2011-07-19 09:31:28,808 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) INFO 19-07 09:31:28,808 (NilAuthenticator.java:authenticate:35) All users are guests.
2011-07-19 09:31:30,357 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) INFO 19-07 09:31:30,356 (NilAuthenticator.java:authenticate:35) All users are guests.
2011-07-19 09:31:30,687 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost%2F127.0.0.1-8080-4) Successfully deleted file :C:\dev2\jbpm-5.1\jboss-5.1.0.GA\server\default\tmp\3j001-x3p0z4-gq956v1c-1-gq95841e-9v\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
2011-07-19 09:31:30,744 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost%2F127.0.0.1-8080-4) Created file:C:\dev2\jbpm-5.1\jboss-5.1.0.GA\server\default\tmp\3j001-x3p0z4-gq956v1c-1-gq95841e-9v\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
2011-07-19 09:31:34,340 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-1) INFO 19-07 09:31:34,339 (NilAuthenticator.java:authenticate:35) All users are guests.
2011-07-19 09:50:04,685 INFO [org.oryxeditor.server.EditorHandler] (http-localhost%2F127.0.0.1-8080-1) Performing diagram information pre-processing steps.
2011-07-19 09:50:04,714 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-4) INFO 19-07 09:50:04,714 (NilAuthenticator.java:authenticate:35) All users are guests.
2011-07-19 09:50:04,759 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-4) INFO 19-07 09:50:04,758 (NilAuthenticator.java:authenticate:35) All users are guests.
2011-07-19 09:50:04,856 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost%2F127.0.0.1-8080-1) Successfully deleted file :C:\dev2\jbpm-5.1\jboss-5.1.0.GA\server\default\tmp\3j001-x3p0z4-gq956v1c-1-gq95841e-9v\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
2011-07-19 09:50:04,864 INFO [com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit] (http-localhost%2F127.0.0.1-8080-1) Created file:C:\dev2\jbpm-5.1\jboss-5.1.0.GA\server\default\tmp\3j001-x3p0z4-gq956v1c-1-gq95841e-9v\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
2011-07-19 09:50:06,419 INFO [STDOUT] (http-localhost%2F127.0.0.1-8080-4) INFO 19-07 09:50:06,419 (NilAuthenticator.java:authenticate:35) All users are guests.
[/code]
-
3. Re: Designer loading problem in drools-guvnor
tsurdilovic Jul 19, 2011 12:22 AM (in response to tomcheng76)Sure, that's your server log and there are no exceptions while parsing the bpmn2 so is the diagram still not being displayed? What are the exact designer and guvnor versions used so I can try to reproduce? Your earlier post indicates that you may be running into some front-end issues...if you are on firefox do you see any errors in the error console?
-
4. Re: Designer loading problem in drools-guvnor
tomcheng76 Jul 19, 2011 3:05 AM (in response to tsurdilovic)Thanks for your reply
Firefox console shows this
namespace is undefined
[Break On This Error] var splitted = namespace.split("#", 1);
If i click About in guvnor, it shows Version 5.2.0.Final
This is my step of installation, i hope i didn't miss anything
1. extract jbpm-5.1.0.Final-installer-full.zip
2. ant install.demo
3. ant start.demo
4. ant stop.demo5. change build.properties
designer.version=1.0.0.053-jboss
designer.url=http://sourceforge.net/projects/jbpm/files/designer/designer-1.0.0.053
6. manually download designer-1.0.0.053-jboss.war and put it to lib
7. make a copy of the designer-1.0.0.053-jboss.war in jboss-5.1.0.GA\server\default\deploy and rename to designer.war
8. ant start.demoI don't want to reinstall jbpm because it doesn't help learning.
I am having this problem too
http://community.jboss.org/thread/169336?tstart=0
and reinstall will solve this problem but it happens again.... -
5. Re: Designer loading problem in drools-guvnor
tomcheng76 Jul 19, 2011 4:17 AM (in response to tomcheng76)I give up 053 and focus on 052, Here is the full step procedure to reproduce the problem (re-installation)
Re-download all packages if there isn't any problem (skip copying)
1. ant stop.demo
2. delete test.h2.db in C:\Users\username
3. re-extract jbpm-5.1.0.Final-installer-full.zip to a new directory
4. change build.propertiesjBPM.birt.download=true
5. Copy the following file to lib
birt-runtime-2_3_2_2.zip, eclipse-java-helios-SR2-win32.zip, GEF-SDK-3.6.2.zip, jboss-5.1.0.GA.zip6. Copy the h2.jar to db\driver
7. ant install.demo8. ant start.demo
9. open Guvnor and New BPMN2 Process inside
I tried chrome and firefox, cannot open the process...
-
6. Re: Designer loading problem in drools-guvnor
tsurdilovic Jul 20, 2011 11:51 AM (in response to tomcheng76)I just tested with jbpm 5.1 installer using all defaults (which includes 1.0.0.052 designer). Ran ant install.demo and ant start.demo then uploaded both Evaluation.bpmn and Evaluation2.bpmn from the jbpm-examples module. I am able to view and save the processes without any issues..and am also able to create new processes.
Tried debugging the javascript error you said you were getting in stencilsets.js. The exception you are getting really should not happen..this is really weird because I am not sure how to reproduce the problem.
Thanks.
-
7. Re: Designer loading problem in drools-guvnor
tomcheng76 Jul 21, 2011 5:15 AM (in response to tsurdilovic)Thanks for your effort.
More debugging info
stencilType = "BPMNDiagram"
this.id = "Definition"ORYX.Core.StencilSet._StencilSetNSByEditorInstance = Object { Definition=[1]}
ORYX.Core.StencilSet._StencilSetNSByEditorInstance[editorId] = [undefined]
i really don't understand why it is not working...even after re-installnation...
my java is "1.6.0_25"...
Not sure why the json file is not complete though, hope it is the root of the problem
jbpm-installer\jboss-5.1.0.GA\server\default\tmp\3j001-1lfrgo-gqdfdf7r-1-gqdffoc5-9v\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
-
8. Re: Designer loading problem in drools-guvnor
tsurdilovic Jul 21, 2011 12:32 PM (in response to tomcheng76)I have not seen this before. There is no reason the bpmn2.0jbpm.json file should abruptly stop like in your pasted code. When you open the designer, this file get's generate from a default template and workitem configurations present in guvnor (which I assume you have none).
Can you try opening the designer in browser outside of guvnor (http://localhost:8080/designer/editor?profile=jbpm&uuid=12345&pp=) and hook up a javascript debugger to see what you get?
-
9. Re: Designer loading problem in drools-guvnor
tomcheng76 Jul 21, 2011 11:26 PM (in response to tsurdilovic)Same error as above.
Though this.id changed to 12345.
I tried replace the bpmn2.0jbpm.json file with the original one in the war, but it is re-generated with a broken json once i open the designer...
what is the mechanism behind the re-generation? can i suspend it ?
-
10. Re: Designer loading problem in drools-guvnor
tsurdilovic Jul 22, 2011 9:05 AM (in response to tomcheng76)Sorry I have not seen this error reported before and have not had it happem during tests. Wonder if it's specific to Windows? The template file used to generate the bpmn2.0jbpm.json is
/stencilsets/bpmn2.0jbpm/stencildata/bpmn2.0jbpm.orig
You may want to try to replace that one with the data of the original bpmn2.0jbpm.json and see if that helps, but again I'm not sure why the generation fails (you cannot turn it off right now btw.). What is the Guvnor version used?
-
11. Re: Designer loading problem in drools-guvnor
tomcheng76 Jul 25, 2011 12:35 AM (in response to tsurdilovic)I checked the orig file and it is correct with filesize 166KB
Generated json is 14KB
Of coz replacing file is not working
I just added the JBOSS AS to eclipse, the error log is this
12:25:54,770 INFO [STDOUT] (null: -1, -1): Premature end of file.
12:25:54,893 INFO [EditorHandler] Performing diagram information pre-processing steps.
12:25:54,899 INFO [STDOUT] INFO 25-07 12:25:54,898 (NilAuthenticator.java:authenticate:35) All users are guests.
12:25:54,931 INFO [STDOUT] INFO 25-07 12:25:54,930 (NilAuthenticator.java:authenticate:35) All users are guests.
12:25:54,946 INFO [JbpmPreprocessingUnit] Successfully deleted file :C:\dev2\jbpm-installer\jboss-5.1.0.GA\server\default\tmp\3j001-uwg1d4-gqiwbuae-1-gqiwdmtq-9u\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
12:25:54,947 INFO [JbpmPreprocessingUnit] Created file:C:\dev2\jbpm-installer\jboss-5.1.0.GA\server\default\tmp\3j001-uwg1d4-gqiwbuae-1-gqiwdmtq-9u\designer.war\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
12:25:55,454 INFO [STDOUT] INFO 25-07 12:25:55,453 (NilAuthenticator.java:authenticate:35) All users are guests.
12:25:55,500 INFO [STDOUT] (null: -1, -1): Premature end of file.
Is there a way to adjust the log level or setting a breakpoint so that i can further investigate the source of the problem?
Which file should i set the breakpt to ?My Guvnor version is 5.2.0.Final. thanks
-
12. Re: Designer loading problem in drools-guvnor
tsurdilovic Jul 25, 2011 8:01 AM (in response to tomcheng76)The difference in the file size is not really an issue. The generated file size can be smaller or much bigger depending on how many custom workitem definitions are found in your guvnor repository in the package you create your process in. In case you do not have any workitem definitions, the file size of the created json is actually smaller as the .orig ..this is fine.
As far as log levels, check out this post with one answer -> http://community.jboss.org/thread/150803.
Hope this helps.
-
13. Re: Designer loading problem in drools-guvnor
floraly Oct 27, 2011 8:53 AM (in response to tsurdilovic)Hi Tihomir,
I also got the same problem when deploying to Solaris server. When I deployed under my PC, it is fine.
I compared the console logs between solaris server and my localPC and found that:
HTTP Get to http://167.0.0.45:8080/designer/stencilset/bpmn2.0jbpm acturally returns nothing which cause:
namespace is undefined
var splitted = namespace.split("#", 1);
Then I check the doGet() method of EditorHandler.java and found that it used the fixed path /designer/XXX. It seems that addScript() didnt find the javascipt files
I suspect that the path cannot be located in my deployment although I didnt change the folder structure in designer.war.
Tommy, do you have any other findings?
-
14. Re: Designer loading problem in drools-guvnor
tsurdilovic Oct 27, 2011 10:17 AM (in response to floraly)Are you by chance deploying web designer as an exploded war in dev and as a .war file in production? I am suspecting that in EditorServlet.java:
[code]
private static String readEnvFiles(ServletContext context) throws IOException {
FileInputStream core_scripts = new FileInputStream(
context.getRealPath("/js/js_files.json"));
....
[/code]
context.getRealPath() is returning null for some reason...could you check to make sure?
Try to deploy as an exploded war in prod and let me know if that fixes the problem.
Thanks.