Uploaded image for project: 'Pentaho BA Platform'
  1. Pentaho BA Platform
  2. BISERVER-2029

Rhino jar delivered with platform is incompatible with version required by kettle.

    Details

    • Type: Bug
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.GA
    • Component/s: None
    • Labels:
      None
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      Got the following exception when trying to run audit reports in the platform:

      09:27:11,078 ERROR [0] Java Script Value 4.0 - java.lang.NoSuchMethodError: org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;
      at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:150)
      at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:640)
      at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2655)
      at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:703)

      The rhino enterContext() method being called by Kettle is a new method as of rhino 1.7. However if you look in the pentaho/WEB-INF/lib directory we appear to be delivering the rhino 1.6 jars (js-1.6R7.jar).

      The problem can be reproduced by starting the enterprise admin console and running, the Update Audit Reports from Table option from the Administration->Services tab.

      This is part of the reason for failure #3 reported in PPP-1055.

        Activity

        Hide
        jternent John Ternent (Inactive) added a comment -

        For more recent versions of Rhino, you need to change the way to get a Context :

        from

        Context.enter();

        to

        ContextFactory.getGlobal().enterContext();

        I think your effort just dropped to zero.

        Matt

        Show
        jternent John Ternent (Inactive) added a comment - For more recent versions of Rhino, you need to change the way to get a Context : from Context.enter(); to ContextFactory.getGlobal().enterContext(); I think your effort just dropped to zero. Matt

          People

          • Assignee:
            jternent John Ternent (Inactive)
            Reporter:
            arodriguez Angelo Rodriguez (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: