java.lang.NullPointerException

htmlunit | anotherjosh | 9 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.
  1. 0

    HtmlUnit / Mailing Lists

    sourceforge.net | 10 months ago
    java.lang.NullPointerException
  2. 0

    Error thrown when loading www.amazon.com

    htmlunit | 9 years ago | anotherjosh
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.gargoylesoftware.htmlunit.html.HtmlPage.writeInParsedStream()
    2. HtmlUnit
      HTMLDocument.jsxFunction_write
      1. com.gargoylesoftware.htmlunit.html.HtmlPage.writeInParsedStream(HtmlPage.java:2095)
      2. com.gargoylesoftware.htmlunit.javascript.host.HTMLDocument.write(HTMLDocument.java:319)
      3. com.gargoylesoftware.htmlunit.javascript.host.HTMLDocument.jsxFunction_write(HTMLDocument.java:234)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. Rhino
      ContextFactory.doTopCall
      1. org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
      2. org.mozilla.javascript.FunctionObject.call(FunctionObject.java:415)
      3. org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3335)
      4. org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2484)
      5. org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
      6. org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
      6 frames
    5. HtmlUnit
      HtmlUnitContextFactory.doTopCall
      1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:169)
      1 frame
    6. Rhino
      InterpretedFunction.exec
      1. org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3004)
      2. org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
      2 frames
    7. HtmlUnit
      JavaScriptEngine$HtmlUnitContextAction.run
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$5.doRun(JavaScriptEngine.java:396)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:522)
      2 frames
    8. Rhino
      ContextFactory.call
      1. org.mozilla.javascript.Context.call(Context.java:502)
      2. org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
      2 frames
    9. HtmlUnit
      HTMLParser$HtmlUnitDOMBuilder.endElement
      1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:405)
      2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:380)
      3. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:889)
      4. com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:258)
      5. com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:311)
      6. com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:206)
      7. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:498)
      7 frames
    10. Xerces2-j
      AbstractSAXParser.endElement
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      1 frame
    11. HtmlUnit
      HTMLParser$HtmlUnitDOMBuilder.endElement
      1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:468)
      1 frame
    12. Maven
      HTMLConfiguration.parse
      1. org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:210)
      2. org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
      3. org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:992)
      4. org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:895)
      5. org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2835)
      6. org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1940)
      7. org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:880)
      8. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495)
      9. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448)
      9 frames
    13. Xerces2-j
      XMLParser.parse
      1. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      1 frame
    14. HtmlUnit
      WebClient.getPage
      1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:636)
      2. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:237)
      3. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:127)
      4. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
      5. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:440)
      6. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:338)
      7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:388)
      8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:375)
      8 frames
    15. Unknown
      NewHtmlUnitTest.main
      1. NewHtmlUnitTest.main(NewHtmlUnitTest.java:16)
      1 frame