org.mozilla.javascript.EcmaError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Alan Leavy,
  • 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.
    via by Alan Leavy,
  • Missing Form exception
    via httpunit by j_collier
    ,
  • undefined.split() in ringo/jsgi
    via GitHub by hns
    ,
    • 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    JurajiJuraji
    5 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,