Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-3275

Improve Exception when "camunda_source" variable is not set for XSLT Transformer

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3.0, 7.2.3, 7.3.0-alpha1
    • Component/s: None
    • Labels:
      None

      Description

      Currently you get a NPE without any clue what the problem is. If the camunda_source is not present a proper exception indicating the problem should be thrown.


      Existing NPE:
      java.lang.NullPointerException
      at org.camunda.commons.utils.IoUtil.stringAsInputStream(IoUtil.java:58)
      at org.camunda.bpm.extension.xslt.XsltScriptEngine.evaluate(XsltScriptEngine.java:106)
      at org.camunda.bpm.extension.xslt.XsltCompiledScript.eval(XsltCompiledScript.java:41)
      at javax.script.CompiledScript.eval(CompiledScript.java:92)
      at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluateScript(SourceExecutableScript.java:82)
      at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.execute(SourceExecutableScript.java:54)
      at org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:84)
      at org.camunda.bpm.engine.impl.scripting.ScriptValueProvider.getValue(ScriptValueProvider.java:35)

        Attachments

          Activity

            People

            Assignee:
            sebastian.menski Sebastian Menski
            Reporter:
            ruecker Bernd Rücker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: