java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • HtmlUnit / Mailing Lists
    via by Unknown author,
    • java.lang.ClassCastException: com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:225) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:96) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:156) at org.mozilla.javascript.Context.call(Context.java:577) at org.mozilla.javascript.Context.call(Context.java:499) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:167) at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1084) at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:115) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createUnexpectedPage(DefaultPageCreator.java:158) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:450) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:359) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:382) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:122) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.doClickAction(HtmlAnchor.java:146) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:148) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:109) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:87)
    No Bugmate found.