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)


Solutions on the web345

Solution icon of sourceforge
via htmlunit by blooo
, 6 months ago
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)

Solution icon of stackoverflow
TypeError: Expected argument of type object, but instead had type object (injected script#4)

Solution icon of sourceforge
via htmlunit by oboguev
, 1 year ago
TypeError: Expected argument of type object, but instead had type object (http://l-stat.livejournal.net/js/??.ljlib.js?v=1450784615#19)

Solution icon of stackoverflow
via Stack Overflow by PhDSine
, 2 months ago
TypeError: Expected argument of type object, but instead had type object (https://www.mtgstocks.com:443/polyfills.eec762705290a3a04ae2.bundle.js#1)

Solution icon of sourceforge
TypeError: net.sourceforge.htmlunit.corejs.javascript.Undefined@4303b7f0 is not a function, it is undefined. (script in http://localhost:8000/function.html from (3, 54) to (29, 10)#20)

Solution icon of sourceforge
via htmlunit by blooo
, 3 months ago
TypeError: net.sourceforge.htmlunit.corejs.javascript.Undefined@1951b871 is not a function, it is undefined. (script in http://localhost:8000/function.html from (4, 54) to (18, 10)#14)

Solution icon of sourceforge
TypeError: Cannot read property "one" from undefined (script in http://localhost:8090/TestPage/one.html from (4, 9) to (10, 10)#7)

Solution icon of stackoverflow
via Stack Overflow by user2544039
, 1 year ago
TypeError: Cannot find function addEventListener in object [object]. (script in http://myhost:8080/mpt/dummy from (3, 9) to (6, 10)#5)

Solution icon of coderanch
via Coderanch by angad jha, 8 months ago
TypeError: Cannot find function tablesorter in object [object Object]. (script in http://localhost:8080/simplelogin/regis.ctrl?cmd=myForm&id=1730810726 from (63, 32) to (72, 10)#68)

Solution icon of web
via sourceforge.net by Unknown author, 1 year ago
TypeError: Cannot read property "elements" from undefined (script in from (10, 9) to (27, 10)#18)

Stack trace

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

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago