-
Bug
-
Resolution: Done
-
Major
-
jBPM 4.3
-
None
When attempting to deploy a process definition containing an invalid script element, the ScriptBinding throws a NPE rather than giving a meaningful error. This manifests itself as other unrelated errors that make no sense.
Caused by: java.lang.NullPointerException
at org.jbpm.pvm.internal.util.XmlUtil.getContentText(XmlUtil.java:237)
at org.jbpm.jpdl.internal.activity.ScriptBinding.parseJpdl(ScriptBinding.java:56)
at org.jbpm.jpdl.internal.activity.JpdlBinding.parse(JpdlBinding.java:52)
at org.jbpm.jpdl.internal.xml.JpdlParser.parseActivities(JpdlParser.java:317)
at org.jbpm.jpdl.internal.xml.JpdlParser.parseDocumentElement(JpdlParser.java:248)
at org.jbpm.pvm.internal.xml.Parser.parseDocument(Parser.java:476)
at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:396)
at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
at org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:68)
at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)