[HtmlUnit] [htmlunit:bugs] #2021 ClassCastException when calling webClient.getPage()
RBRi via HtmlUnit-develop <[email protected]> Sat, 04 Jan 2020 16:51:14 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/bugs/2021/b9491e1d7d9ea0217fd26d7e799b9900a522f2f6.bugs@htmlunit.p.sourceforge.net> |
This is a multi-part message in MIME format.
--===============7985692200704192799==
Content-Type: multipart/related;
boundary="===============0912806557871693834=="
This is a multi-part message in MIME format.
--===============0912806557871693834==
Content-Type: multipart/alternative;
boundary="===============7024335212284875867=="
MIME-Version: 1.0
--===============7024335212284875867==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
- **status**: open --> closed
- **assigned_to**: RBRi
---
** [bugs:#2021] ClassCastException when calling webClient.getPage()**
**Status:** closed
**Group:** 2.21
**Created:** Fri Aug 16, 2019 07:01 AM UTC by Summer Guo
**Last Updated:** Fri Nov 01, 2019 01:46 PM UTC
**Owner:** RBRi
Im using 2.20
ClassCastException when calling webClient.getPage()
this bug only happens when JS is enabled
FYI: the url im trying to test is: https://steamcommunity.com/openid/login
Thanks in advance!
Caused by: com.gargoylesoftware.htmlunit.ScriptException: Exception invoking observe
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:883)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:815)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:787)
at com.gargoylesoftware.htmlunit.InteractivePage.executeJavaScriptFunctionIfPossible(InteractivePage.java:216)
at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:258)
at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:322)
at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:192)
at com.gargoylesoftware.htmlunit.html.DomElement$2.run(DomElement.java:1167)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539)
at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1172)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1223)
at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:254)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:484)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:416)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:401)
at com.amazon.agssocial.internal.identity.service.helpers.SteamOpenIdHelper.sendAuthRequest(AuthHelper.java:58)
at com.amazon.agssocial.internal.identity.service.BaseTest.testGetCredentialsForOauthAccount(BaseTest.java:324)
... 15 more
Caused by: java.lang.RuntimeException: Exception invoking observe
at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:193)
at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:453)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1479)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:252)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3345)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:808)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:868)
... 35 more
Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement
at com.gargoylesoftware.htmlunit.javascript.host.dom.MutationObserver.observe(MutationObserver.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:167)
... 44 more
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============7024335212284875867==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit
<div class="markdown_content"><ul>
<li><strong>status</strong>: open --> closed</li>
<li><strong>assigned_to</strong>: RBRi</li>
</ul>
<hr/>
<p><strong> <a class="alink strikethrough" href="https://sourceforge.net/p/htmlunit/bugs/2021/">[bugs:#2021]</a> ClassCastException when calling webClient.getPage()</strong></p>
<p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> 2.21<br/>
<strong>Created:</strong> Fri Aug 16, 2019 07:01 AM UTC by Summer Guo<br/>
<strong>Last Updated:</strong> Fri Nov 01, 2019 01:46 PM UTC<br/>
<strong>Owner:</strong> RBRi</p>
<p>Im using 2.20 <br/>
ClassCastException when calling webClient.getPage()<br/>
this bug only happens when JS is enabled<br/>
FYI: the url im trying to test is: <a href="https://steamcommunity.com/openid/login" rel="nofollow">https://steamcommunity.com/openid/login</a></p>
<p>Thanks in advance!</p>
<p>Caused by: com.gargoylesoftware.htmlunit.ScriptException: Exception invoking observe<br/>
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:883)<br/>
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613)<br/>
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539)<br/>
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:815)<br/>
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:787)<br/>
at com.gargoylesoftware.htmlunit.InteractivePage.executeJavaScriptFunctionIfPossible(InteractivePage.java:216)<br/>
at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:258)<br/>
at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:322)<br/>
at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:192)<br/>
at com.gargoylesoftware.htmlunit.html.DomElement$2.run(DomElement.java:1167)<br/>
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:613)<br/>
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:539)<br/>
at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1172)<br/>
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1223)<br/>
at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:254)<br/>
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:484)<br/>
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:351)<br/>
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:416)<br/>
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:401)<br/>
at com.amazon.agssocial.internal.identity.service.helpers.SteamOpenIdHelper.sendAuthRequest(AuthHelper.java:58)<br/>
at com.amazon.agssocial.internal.identity.service.BaseTest.testGetCredentialsForOauthAccount(BaseTest.java:324)<br/>
... 15 more<br/>
Caused by: java.lang.RuntimeException: Exception invoking observe<br/>
at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:193)<br/>
at net.sourceforge.htmlunit.corejs.javascript.FunctionObject.call(FunctionObject.java:453)<br/>
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1479)<br/>
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:815)<br/>
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)<br/>
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429)<br/>
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:252)<br/>
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3345)<br/>
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:808)<br/>
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:868)<br/>
... 35 more<br/>
Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement<br/>
at com.gargoylesoftware.htmlunit.javascript.host.dom.MutationObserver.observe(MutationObserver.java:85)<br/>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br/>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br/>
at java.lang.reflect.Method.invoke(Method.java:498)<br/>
at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:167)<br/>
... 44 more</p>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a> Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============7024335212284875867==--
--===============0912806557871693834==--
--===============7985692200704192799==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============7985692200704192799==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
--===============7985692200704192799==--