Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7241

[pipes] Nashorn ScriptEngine in PipeBindings is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Pipes 1.0.4
    • Pipes 2.0.2
    • Extensions
    • None
    • java.runtime.name = Java(TM) SE Runtime Environment
      java.runtime.version = 1.8.0_144-b01

    Description

      Under some unclear circumstances the ScriptEngine in PipeBindings does not get initialized.
      There is a solution out there to attach Nashorn to the system bundle. Appart from that I was able to fix it by using a different constructor: ScriptEngineManager(null).

      The issue can be reproduced by deploying https://github.com/bcsott/migration-tool

      When it fails the following is written to stderror.log:
      ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory:
      Provider jdk.nashorn.api.scripting.NashornScriptEngineFactory not found

      Attachments

        1. error.log
          14 kB
          Björn Csott

        Issue Links

          Activity

            People

              npeltier Nicolas Peltier
              bcsott Björn Csott
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: