com.gargoylesoftware.htmlunit.ScriptException: TypeError: Expected argument of type object, but instead had type string (script in http://localhost:8000/prototype-stuff.html from (1, 9) to (37, 10)#17)

htmlunit | blooo | 2 weeks 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

    How to solve the cross domain in HtmlUnit

    Stack Overflow | 8 months ago | jack
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "childNodes" from null (http://live3.win007.com/common2.js#41)
  2. 0

    <TR> deleteCell() not supported

    htmlunit | 8 years ago | dzenno
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function deleteCell in object [object].
  3. 0

    Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML

    Stack Overflow | 5 years ago | Nitish Borade
    com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Selenium - com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML

    Coderanch | 4 years ago | Nitish Borade
    com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxSet_innerHTML
  6. 0

    Htmlunit ScriptException "console" is not defined

    Stack Overflow | 5 years ago
    com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "console" is not defined. (script in http://localhost:8080.com/mypage/ll.html from (154, 36) to (301, 14)#168)

  1. tfr 1 times, last 6 months ago
4 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. com.gargoylesoftware.htmlunit.ScriptException

    TypeError: Expected argument of type object, but instead had type string (script in http://localhost:8000/prototype-stuff.html from (1, 9) to (37, 10)#17)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run()
  2. HtmlUnit
    JavaScriptEngine$HtmlUnitContextAction.run
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:922)[htmlunit-2.24.jar:2.24]
    1 frame
  3. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)[pagefilter-1.0.jar:1.0]
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:513)[pagefilter-1.0.jar:1.0]
    2 frames
  4. HtmlUnit
    HTMLParser$HtmlUnitDOMBuilder.endElement
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:799)[htmlunit-2.24.jar:2.24]
    2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:775)[htmlunit-2.24.jar:2.24]
    3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:763)[htmlunit-2.24.jar:2.24]
    4. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:904)[htmlunit-2.24.jar:2.24]
    5. com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:308)[htmlunit-2.24.jar:2.24]
    6. com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:369)[htmlunit-2.24.jar:2.24]
    7. com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:239)[htmlunit-2.24.jar:2.24]
    8. com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:258)[htmlunit-2.24.jar:2.24]
    9. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:772)[htmlunit-2.24.jar:2.24]
    9 frames
  5. Xerces2-j
    AbstractSAXParser.endElement
    1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)[pagefilter-1.0.jar:1.0]
    1 frame
  6. HtmlUnit
    HTMLParser$HtmlUnitDOMBuilder.endElement
    1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:729)[htmlunit-2.24.jar:2.24]
    1 frame
  7. net.sourceforge.htmlunit
    HTMLConfiguration.parse
    1. net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1209)[pagefilter-1.0.jar:1.0]
    2. net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1111)[pagefilter-1.0.jar:1.0]
    3. net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:207)[pagefilter-1.0.jar:1.0]
    4. net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:337)[pagefilter-1.0.jar:1.0]
    5. net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3137)[pagefilter-1.0.jar:1.0]
    6. net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2100)[pagefilter-1.0.jar:1.0]
    7. net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:927)[pagefilter-1.0.jar:1.0]
    8. net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:506)[pagefilter-1.0.jar:1.0]
    9. net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:459)[pagefilter-1.0.jar:1.0]
    9 frames
  8. Xerces2-j
    XMLParser.parse
    1. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[pagefilter-1.0.jar:1.0]
    1 frame
  9. HtmlUnit
    WebClient.getPage
    1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:979)[htmlunit-2.24.jar:2.24]
    2. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:241)[htmlunit-2.24.jar:2.24]
    3. com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:187)[htmlunit-2.24.jar:2.24]
    4. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:273)[htmlunit-2.24.jar:2.24]
    5. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:161)[htmlunit-2.24.jar:2.24]
    6. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:517)[htmlunit-2.24.jar:2.24]
    7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:390)[htmlunit-2.24.jar:2.24]
    8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:308)[htmlunit-2.24.jar:2.24]
    9. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:455)[htmlunit-2.24.jar:2.24]
    10. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:440)[htmlunit-2.24.jar:2.24]
    10 frames
  10. com.debug.functionalities
    SymbolTest.test
    1. com.debug.functionalities.SymbolTest.test(SymbolTest.java:23)[test-classes/:na]
    1 frame
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_71]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_71]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_71]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_71]
    4 frames
  12. JUnit
    JUnitCore.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)[pagefilter-1.0.jar:1.0]
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[pagefilter-1.0.jar:1.0]
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)[pagefilter-1.0.jar:1.0]
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)[pagefilter-1.0.jar:1.0]
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)[pagefilter-1.0.jar:1.0]
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)[pagefilter-1.0.jar:1.0]
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)[pagefilter-1.0.jar:1.0]
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[pagefilter-1.0.jar:1.0]
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[pagefilter-1.0.jar:1.0]
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[pagefilter-1.0.jar:1.0]
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)[pagefilter-1.0.jar:1.0]
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)[pagefilter-1.0.jar:1.0]
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)[pagefilter-1.0.jar:1.0]
    14. org.junit.runner.JUnitCore.run(JUnitCore.java:137)[pagefilter-1.0.jar:1.0]
    14 frames
  13. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)[junit-rt.jar:na]
    1 frame
  14. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)[junit-rt.jar:na]
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)[junit-rt.jar:na]
    2 frames
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_71]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_71]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_71]
    4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_71]
    4 frames
  16. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)[idea_rt.jar:na]
    1 frame