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
    ,
  • 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,
  • YUI 2.6.0 XHR request not working
    via htmlunit by rjhazelwood
    ,
    • 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) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:557) at org.mozilla.javascript.Context.call(Context.java:577) at org.mozilla.javascript.Context.call(Context.java:499) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:438) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:412) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:938) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:239) at com.gargoylesoftware.htmlunit.html.HtmlScript.appendDomChild(HtmlScript.java:174) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.handleCharacters(HTMLParser.java:443) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:401) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:258) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:376) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1024) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:897) at org.cyberneko.html.HTMLScanner$SpecialScanner.scan(HTMLScanner.java:2947) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:858) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:487) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:440) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:253) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:116) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:89) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:453) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:362) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:410) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:398) at TestOne.testDojoPage(TestOne.java:19) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) 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 junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "className" from undefined (http://www.dojotoolkit.org/sites/all/modules/dojo/dtk_build/dojo/dojo.js#20) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350) at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340) at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356) at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375) at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2965) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:192) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:429) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:553) ... 45 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,