From: Mike B. <mb...@Ga...> - 2004-04-01 14:08:48
|
Dave Smith wrote: >>OK. I download last nights snapshot and it test just hangs. A thread >>dump is below. Also why is >>[junit] at >>com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:575) >> [junit] at >>com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:535) >> [junit] at >>com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:453) >> [junit] at >>com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:325) >> [junit] at >>com.gargoylesoftware.htmlunit.html.HtmlPage.executeRefreshIfNeeded(HtmlPage.java:954) >> [junit] at >>com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:141) >> >>Repeated at least 20 times before the top of the dump below? There are 6 >>.js includes and one .css include but it does not match the number of >>occurrences of the loop. It would appear that a page refresh is being triggered every time the page gets loaded and that you're consequently in an infinite loop. Refresh can be triggered by javascript (onload handler) or a <meta> tag or a refresh header in the http response. I assume that this page loads fine in a browser btw. The first thing I'd try would be a breakpoint or print statement in HtmlPage.executeRefreshIfNeeded() to see what specifically has triggered the refresh each time. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |