-
15. Re: JavascriptTimeoutException
kragoth Jun 15, 2008 9:03 PM (in response to bgregory)I'm getting the time out problem as well. But I'm not using a4j:poll. I get the problem when I click on a commandLink in a HtmlDataTable. Just goes into some endless loop in window.setTimeout. I'm not having much luck just getting normal components to work properly atm. My commandButtons are still giving me the error where my page is just "javascript(*****)" and now clicking on commandLinks gives me an endless loop.
-
16. Re: JavascriptTimeoutException
ssilvert Jun 16, 2008 12:13 PM (in response to bgregory)HtmlUnit has a new way to deal with waiting for all the javascript threads to finish. So I implemented using their NicelyResynchronizingAjaxController instead of ThreadManager.joinAll().
Please try a svn update of JSFUnit and let me know if that fixes the problem.
Stan -
17. Re: JavascriptTimeoutException
bgregory Jun 16, 2008 1:33 PM (in response to bgregory)The JTE seems to now be gone! Although I've found other errors related to setValue() and click() see below:
java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlTextArea at org.jboss.jsfunit.jsfsession.JSFClientSession.setValue(JSFClientSession.java:117) ...
java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlSelect at org.jboss.jsfunit.jsfsession.JSFClientSession.setValue(JSFClientSession.java:117) ...
Wrapped java.lang.ClassCastException: com.gargoylesoftware.htmlunit.xml.XmlPage (http://localhost:8080/EagerUI/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.faces#86) ======= EXCEPTION START ======== Exception class=[org.mozilla.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped java.lang.ClassCastException: com.gargoylesoftware.htmlunit.xml.XmlPage (http://localhost:8080/EagerUI/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.faces#86) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:534) at org.mozilla.javascript.Context.call(Context.java:499) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:445) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:912) at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:143) at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:156) at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:551) at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1231) at org.mozilla.javascript.Context.call(Context.java:499) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511) at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1235) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:93) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:72) at org.jboss.jsfunit.jsfsession.JSFClientSession.click(JSFClientSession.java:155) ...
Wrapped java.lang.RuntimeException: Could not retrieve XPath >//parsererror< on HtmlHtml[<html xmlns="http://www.w3.org/1999/xhtml">] (http://localhost:8080/EagerUI/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.faces#48) ======= EXCEPTION START ======== Exception class=[org.mozilla.javascript.WrappedException] com.gargoylesoftware.htmlunit.ScriptException: Wrapped java.lang.RuntimeException: Could not retrieve XPath >//parsererror< on HtmlHtml[<html xmlns="http://www.w3.org/1999/xhtml">] (http://localhost:8080/EagerUI/a4j_3_2_1-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.faces#48) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:534) at org.mozilla.javascript.Context.call(Context.java:499) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:445) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:912) at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventHandler(EventListenersContainer.java:143) at com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:156) at com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:551) at com.gargoylesoftware.htmlunit.html.HtmlElement$2.run(HtmlElement.java:1231) at org.mozilla.javascript.Context.call(Context.java:499) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511) at com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:1235) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:120) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:93) at com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:72) at org.jboss.jsfunit.jsfsession.JSFClientSession.click(JSFClientSession.java:155) ...
-
18. Re: JavascriptTimeoutException
bgregory Jun 16, 2008 1:42 PM (in response to bgregory)One more when attempting to set an inplaceInput:
java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlSpan at org.jboss.jsfunit.jsfsession.JSFClientSession.setValue(JSFClientSession.java:117) ...
-
19. Re: JavascriptTimeoutException
kragoth Jun 16, 2008 8:45 PM (in response to bgregory)I'm having a much better time since the last update. No more time outs! :)
I'm just stuck on panelMenuItems at the moment. So can't really go much further till I get them working..... cause I've got no navigation atm :P
But I've been able to hardcode some nav stuff to see if tests will run and so far things are looking much better!
I've only focused on getting one of my tests going so....the real test will be when I get all of them going. But nice work Stan! -
20. Re: JavascriptTimeoutException
ssilvert Jun 17, 2008 10:31 AM (in response to bgregory)I just comitted some changes that should at least fix HtmlTextArea and HtmlSelect.
Going forward, please file a jira issue for obvious bugs. I'm afraid that issues will get lost if buried in a forum topic.
At the very least start a new topic instead of putting problems at the end of another thread.
And thanks again for all your help. It is tremendous to have you trying out this stuff as fast as I can code it!!! This is open source at its best.
Stan -
21. Re: JavascriptTimeoutException
bgregory Jun 17, 2008 10:44 AM (in response to bgregory)Certainly, thanks for the effort!