java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlScript incompatible with com.gargoylesoftware.htmlunit.html.DomCharacterData

htmlunit | lannb | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ClassCastException in HtmlPage.asXml()

    htmlunit | 9 years ago | lannb
    java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlScript incompatible with com.gargoylesoftware.htmlunit.html.DomCharacterData

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.gargoylesoftware.htmlunit.html.HtmlScript incompatible with com.gargoylesoftware.htmlunit.html.DomCharacterData

      at com.gargoylesoftware.htmlunit.html.HtmlScript.printChildrenAsXml()
    2. HtmlUnit
      HtmlPage.asXml
      1. com.gargoylesoftware.htmlunit.html.HtmlScript.printChildrenAsXml(HtmlScript.java:412)
      2. com.gargoylesoftware.htmlunit.html.HtmlElement.printXml(HtmlElement.java:844)
      3. com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:757)
      4. com.gargoylesoftware.htmlunit.html.HtmlElement.printXml(HtmlElement.java:844)
      5. com.gargoylesoftware.htmlunit.html.DomNode.printChildrenAsXml(DomNode.java:757)
      6. com.gargoylesoftware.htmlunit.html.HtmlElement.printXml(HtmlElement.java:844)
      7. com.gargoylesoftware.htmlunit.html.DomNode.asXml(DomNode.java:732)
      8. com.gargoylesoftware.htmlunit.html.HtmlPage.asXml(HtmlPage.java:1729)
      8 frames