org.mozilla.javascript.EcmaError: ReferenceError: "fnTestStr" is not defined. (<cmd>#1)

Pentaho BI Platform Tracking | Alan Leavy | 5 years ago
  1. 0

    I have an xaction with a javascript component which uses a javascript resource file from the solution directory in which the xaction itself resides. if I execute the xaction by itself, it works fine. [e.g. http://localhost:8080/pentaho/ViewAction?solution=js-import-test&path=&action=test.xaction] However, if I include this xaction in a dashboard, it fails. - the javascript resource file is not imported sucessfully and I get an error like this in the server log: 2012-03-06 10:23:47,757 ERROR [org.pentaho.platform.plugin.action.javascript.JavascriptRule] 13fd8268-676e-11e1-a219-65b2fe4c5be6:COMPONENT:context-5371975-1331025827727:test.xactionJSRULE.ERROR_0003 - Javascript rule execution failed org.mozilla.javascript.EcmaError: ReferenceError: "fnTestStr" is not defined. (<cmd>#1) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3557) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3535) at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3620) fnTestStr() is a function defined in the javascript resource file. I have a simple xaction and dashboard solution illustrating the problem, which I'll try to attach to this issue. As a less than ideal workaround, I created a new folder, tomcat/webapps/my-resources, put the javascript file there and referenced it from the xaction resource section as a url [http://localhost:808/my-resources/test.js] That works but it's something I'd rather not deploy to my production environment.

    Pentaho BI Platform Tracking | 5 years ago | Alan Leavy
    org.mozilla.javascript.EcmaError: ReferenceError: "fnTestStr" is not defined. (<cmd>#1)
  2. 0

    I have an xaction with a javascript component which uses a javascript resource file from the solution directory in which the xaction itself resides. if I execute the xaction by itself, it works fine. [e.g. http://localhost:8080/pentaho/ViewAction?solution=js-import-test&path=&action=test.xaction] However, if I include this xaction in a dashboard, it fails. - the javascript resource file is not imported sucessfully and I get an error like this in the server log: 2012-03-06 10:23:47,757 ERROR [org.pentaho.platform.plugin.action.javascript.JavascriptRule] 13fd8268-676e-11e1-a219-65b2fe4c5be6:COMPONENT:context-5371975-1331025827727:test.xactionJSRULE.ERROR_0003 - Javascript rule execution failed org.mozilla.javascript.EcmaError: ReferenceError: "fnTestStr" is not defined. (<cmd>#1) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3557) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3535) at org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3620) fnTestStr() is a function defined in the javascript resource file. I have a simple xaction and dashboard solution illustrating the problem, which I'll try to attach to this issue. As a less than ideal workaround, I created a new folder, tomcat/webapps/my-resources, put the javascript file there and referenced it from the xaction resource section as a url [http://localhost:808/my-resources/test.js] That works but it's something I'd rather not deploy to my production environment.

    Pentaho BI Platform Tracking | 5 years ago | Alan Leavy
    org.mozilla.javascript.EcmaError: ReferenceError: "fnTestStr" is not defined. (<cmd>#1)
  3. 0

    Running a function from a webpage using envjs and rhino

    Stack Overflow | 2 years ago
    org.mozilla.javascript.EcmaError: ReferenceError: "initCM" is not defined. (run#1)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to set a null value. what is wrong with this snippet?

    Google Groups | 9 years ago | thegra...@gmail.com
    org.mozilla.javascript.EcmaError: ReferenceError: "city" is not defined. (<Unknown source>#1)
  6. 0

    Missing Form exception

    httpunit | 8 years ago | j_collier
    org.mozilla.javascript.EcmaError: ReferenceError: "searchForm" is not defined.at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3229)

    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. org.mozilla.javascript.EcmaError

      ReferenceError: "fnTestStr" is not defined. (<cmd>#1)

      at org.mozilla.javascript.ScriptRuntime.constructError()
    2. Rhino
      ScriptRuntime.notFoundError
      1. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3557)
      2. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3535)
      3. org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3620)
      3 frames