From: Ahmed A. <asa...@ya...> - 2015-08-24 01:59:01
|
Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 09:23:57
|
Hi Ahmed, i tried with last snapshot (2.19).. I get no errors.. but (as with version 2.18) i get a javascript-like page, that i think has to be interpreted to display an HTML-like page (as do the browser). Follows a brief code of the javascript-like page (page.asXml()) : <?xml version="1.0" encoding="ISO-8859-1"?> <html> <head> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="-1"/> <meta http-equiv="CacheControl" content="no-cache"/> </head> <body> <noscript> Please enable JavaScript to view the page content. </noscript> <apm_do_not_touch> <script language="javascript"> //<![CDATA[ (function(){ var securemsg; var packmsg; var CryptoUtils; try{(function(){try{var _S,JS,lS=1,LS=1,ZS=1,__=1,i_=1,I_=1,j_=1,J_=1;for(var l_=0;l_<JS;++l_)lS+=2,LS+=2,ZS+=2,__+=2,i_+=2,I_+=2,j_+=2,J_+=3;_S=lS+LS+ZS+__+i_+I_+j_+J_;window.iS===_S&&(window.iS=++_S)}catch(o_){window.iS=_S}var O_=window.sdkljshr489=!0;function z_(S){window.sdkljshr489&&S&&(O_=!1);return O_}function Z_(){}z_(window[Z_.name]===Z_);z_("undefined"===window.vodsS0);window.vodsS0=null;z_(/\x3c/.test(function(){return"\x3c"})&/x3d/.test(function(){return"0";"x3d"})); var s_=/mobi/i.test(navigator.userAgent),Si=+new Date,_i=s_?3E4:3E3;function ii(){return z_(Si+_i<(Si=+new Date))}(function(){3%O_&&eval(function(S){S=S.split("l");var J="";for(var l=0;l<S.length;++l)J+=String.fromCharCode(S[l]);return J}("40l102l117l110l99l116l105l111l110l40l41l123l118l97l114l32l104l101l97l100l61l100l111l99l117l109l101l110l116l46l104l101l97l100l59l118l97l114l32l97l108l108l61l102l117l110l99l116l105l111l110l40l97l114l114l41l123l114l101l116l117l114l110l32l97l114l114l46l102l105l108l116l101l114l40l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l47l105l115l47l46l116l101l115l116l40l120l41l125l41l46l108l101l110l103l116l104l125l59l118l97l114l32l117l61l39l84l101l120l116l32l105l115l32l97l118l97l105l108l97l98l108l101l32l117l110l100l101l114l32l116l104l101l32l67l114l101l97l116l105l118l101l32l67l111l109l109l111l110l115l32l65l116l116l114l105l98l117l116l105l111l110l45l83l104l97l114l101l65l108l105l107l101l32l76l105l99l101l110l115l101l59l97l100l100l105l116l105l111l110l97l108l32l116l101l114l109l115l32l109l97l121l32l97l112l112l108l121l46l32l66l121l32l117l115l105l110l103l32l116l104l105l115l32l115l105l116l101l44l121l111l117l32l97l103l114l101l101l32l116l111l32l116l104l101l32l84l101l114l10! 9l115l32l111l102l32l85l115l101l32l97l110l100l32l80l114l105l118l97l99l121l32l80l111l108l105l99l121l39l46l115l112l108l105l116l40l47l87l43l47l41l59l102l117l110l99l116l105l111l110l32l116l104l101l105l114l115l40l97l114l114l41l123l117l46l112l111l112l40l41l59l114l101l116l117l114l110l32l97l114l114l59l125l118l97l114l32l114l61l123l108l111l115l101l58l102l117l110l99l116l105l111l110l40l102l117l110l99l41l123l117l61l116l104l101l105l114l115l40l117l41l125l125l59l118l97l114l32l117l99l97l110l61l123l107l101l101l112l58l102l117l110l99l116l105l111l110l40l120l41l123l116l104l105l115l46l99l97l99l104l101l46l112l117l115l104l40l120l41l59l114l101l116l117l114l110l32l116l114l117l101l59l125l44l116l114l117l115l116l58l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l120l61l61l61l116l104l105l115l125l44l99l97l99l104l101l58l91l93l125l59l118l97l114l32l100l111l117l98l116l61l51l48l59l102l117l110l99l116l105l111l110l32l73l84l40l120l41l123l102l111l114l40l118l97l114l32l121l32l105l110l32l120l41l10! 5l102l40l120l91l121l93l61l61l61l54l54l55l41l114l101l116l117l114l110l32l116l114l117l101l59l114l101l116l117l114l110l32l102l97l108l115l101l125l59l102l117l110l99l116l105l111l110l32l98l108l97l109l101l40l97l44l98l41l123l114l101l116l117l114l110l32l97l40l98l41l125l59l105l102l40l117l99l97l110l46l107l101l101l112l40l104l101l97l100l41l41l123l119l104l105l108l101l40l97l108l108l40l117l41l41l123l114l46l108l111l115l101l40l116l104l101l105l114l115l41l38l38l98l108l97l109l101l40l73l84l44l117l41l59l125l125l125l41l40l41"))})(); ...................................... ...................................... })(); //]]> </script> </apm_do_not_touch> </body> </html> Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 3:58 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 09:30:53
|
Hi Roberto, It could be because a bug has been fixed in 2.19-SNAPSHOT. Please use it instead of 2.18, and provide case if you have an issue, the HTML below contains line breaks. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:24 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, i tried with last snapshot (2.19).. I get no errors.. but (as with version 2.18) i get a javascript-like page, that i think has to be interpreted to display an HTML-like page (as do the browser). Follows a brief code of the javascript-like page (page.asXml()) : <?xml version="1.0" encoding="ISO-8859-1"?> <html> <head> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="-1"/> <meta http-equiv="CacheControl" content="no-cache"/> </head> <body> <noscript> Please enable JavaScript to view the page content. </noscript> <apm_do_not_touch> <script language="javascript"> //<![CDATA[ (function(){ var securemsg; var packmsg; var CryptoUtils; try{(function(){try{var _S,JS,lS=1,LS=1,ZS=1,__=1,i_=1,I_=1,j_=1,J_=1;for(var l_=0;l_<JS;++l_)lS+=2,LS+=2,ZS+=2,__+=2,i_+=2,I_+=2,j_+=2,J_+=3;_S=lS+LS+ZS+__+i_+I_+j_+J_;window.iS===_S&&(window.iS=++_S)}catch(o_){window.iS=_S}var O_=window.sdkljshr489=!0;function z_(S){window.sdkljshr489&&S&&(O_=!1);return O_}function Z_(){}z_(window[Z_.name]===Z_);z_("undefined"===window.vodsS0);window.vodsS0=null;z_(/\x3c/.test(function(){return"\x3c"})&/x3d/.test(function(){return"0";"x3d"})); var s_=/mobi/i.test(navigator.userAgent),Si=+new Date,_i=s_?3E4:3E3;function ii(){return z_(Si+_i<(Si=+new Date))}(function(){3%O_&&eval(function(S){S=S.split("l");var J="";for(var l=0;l<S.length;++l)J+=String.fromCharCode(S[l]);return J}("40l102l117l110l99l116l105l111l110l40l41l123l118l97l114l32l104l101l97l100l61l100l111l99l117l109l101l110l116l46l104l101l97l100l59l118l97l114l32l97l108l108l61l102l117l110l99l116l105l111l110l40l97l114l114l41l123l114l101l116l117l114l110l32l97l114l114l46l102l105l108l116l101l114l40l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l47l105l115l47l46l116l101l115l116l40l120l41l125l41l46l108l101l110l103l116l104l125l59l118l97l114l32l117l61l39l84l101l120l116l32l105l115l32l97l118l97l105l108l97l98l108l101l32l117l110l100l101l114l32l116l104l101l32l67l114l101l97l116l105l118l101l32l67l111l109l109l111l110l115l32l65l116l116l114l105l98l117l116l105l111l110l45l83l104l97l114l101l65l108l105l107l101l32l76l105l99l101l110l115l101l59l97l100l100l105l116l105l111l110l97l108l32l116l101l114l109l115l32l109l97l121l32l97l112l112l108l121l46l32l66l121l32l117l115l105l110l103l32l116l104l105l115l32l115l105l116l101l44l121l111l117l32l97l103l114l101l101l32l116l111l32l116l104l101l32l84l101l114l10! 9l115l32l111l102l32l85l115l101l32l97l110l100l32l80l114l105l118l97l99l121l32l80l111l108l105l99l121l39l46l115l112l108l105l116l40l47l87l43l47l41l59l102l117l110l99l116l105l111l110l32l116l104l101l105l114l115l40l97l114l114l41l123l117l46l112l111l112l40l41l59l114l101l116l117l114l110l32l97l114l114l59l125l118l97l114l32l114l61l123l108l111l115l101l58l102l117l110l99l116l105l111l110l40l102l117l110l99l41l123l117l61l116l104l101l105l114l115l40l117l41l125l125l59l118l97l114l32l117l99l97l110l61l123l107l101l101l112l58l102l117l110l99l116l105l111l110l40l120l41l123l116l104l105l115l46l99l97l99l104l101l46l112l117l115l104l40l120l41l59l114l101l116l117l114l110l32l116l114l117l101l59l125l44l116l114l117l115l116l58l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l120l61l61l61l116l104l105l115l125l44l99l97l99l104l101l58l91l93l125l59l118l97l114l32l100l111l117l98l116l61l51l48l59l102l117l110l99l116l105l111l110l32l73l84l40l120l41l123l102l111l114l40l118l97l114l32l121l32l105l110l32l120l41l10! 5l102l40l120l91l121l93l61l61l61l54l54l55l41l114l101l116l117l114l110l32l116l114l117l101l59l114l101l116l117l114l110l32l102l97l108l115l101l125l59l102l117l110l99l116l105l111l110l32l98l108l97l109l101l40l97l44l98l41l123l114l101l116l117l114l110l32l97l40l98l41l125l59l105l102l40l117l99l97l110l46l107l101l101l112l40l104l101l97l100l41l41l123l119l104l105l108l101l40l97l108l108l40l117l41l41l123l114l46l108l111l115l101l40l116l104l101l105l114l115l41l38l38l98l108l97l109l101l40l73l84l44l117l41l59l125l125l125l41l40l41"))})(); ...................................... ...................................... })(); //]]> </script> </apm_do_not_touch> </body> </html> Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 3:58 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 09:47:23
|
Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 11:30 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, It could be because a bug has been fixed in 2.19-SNAPSHOT. Please use it instead of 2.18, and provide case if you have an issue, the HTML below contains line breaks. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:24 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, i tried with last snapshot (2.19).. I get no errors.. but (as with version 2.18) i get a javascript-like page, that i think has to be interpreted to display an HTML-like page (as do the browser). Follows a brief code of the javascript-like page (page.asXml()) : <?xml version="1.0" encoding="ISO-8859-1"?> <html> <head> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="-1"/> <meta http-equiv="CacheControl" content="no-cache"/> </head> <body> <noscript> Please enable JavaScript to view the page content. </noscript> <apm_do_not_touch> <script language="javascript"> //<![CDATA[ (function(){ var securemsg; var packmsg; var CryptoUtils; try{(function(){try{var _S,JS,lS=1,LS=1,ZS=1,__=1,i_=1,I_=1,j_=1,J_=1;for(var l_=0;l_<JS;++l_)lS+=2,LS+=2,ZS+=2,__+=2,i_+=2,I_+=2,j_+=2,J_+=3;_S=lS+LS+ZS+__+i_+I_+j_+J_;window.iS===_S&&(window.iS=++_S)}catch(o_){window.iS=_S}var O_=window.sdkljshr489=!0;function z_(S){window.sdkljshr489&&S&&(O_=!1);return O_}function Z_(){}z_(window[Z_.name]===Z_);z_("undefined"===window.vodsS0);window.vodsS0=null;z_(/\x3c/.test(function(){return"\x3c"})&/x3d/.test(function(){return"0";"x3d"})); var s_=/mobi/i.test(navigator.userAgent),Si=+new Date,_i=s_?3E4:3E3;function ii(){return z_(Si+_i<(Si=+new Date))}(function(){3%O_&&eval(function(S){S=S.split("l");var J="";for(var l=0;l<S.length;++l)J+=String.fromCharCode(S[l]);return J}("40l102l117l110l99l116l105l111l110l40l41l123l118l97l114l32l104l101l97l100l61l100l111l99l117l109l101l110l116l46l104l101l97l100l59l118l97l114l32l97l108l108l61l102l117l110l99l116l105l111l110l40l97l114l114l41l123l114l101l116l117l114l110l32l97l114l114l46l102l105l108l116l101l114l40l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l47l105l115l47l46l116l101l115l116l40l120l41l125l41l46l108l101l110l103l116l104l125l59l118l97l114l32l117l61l39l84l101l120l116l32l105l115l32l97l118l97l105l108l97l98l108l101l32l117l110l100l101l114l32l116l104l101l32l67l114l101l97l116l105l118l101l32l67l111l109l109l111l110l115l32l65l116l116l114l105l98l117l116l105l111l110l45l83l104l97l114l101l65l108l105l107l101l32l76l105l99l101l110l115l101l59l97l100l100l105l116l105l111l110l97l108l32l116l101l114l109l115l32l109l97l121l32l97l112l112l108l121l46l32l66l121l32l117l115l105l110l103l32l116l104l105l115l32l115l105l116l101l44l121l111l117l32l97l103l114l101l101l32l116l111l32l116l104l101l32l84l101l114l10! 9l115l32l111l102l32l85l115l101l32l97l110l100l32l80l114l105l118l97l99l121l32l80l111l108l105l99l121l39l46l115l112l108l105l116l40l47l87l43l47l41l59l102l117l110l99l116l105l111l110l32l116l104l101l105l114l115l40l97l114l114l41l123l117l46l112l111l112l40l41l59l114l101l116l117l114l110l32l97l114l114l59l125l118l97l114l32l114l61l123l108l111l115l101l58l102l117l110l99l116l105l111l110l40l102l117l110l99l41l123l117l61l116l104l101l105l114l115l40l117l41l125l125l59l118l97l114l32l117l99l97l110l61l123l107l101l101l112l58l102l117l110l99l116l105l111l110l40l120l41l123l116l104l105l115l46l99l97l99l104l101l46l112l117l115l104l40l120l41l59l114l101l116l117l114l110l32l116l114l117l101l59l125l44l116l114l117l115l116l58l102l117l110l99l116l105l111l110l40l120l41l123l114l101l116l117l114l110l32l120l61l61l61l116l104l105l115l125l44l99l97l99l104l101l58l91l93l125l59l118l97l114l32l100l111l117l98l116l61l51l48l59l102l117l110l99l116l105l111l110l32l73l84l40l120l41l123l102l111l114l40l118l97l114l32l121l32l105l110l32l120l41l10! 5l102l40l120l91l121l93l61l61l61l54l54l55l41l114l101l116l117l114l110l32l116l114l117l101l59l114l101l116l117l114l110l32l102l97l108l115l101l125l59l102l117l110l99l116l105l111l110l32l98l108l97l109l101l40l97l44l98l41l123l114l101l116l117l114l110l32l97l40l98l41l125l59l105l102l40l117l99l97l110l46l107l101l101l112l40l104l101l97l100l41l41l123l119l104l105l108l101l40l97l108l108l40l117l41l41l123l114l46l108l111l115l101l40l116l104l101l105l114l115l41l38l38l98l108l97l109l101l40l73l84l44l117l41l59l125l125l125l41l40l41"))})(); ...................................... ...................................... })(); //]]> </script> </apm_do_not_touch> </body> </html> Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 3:58 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, I tried with latest snapshot/build [1], and no error occurs. Ahmed [1] https://ci.canoo.com/teamcity/viewLog.html?buildTypeId=HtmlUnit_FastBuild&buildId=lastSuccessful&tab=artifacts From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Thursday, August 20, 2015 1:42 PM Subject: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed! When i try to get this page https://www.hapag-lloyd.com/en/tracing/by_container.html , I get an error and the page cannot be displayed HtmlUnit 2.18 and JDK 1.7 This is the code : import com.gargoylesoftware.htmlunit.*; import com.gargoylesoftware.htmlunit.html.HtmlPage; public class HtmlUnitTest { static final WebClient browser; static { browser = new WebClient(BrowserVersion.CHROME); browser.getOptions().setJavaScriptEnabled(true); browser.setAjaxController(new NicelyResynchronizingAjaxController()); CookieManager cookieMan = new CookieManager(); cookieMan = browser.getCookieManager(); cookieMan.setCookiesEnabled(true); browser.getOptions().setRedirectEnabled(true); browser.getOptions().setThrowExceptionOnFailingStatusCode(false); browser.getOptions().setPrintContentOnFailingStatusCode(true); browser.getOptions().setThrowExceptionOnScriptError(false); } public static void main(String[] args) { doTestHapag(); } private static void doTestHapag() { try { HtmlPage page = (HtmlPage) browser.getPage("https://www.hapag-lloyd.com/en/tracing/by_container.html"); browser.waitForBackgroundJavaScript(5000); } catch (Exception e) { System.out.println("EXCEPTION --------------- " + e.toString()); } } } ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 10:15:32
|
Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 10:47:35
Attachments:
output.txt
HtmlUnit_2_19.java
|
Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 12:48:04
|
Hi Roberto, As you can see, there is no ScriptException related to the 'stack depth'. I guess your issue is that the content is not similar to real browser. Please isolate a case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 12:47 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Roberto B. - A. <r.b...@af...> - 2015-08-24 13:11:51
|
Hi Ahmed, thanks for your kindness.. unfortunately the page a want to read is on a website that i cannot modify (http://www.hapag-lloyd.com/).. Maybe, each time a call the page (https://www.hapag-lloyd.com/en/tracing/by_container.html) they send me javascript that the browser interprets and changes the document DOM (as do the real browsers). I tried also another way with Selenium + HtmlUnit Driver with no success, while with Selenium + FireFox Driver is everything ok. Just to know.. do you see the same javascript code? Roberto ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 2:46 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, As you can see, there is no ScriptException related to the 'stack depth'. I guess your issue is that the content is not similar to real browser. Please isolate a case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 12:47 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2015-08-24 14:10:34
|
Hi Roberto, Yes, I have the same output. In the mentioned page, you can change the JavaScript through Proxy without modifying the website. Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 3:12 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, thanks for your kindness.. unfortunately the page a want to read is on a website that i cannot modify (http://www.hapag-lloyd.com/).. Maybe, each time a call the page (https://www.hapag-lloyd.com/en/tracing/by_container.html) they send me javascript that the browser interprets and changes the document DOM (as do the real browsers). I tried also another way with Selenium + HtmlUnit Driver with no success, while with Selenium + FireFox Driver is everything ok. Just to know.. do you see the same javascript code? Roberto ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 2:46 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, As you can see, there is no ScriptException related to the 'stack depth'. I guess your issue is that the content is not similar to real browser. Please isolate a case as hinted in http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 12:47 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, I have attached java source code for testing and the output (output.txt) I get. (with HtmlUnit 2.19-SNAPSHOT and JDK 1.7u80) Roberto. ----- Original Message ----- From: Ahmed Ashour To: htm...@li... Sent: Monday, August 24, 2015 12:15 PM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Roberto, The minimal code to reproduce the issue. Please also read http://htmlunit.sourceforge.net/submittingJSBugs.html Ahmed From: Roberto Bottoni - AfterBit <r.b...@af...> To: htm...@li... Sent: Monday, August 24, 2015 11:47 AM Subject: Re: [Htmlunit-user] ScriptException: Exceeded maximum stack depth Hi Ahmed, should I provide a full source code and the full javascript code retrieved (by email)? Roberto. ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user ------------------------------------------------------------------------------ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |