java.lang.ClassCastException: com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage

Jenkins JIRA | bshine | 7 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.ClassCastException

      com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage

      at com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob.run()
    2. HtmlUnit
      JavaScriptBackgroundJob.run
      1. com.gargoylesoftware.htmlunit.JavaScriptBackgroundJob.run(JavaScriptBackgroundJob.java:99)
      1 frame
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame
    4. HtmlUnit
      ThreadManager$1.run
      1. com.gargoylesoftware.htmlunit.ThreadManager$1.run(ThreadManager.java:127)
      1 frame