com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "element" from null (Window.eval()#1)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via htmlunit by frederic-tardif
, 1 year ago
TypeError: Cannot read property "element" from null (Window.eval()#1)
via htmlunit by nagkumar
, 1 year ago
TypeError: Cannot set property "_label" of null to "First Name" (http://www.linkedin.com/js/public_profile.js#1)
via htmlunit by stst123
, 1 year ago
Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: VBGetSwfVer is not a function, it is null. (http://www.citibank.de/js/flashdetect.js#34) (Embedded script in https://cipehb17.cdg.citibank.de/Pers/English_%28United_States%29/Redirect.htm?LANG=1&LANGNAME=English_(United_States)&DEVICEMODE=HTMLGPH&SRCT=10 from (5, 29) to (0, 0)#84)
via htmlunit by joken2006
, 1 year ago
TypeError: hp_d01 is not a function, it is null. (Embedded script in http://localhost/tt/htmunittest.htm from (3, 31) to (0, 0)#3)
via Coderanch by Anil Prasad, 1 year ago
TypeError: Cannot read property "style" from null (http://ebsi-dell-09:81/is-bin/intershop.static/WFS/PrcMindef/-/en_US/jscript/popcalendar.js#179)
via htmlunit by skipoles
, 1 year ago
TypeError: Cannot find function getElementsBySelector. (Embedded script in http://localhost:8080/simplescrum/test.html from (14, 13) to (0, 0)#3)
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "element" from null (Window.eval()#1)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3226)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3216)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3232)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3251)
at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3264)
at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1321)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2815)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:163)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:252)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:704)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:468)
at org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2090)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2984)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2250)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:160)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:252)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:704)
at com.gargoylesoftware.htmlunit.html.HtmlScript.appendChild(HtmlScript.java:187)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:419)
at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:249)
at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:367)
at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1015)
at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:888)
at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2831)
at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:809)
at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:478)
at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:431)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:313)
at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:227)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:112)
at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:85)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:431)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:335)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389)
at com.gargoylesoftware.htmlunit.WebTestCase.loadPage(WebTestCase.java:204)
at com.gargoylesoftware.htmlunit.WebTestCase.loadPage(WebTestCase.java:155)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
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)

Users with the same issue

5 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.