com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "foo" of undefined (script in http://first/ from (2, 10) to (2, 64)#2)

htmlunit | jblemee | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    calling a JavaScript function in a child frame

    htmlunit | 9 years ago | jblemee
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "foo" of undefined (script in http://first/ from (2, 10) to (2, 64)#2)
  2. 0

    JQuery parsing error

    htmlunit | 9 years ago | nobody
    com.gargoylesoftware.htmlunit.ScriptException: SyntaxError: missing ; before statement (http://login.shoppr.com/web/20081018/js/jquery.validate.pack.js#15(eval)#1)
  3. 0

    EcmaError: TypeError: Cannot read property "className"

    htmlunit | 9 years ago | rbodziony
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "className" from undefined (http://www.dojotoolkit.org/sites/all/modules/dojo/dtk_build/dojo/dojo.js#20)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    YUI 2.6.0 XHR request not working

    htmlunit | 8 years ago | rjhazelwood
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "appendChild" of null (http://yui.yahooapis.com/2.6.0/build/datatable/datatable-min.js#12)
  6. 0

    GWT 1.4 and HtmlUnit 2.1

    Google Groups | 9 years ago | megid
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "__gwt_initHandlers" from null (http://localhost/gwt/www/ com.google.gwt.sample.kitchensink.KitchenSink/ com.google.gwt.sample.kitchensink.KitchenSink.nocache.js#2)

    2 unregistered visitors
    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

      TypeError: Cannot call method "foo" of undefined (script in http://first/ from (2, 10) to (2, 64)#2)

      at org.mozilla.javascript.ScriptRuntime.constructError()
    2. Rhino
      ContextFactory.doTopCall
      1. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3558)
      2. org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3536)
      3. org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3564)
      4. org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3583)
      5. org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3602)
      6. org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2161)
      7. org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3170)
      8. org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2484)
      9. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
      10. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
      10 frames
    3. HtmlUnit
      HtmlUnitContextFactory.doTopCall
      1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:170)
      1 frame
    4. Rhino
      InterpretedFunction.exec
      1. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3004)
      2. org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
      2 frames
    5. HtmlUnit
      JavaScriptEngine$HtmlUnitContextAction.run
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:396)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522)
      2 frames
    6. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.call(Context.java:502)
      2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
      2 frames
    7. HtmlUnit
      HTMLParser$HtmlUnitDOMBuilder.endElement
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:405)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:380)
      3. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:890)
      4. com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:272)
      5. com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:326)
      6. com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:207)
      7. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:539)
      7 frames
    8. Xerces2-j
      AbstractSAXParser.endElement
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      1 frame
    9. HtmlUnit
      HTMLParser$HtmlUnitDOMBuilder.endElement
      1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:493)
      1 frame
    10. Maven
      HTMLConfiguration.parse
      1. org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:210)
      2. org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
      3. org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:993)
      4. org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:896)
      5. org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2893)
      6. org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1954)
      7. org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:893)
      8. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495)
      9. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448)
      9 frames
    11. Xerces2-j
      XMLParser.parse
      1. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      1 frame
    12. HtmlUnit
      WebClient.getPage
      1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:680)
      2. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:240)
      3. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
      4. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
      5. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:443)
      6. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:331)
      7. com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPageIfPossible(BaseFrame.java:118)
      8. com.gargoylesoftware.htmlunit.html.BaseFrame.loadInnerPage(BaseFrame.java:93)
      9. com.gargoylesoftware.htmlunit.html.HtmlPage.loadFrames(HtmlPage.java:1731)
      10. com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:166)
      11. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:456)
      12. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:331)
      13. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:388)
      13 frames
    13. gdo.test
      TestHtmlUnit.testFrameJS
      1. gdo.test.TestHtmlUnit.testFrameJS(TestHtmlUnit.java:53)
      1 frame
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    15. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:164)
      2. junit.framework.TestCase.runBare(TestCase.java:130)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:120)
      7. junit.framework.TestSuite.runTest(TestSuite.java:230)
      8. junit.framework.TestSuite.run(TestSuite.java:225)
      8 frames
    16. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
      2. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
      6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      6 frames