java.lang.NoSuchMethodError: org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;

Pentaho BI Platform Tracking | David Kincade | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Repro path: Create new report. Add Pentaho Data Integration datasource Click "Add" on the Kettle Data Source dialog to add a new query For the file, browse and add "pentaho-solutions/bi-developers/etl/sample.ktr" Click preview ... the preview works, but the following stack trace is dumped out... ERROR 26-08 11:05:34,269 - RepositoriesMeta - Error opening file: /home/dkincade/.kettle/repositories.xml : java.io.FileNotFoundException: /home/dkincade/.kettle/repositories.xml (No such file or directory) INFO 26-08 11:05:34,443 - Trans - Dispatching started for filename [/home/dkincade/pentaho/platform/3.5.0-RC2/biserver-ee/pentaho-solutions/bi-developers/etl/sample.ktr] INFO 26-08 11:05:34,452 - Trans - This transformation can be replayed with replay date: 2009/08/26 11:05:34 INFO 26-08 11:05:34,459 - XML Output.0 - Opening output stream in encoding: UTF-8 INFO 26-08 11:05:35,152 - QUADRANT_ACTUALS.0 - Finished reading query, closing connection. INFO 26-08 11:05:35,161 - Filter rows.0 - Finished processing (I=0, O=0, R=148, W=5, U=0, E=0) ERROR 26-08 11:05:35,166 - Java Script Value.0 - Unexpected error : ERROR 26-08 11:05:35,167 - Java Script Value.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:171) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:667) at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:731) INFO 26-08 11:05:35,168 - Java Script Value.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) INFO 26-08 11:05:35,175 - Kettle - Transformation detected one or more steps with errors. INFO 26-08 11:05:35,175 - Kettle - Transformation is killing the other steps! INFO 26-08 11:05:35,179 - QUADRANT_ACTUALS.0 - Finished processing (I=148, O=0, R=0, W=148, U=0, E=0)

    Pentaho BI Platform Tracking | 8 years ago | David Kincade
    java.lang.NoSuchMethodError: org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;
  2. 0

    Repro path: Create new report. Add Pentaho Data Integration datasource Click "Add" on the Kettle Data Source dialog to add a new query For the file, browse and add "pentaho-solutions/bi-developers/etl/sample.ktr" Click preview ... the preview works, but the following stack trace is dumped out... ERROR 26-08 11:05:34,269 - RepositoriesMeta - Error opening file: /home/dkincade/.kettle/repositories.xml : java.io.FileNotFoundException: /home/dkincade/.kettle/repositories.xml (No such file or directory) INFO 26-08 11:05:34,443 - Trans - Dispatching started for filename [/home/dkincade/pentaho/platform/3.5.0-RC2/biserver-ee/pentaho-solutions/bi-developers/etl/sample.ktr] INFO 26-08 11:05:34,452 - Trans - This transformation can be replayed with replay date: 2009/08/26 11:05:34 INFO 26-08 11:05:34,459 - XML Output.0 - Opening output stream in encoding: UTF-8 INFO 26-08 11:05:35,152 - QUADRANT_ACTUALS.0 - Finished reading query, closing connection. INFO 26-08 11:05:35,161 - Filter rows.0 - Finished processing (I=0, O=0, R=148, W=5, U=0, E=0) ERROR 26-08 11:05:35,166 - Java Script Value.0 - Unexpected error : ERROR 26-08 11:05:35,167 - Java Script Value.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:171) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:667) at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:731) INFO 26-08 11:05:35,168 - Java Script Value.0 - Finished processing (I=0, O=0, R=1, W=0, U=0, E=1) INFO 26-08 11:05:35,175 - Kettle - Transformation detected one or more steps with errors. INFO 26-08 11:05:35,175 - Kettle - Transformation is killing the other steps! INFO 26-08 11:05:35,179 - QUADRANT_ACTUALS.0 - Finished processing (I=148, O=0, R=0, W=148, U=0, E=0)

    Pentaho BI Platform Tracking | 8 years ago | David Kincade
    java.lang.NoSuchMethodError: org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.mozilla.javascript.ContextFactory.enterContext()Lorg/mozilla/javascript/Context;

      at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues()
    2. org.pentaho.di
      ScriptValuesMod.run
      1. org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:171)
      2. org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:667)
      3. org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2889)
      4. org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:731)
      4 frames