com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to create HTML parser

Stack Overflow | Yugansh Marwah | 7 months 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

    I am using html unit to to fill up a html form but it show some exception

    Stack Overflow | 7 months ago | Yugansh Marwah
    com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to create HTML parser
  2. 0

    Sample HtmlUnit JUnit test fails for 2.9 and 2.10

    htmlunit | 4 years ago | *anonymous
    com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to create HTML parser
  3. 0

    Example HtmlUnit Test Failing

    Stack Overflow | 4 years ago | empire29
    com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to create HTML parser
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXNotRecognizedException

      Feature 'http://cyberneko.org/html/features/scanner/allow-selfclosing-iframe' is not recognized.

      at org.apache.xerces.parsers.AbstractSAXParser.setFeature()
    2. Xerces2-j
      AbstractSAXParser.setFeature
      1. org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)
      1 frame
    3. HtmlUnit
      WebClient.getPage
      1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.<init>(HTMLParser.java:411)
      2. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.<init>(HTMLParser.java:342)
      3. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:203)
      4. com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:179)
      5. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:221)
      6. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:106)
      7. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433)
      8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:311)
      9. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:373)
      10. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:358)
      10 frames
    4. psit
      OLT.main
      1. psit.OLT.main(OLT.java:21)
      1 frame