Guvnor 5.5 - Build package getting: unable to parse xml : Exception class java.lang.NullPointerException : null
kawest173713 Sep 12, 2013 6:18 PMI created a process definition thru Guvnor 5.5 using Web Designer 2.4. Placed the ArbitraryCycles workflow pattern into this process definition, and added a start and end node, as well as modified all of the tasks to be script tasks, to which I added println statements. Added conditions on the diverging gateways. Added some variables to be used in those conditions. Fixed up all the Simulation probabilities to not go over 100% for the diverging gateways. Did a "Validate process" on the process, which came back with no errros. Saved it in the defaultPackage.
When I view the process in the defaultPackage, the "Valid" column shows a red "X". next to the process name. But no indication as to what the problem is.
When I try and perform a "Build package" with this process, a line is displayed with the following text: "unable to parse xml : Exception class java.lang.NullPointerException : null". Nothing is displayed in the server log.
I've attached the process to this post.
It would be helpful if a) the validation would pick up whatever error that the build package is running into, and indicate what the problem is, or b) the build package gave more information as to what the problem is.
Any ideas on what in the process is causing this?
Also, when I transfer this process to Eclipse (Kepler, with the BPMN2 Modeler v 0.2.7, jBPM Eclipse Plugin 5.5), and try to run it via a simple Java test class, I get the following error there:
java.lang.NullPointerException
at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateNodes(RuleFlowProcessValidator.java:193)
at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateProcess(RuleFlowProcessValidator.java:117)
at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateProcess(RuleFlowProcessValidator.java:555)
at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:124)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:267)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:673)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:709)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:51)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:40)
at com.sample.ArbitraryCycleTest.readKnowledgeBase(ArbitraryCycleTest.java:43)
at com.sample.ArbitraryCycleTest.main(ArbitraryCycleTest.java:23)
62 12/09 16:55:21,641[main] ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase - ProcessLoadError: unable to parse xml : Exception class
java.lang.NullPointerException : null
java.lang.IllegalArgumentException: Could not parse knowledge.
at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:79)
at com.sample.ArbitraryCycleTest.readKnowledgeBase(ArbitraryCycleTest.java:44)
at com.sample.ArbitraryCycleTest.main(ArbitraryCycleTest.java:23)
I've attached the Java class as well.
Any help/pointers appreciated.
THX
Keith
-
ArbitraryCycleTest.java 1.5 KB