Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2882

NPE when parsing invalid script activity xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jBPM 4.4
    • jBPM 4.3
    • Runtime Engine
    • 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)

              swiderski.maciej Maciej Swiderski (Inactive)
              gubespam Mike M (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: