com.gargoylesoftware.htmlunit.ScriptException

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.

  • JQuery parsing error
    via htmlunit by nobody
    ,
  • YUI 2.6.0 XHR request not working
    via htmlunit by rjhazelwood
    ,
  • GWT 1.4 and HtmlUnit 2.1
    via by megid,
  • GWT 1.4 and HtmlUnit 2.1
    via by megid,
  • Error on Test JSF
    via by 843844,
    • com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "foo" of undefined (script in http://first/ from (2, 10) to (2, 64)#2) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:528) at org.mozilla.javascript.Context.call(Context.java:502) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:405) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:380) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:890) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:272) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:326) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:207) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:539) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:493) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:210) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:993) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:896) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2893) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1954) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:893) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:680) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:240) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:443) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:331) at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible(BaseFrame.java:118) at com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage(BaseFrame.java:93) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames(HtmlPage.java:1731) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:166) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:456) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:331) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:388) at gdo.test.TestHtmlUnit.testFrameJS(TestHtmlUnit.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "foo" of undefined (script in http://first/ from (2, 10) to (2, 64)#2) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3558) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3536) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3564) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3583) at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3602) at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2161) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3170) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2484) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:170) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3004) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:396) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522) ... 53 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Juraji
    5 times, last one,
    Unknown visitor1 times, last one,