From: Doru P. T. <dpt...@gm...> - 2008-08-28 09:49:12
|
Hi, I'm using HtmlUnit release 2.2 to request a public page. I use the NicelyResynchronizingAjaxController, since the page contains some Ajax code. For the simple Java code below I get a StackOverflowError. I think it's a recursion problem. I attached the stack trace is after the code. Does someone encountered this already? String url = " http://www.conforama.fr/webapp/wcs/stores/servlet/produit_fauteuil-de-bureau_siege-de-bureau_131584_10001_10051_-2_10178_10184_37159 "; try { WebClient wc = new WebClient(); wc.setThrowExceptionOnScriptError(false); wc.setAjaxController(new NicelyResynchronizingAjaxController()); System.out.println("requesting page..."); HtmlPage page = (HtmlPage)wc.getPage(url); System.out.println(page.asXml()); } catch (Exception e) { e.printStackTrace(); } Exception in thread "main" java.lang.StackOverflowError at java.util.ArrayList.<init>(Unknown Source) at com.gargoylesoftware.htmlunit.html.DomNode.safeGetDomListeners(DomNode.java:1467) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1430) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) at com.gargoylesoftware.htmlunit.html.DomNode.fireNodeAdded(DomNode.java:1438) ... Kind Regards, Doru |
From: reinhard s. <rei...@ao...> - 2014-03-05 23:19:45
|
Hi, I am using htmlunit 2.14 and get a StackOverflowError Exception in thread "main" java.lang.StackOverflowError at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.findInstanceIdInfo(BaseFunction.java:96) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:330) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) This is reproduceable with this code snippet. WebClient webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage("https://www.xing.com/"); Best regards Reinhard |
From: Ahmed A. <asa...@ya...> - 2014-03-06 01:28:14
|
Hi Reinhard, That particular error is now fixed in SVN. However, there is another one. I personally owe xing.com something ;) but currently it would take some time before look into. Please try to isolate a minimal case (without external .js) as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed ________________________________ From: reinhard schwab <rei...@ao...> To: htm...@li... Sent: Thursday, March 6, 2014 2:38 AM Subject: [Htmlunit-user] StackOverflowError Hi, I am using htmlunit 2.14 and get a StackOverflowError Exception in thread "main" java.lang.StackOverflowError at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.findInstanceIdInfo(BaseFunction.java:96) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:330) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) at com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) at net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) This is reproduceable with this code snippet. WebClient webClient = new WebClient(); webClient.getOptions().setJavaScriptEnabled(true); HtmlPage page = (HtmlPage) webClient.getPage("https://www.xing.com/"); Best regards Reinhard ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: reinhard s. <rei...@ao...> - 2014-03-06 13:18:31
|
Hi Ahmed, thanks for the fast reply and fix. I will try later and also to isolate the other problem, if I can recognize it. At the moment I have no idea about it. Best regards Reinhard On 06.03.2014 02:28, Ahmed Ashour wrote: > Hi Reinhard, > > That particular error is now fixed in SVN. > > However, there is another one. > > I personally owe xing.com something ;) but currently it would take > some time before look into. > > Please try to isolate a minimal case (without external .js) as hinted > in http://htmlunit.sourceforge.net/submittingJSBugs.html > > Ahmed > ------------------------------------------------------------------------ > *From:* reinhard schwab <rei...@ao...> > *To:* htm...@li... > *Sent:* Thursday, March 6, 2014 2:38 AM > *Subject:* [Htmlunit-user] StackOverflowError > > Hi, > > I am using htmlunit 2.14 and get a StackOverflowError > > Exception in thread "main" java.lang.StackOverflowError > at > net.sourceforge.htmlunit.corejs.javascript.BaseFunction.findInstanceIdInfo(BaseFunction.java:96) > at > net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:330) > at > com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) > at > net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) > at > net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) > at > com.gargoylesoftware.htmlunit.javascript.FunctionWrapper.put(FunctionWrapper.java:62) > at > net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:526) > at > net.sourceforge.htmlunit.corejs.javascript.IdScriptableObject.put(IdScriptableObject.java:357) > > This is reproduceable with this code snippet. > > WebClient webClient = new WebClient(); > webClient.getOptions().setJavaScriptEnabled(true); > HtmlPage page = (HtmlPage) webClient.getPage("https://www.xing.com/"); > > Best regards > Reinhard > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization > and the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > <mailto:Htm...@li...> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |