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

    • Task
    • Resolution: Fixed
    • L3 - Default
    • 7.3.0, 7.2.3, 7.3.0-alpha1
    • None
    • None
    • 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)

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              sebastian.menski Sebastian Menski
              ruecker Bernd Ruecker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce