javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]!

Pentaho BI Platform Tracking | Kevin Owocki | 2 years ago
  1. 0

    When one tries to use the 'JSON Input' step on a large JSON blob, the following intermittent exception is received: {code} 2014/12/08 12:05:48 - Json Input.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected Error : org.pentaho.di.core.exception.KettleException: 2014/12/08 12:05:48 - Json Input.0 - Error parsing string [javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]! 2014/12/08 12:05:48 - Json Input.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : org.pentaho.di.core.exception.KettleException: 2014/12/08 12:05:48 - Json Input.0 - Error parsing string [javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]! 2014/12/08 12:05:48 - Json Input.0 - 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonReader.readString(JsonReader.java:147) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.parseJson(JsonInput.java:272) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.readFileOrString(JsonInput.java:258) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.ReadNextString(JsonInput.java:165) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.getOneRow(JsonInput.java:396) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.processRow(JsonInput.java:344) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2014/12/08 12:05:48 - Json Input.0 - at java.lang.Thread.run(Thread.java:701) 2014/12/08 12:05:48 - Import sta_weather_data - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Errors detected! 2014/12/08 12:05:51 - Import sta_weather_data - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Errors detected! 2014/12/08 12:05:51 - Kitchen - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Finished with errors {code} The Suggested workaround, as noted <a href="http://forums.pentaho.com/showthread.php?89304-Job-runs-fine-in-Spoon-but-not-in-Kettle-Exceeds-64K-in-Json-Input-step">here</a> is to move the JSON parser into a 'Modified JavaScript Value' step and to set the Optimization level to 0. This workaround does not work, however, if one is expecting multiple results per row of JSON Input, as one cannot define an undefined number of output fields for 'Modified JavaScript Value' steps. ie. if 'Repeat' is set to 'Y' on the Fields tab (ex: http://bits.owocki.com/image/4241363f413p/Screen%20Shot%202014-12-08%20at%201.43.05%20PM.png ) of the JSON Input settings. The solution here would be to allow ETL writer to be able to set the optimization level of the 'JSON Input' Step

    Pentaho BI Platform Tracking | 2 years ago | Kevin Owocki
    javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]!
  2. 0

    When one tries to use the 'JSON Input' step on a large JSON blob, the following intermittent exception is received: {code} 2014/12/08 12:05:48 - Json Input.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Unexpected Error : org.pentaho.di.core.exception.KettleException: 2014/12/08 12:05:48 - Json Input.0 - Error parsing string [javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]! 2014/12/08 12:05:48 - Json Input.0 - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : org.pentaho.di.core.exception.KettleException: 2014/12/08 12:05:48 - Json Input.0 - Error parsing string [javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]! 2014/12/08 12:05:48 - Json Input.0 - 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonReader.readString(JsonReader.java:147) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.parseJson(JsonInput.java:272) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.readFileOrString(JsonInput.java:258) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.ReadNextString(JsonInput.java:165) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.getOneRow(JsonInput.java:396) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.steps.jsoninput.JsonInput.processRow(JsonInput.java:344) 2014/12/08 12:05:48 - Json Input.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2014/12/08 12:05:48 - Json Input.0 - at java.lang.Thread.run(Thread.java:701) 2014/12/08 12:05:48 - Import sta_weather_data - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Errors detected! 2014/12/08 12:05:51 - Import sta_weather_data - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Errors detected! 2014/12/08 12:05:51 - Kitchen - ERROR (version 5.1.0.0, build 1 from 2014-06-19_19-02-57 by buildguy) : Finished with errors {code} The Suggested workaround, as noted <a href="http://forums.pentaho.com/showthread.php?89304-Job-runs-fine-in-Spoon-but-not-in-Kettle-Exceeds-64K-in-Json-Input-step">here</a> is to move the JSON parser into a 'Modified JavaScript Value' step and to set the Optimization level to 0. This workaround does not work, however, if one is expecting multiple results per row of JSON Input, as one cannot define an undefined number of output fields for 'Modified JavaScript Value' steps. ie. if 'Repeat' is set to 'Y' on the Fields tab (ex: http://bits.owocki.com/image/4241363f413p/Screen%20Shot%202014-12-08%20at%201.43.05%20PM.png ) of the JSON Input settings. The solution here would be to allow ETL writer to be able to set the optimization level of the 'JSON Input' Step

    Pentaho BI Platform Tracking | 2 years ago | Kevin Owocki
    javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]!
  3. 0

    CoffeeScript support does not work

    GitHub | 3 years ago | walterhiggins
    javax.script.ScriptException: sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling function "null": generated bytecode for method exceeds 64K limit. (#8) in at line number 8
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to start a program via JavaScript from within a Java Application?

    Stack Overflow | 6 years ago | Gruber
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "ActiveXObject" is not defined. (<Unknown source>#1) in <Unknown source> at line number 1
  6. 0

    Error using box command

    GitHub | 2 years ago | slooker
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.JavaScriptException: [object Error] (<Unknown source>#630) in <Unknown source> at line number 630

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.script.ScriptException

      sun.org.mozilla.javascript.EvaluatorException: Encountered code generation error while compiling script: generated bytecode for method exceeds 64K limit. (<Unknown source>#1) in <Unknown source> at line number 1]!

      at org.pentaho.di.trans.steps.jsoninput.JsonReader.readString()
    2. org.pentaho.di
      RunThread.run
      1. org.pentaho.di.trans.steps.jsoninput.JsonReader.readString(JsonReader.java:147)
      2. org.pentaho.di.trans.steps.jsoninput.JsonInput.parseJson(JsonInput.java:272)
      3. org.pentaho.di.trans.steps.jsoninput.JsonInput.readFileOrString(JsonInput.java:258)
      4. org.pentaho.di.trans.steps.jsoninput.JsonInput.ReadNextString(JsonInput.java:165)
      5. org.pentaho.di.trans.steps.jsoninput.JsonInput.getOneRow(JsonInput.java:396)
      6. org.pentaho.di.trans.steps.jsoninput.JsonInput.processRow(JsonInput.java:344)
      7. org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
      7 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:701)
      1 frame