1 Reply Latest reply on Jun 10, 2009 9:15 AM by ssilvert

    rich:editor EcmaError

    jgilbert

      Has anyone encountered this error?

      This only happens when I use the richfaces tinymce editor.

      Any postback action on a page with this editor will result in this error.

      Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "save" of null (http://localhost:8080/myapp/a4j/g/3_3_0.GA/org/richfaces/ui.pack.js
      #6990)
       at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:534)
       at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:515)
       at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
       at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:464)
       at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:992)
       at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:164)
       at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:177)
       at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:574)
       at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:936)
       at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:515)
       at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
       at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:941)
       at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1317)
       at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1288)
       at com.gargoylesoftware.htmlunit.html.HtmlElement.click(HtmlElement.java:1257)
       at org.jboss.jsfunit.jsfsession.JSFClientSession.click(JSFClientSession.java:224)
       at net.taylor.results.jsfunit.JsfUnitTestCase.click(JsfUnitTestCase.java:216)
       ... 64 more
      Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot call method "save" of null (http://localhost:8080/myapp/a4j/g/3_3_0.GA/org/richfaces/ui.
      pack.js#6990)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3654)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3632)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3660)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3679)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3698)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2221)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2214)
       at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:3143)
       at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:2487)
       at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
       at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267)
       at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
       at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
       at com.gargoylesoftware.htmlunit.javascript.host.EventHandler.call(EventHandler.java:82)
       at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:492)
       at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$6.doRun(JavaScriptEngine.java:457)
       at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528)
       ... 80 more
      


        • 1. Re: rich:editor EcmaError
          ssilvert

          I haven't seen that before, but it's clearly an HtmlUnit or Rhino error.

          I googled and found some similar questions/errors from the HtmlUnit mailing list. You might want to try getting help from them. If you can make a simple example to demonstrate the problem I'll try to help too.

          Stan