Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via htmlunit by kelvsyc
, 1 year ago
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage
via htmlunit by ellecer
, 1 year ago
com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage
via sourceforge.net by Unknown author, 1 year ago
com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage
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)