java.lang.NullPointerException

htmlunit | sebcat | 2 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.

Root Cause Analysis

  1. java.lang.NullPointerException

    No message provided

    at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.initAsConstructor()
  2. HtmlUnit Core JS
    FunctionObject.addAsConstructor
    1. net.sourceforge.htmlunit.corejs.javascript.FunctionObject.initAsConstructor(FunctionObject.java:334)
    2. net.sourceforge.htmlunit.corejs.javascript.FunctionObject.addAsConstructor(FunctionObject.java:324)
    2 frames
  3. HtmlUnit
    JavaScriptEngine$1.run
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:300)
    2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$4(JavaScriptEngine.java:190)
    3. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:162)
    3 frames
  4. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:606)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:540)
    2 frames
  5. HtmlUnit
    WebClientTest.NonStandardBrowserVersion
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:173)
    2. com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:997)
    3. com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:141)
    4. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:216)
    5. com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:194)
    6. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:268)
    7. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:156)
    8. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:465)
    9. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:339)
    10. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:404)
    11. com.gargoylesoftware.htmlunit.SimpleWebTestCase.loadPage(SimpleWebTestCase.java:175)
    12. com.gargoylesoftware.htmlunit.WebClientTest.NonStandardBrowserVersion(WebClientTest.java:126)
    12 frames