You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(10) |
Aug
(30) |
Sep
(15) |
Oct
(26) |
Nov
(12) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(27) |
Mar
(73) |
Apr
(17) |
May
(17) |
Jun
(78) |
Jul
(67) |
Aug
(60) |
Sep
(89) |
Oct
(140) |
Nov
(173) |
Dec
(46) |
2004 |
Jan
(39) |
Feb
(7) |
Mar
(21) |
Apr
(31) |
May
(13) |
Jun
(86) |
Jul
(14) |
Aug
(14) |
Sep
(53) |
Oct
(184) |
Nov
(186) |
Dec
(319) |
2005 |
Jan
(336) |
Feb
(274) |
Mar
(226) |
Apr
(102) |
May
(196) |
Jun
(130) |
Jul
(119) |
Aug
(143) |
Sep
(76) |
Oct
(85) |
Nov
(70) |
Dec
(159) |
2006 |
Jan
(125) |
Feb
(100) |
Mar
(80) |
Apr
(39) |
May
(55) |
Jun
(58) |
Jul
(50) |
Aug
(76) |
Sep
(55) |
Oct
(101) |
Nov
(163) |
Dec
(85) |
2007 |
Jan
(56) |
Feb
(53) |
Mar
(180) |
Apr
(221) |
May
(290) |
Jun
(199) |
Jul
(322) |
Aug
(515) |
Sep
(121) |
Oct
(297) |
Nov
(177) |
Dec
(103) |
2008 |
Jan
(516) |
Feb
(315) |
Mar
(586) |
Apr
(615) |
May
(197) |
Jun
(381) |
Jul
(390) |
Aug
(195) |
Sep
(603) |
Oct
(499) |
Nov
(622) |
Dec
(350) |
2009 |
Jan
(313) |
Feb
(338) |
Mar
(507) |
Apr
(317) |
May
(197) |
Jun
(375) |
Jul
(235) |
Aug
(424) |
Sep
(410) |
Oct
(338) |
Nov
(286) |
Dec
(306) |
2010 |
Jan
(367) |
Feb
(339) |
Mar
(371) |
Apr
(172) |
May
(233) |
Jun
(264) |
Jul
(421) |
Aug
(110) |
Sep
(218) |
Oct
(189) |
Nov
(185) |
Dec
(168) |
2011 |
Jan
(145) |
Feb
(213) |
Mar
(205) |
Apr
(64) |
May
(159) |
Jun
(67) |
Jul
(104) |
Aug
(126) |
Sep
(144) |
Oct
(106) |
Nov
(154) |
Dec
(225) |
2012 |
Jan
(111) |
Feb
(87) |
Mar
(131) |
Apr
(102) |
May
(180) |
Jun
(160) |
Jul
(412) |
Aug
(315) |
Sep
(311) |
Oct
(369) |
Nov
(464) |
Dec
(284) |
2013 |
Jan
(343) |
Feb
(165) |
Mar
(174) |
Apr
(120) |
May
(153) |
Jun
(134) |
Jul
(202) |
Aug
(105) |
Sep
(228) |
Oct
(332) |
Nov
(192) |
Dec
(219) |
2014 |
Jan
(348) |
Feb
(194) |
Mar
(189) |
Apr
(188) |
May
(297) |
Jun
(206) |
Jul
(79) |
Aug
(279) |
Sep
(111) |
Oct
(159) |
Nov
(61) |
Dec
(78) |
2015 |
Jan
(152) |
Feb
(145) |
Mar
(239) |
Apr
(223) |
May
(248) |
Jun
(296) |
Jul
(172) |
Aug
(189) |
Sep
(338) |
Oct
(217) |
Nov
(131) |
Dec
(184) |
2016 |
Jan
(118) |
Feb
(221) |
Mar
(414) |
Apr
(412) |
May
(303) |
Jun
(133) |
Jul
(129) |
Aug
(121) |
Sep
(136) |
Oct
(67) |
Nov
(89) |
Dec
(245) |
2017 |
Jan
(349) |
Feb
(90) |
Mar
(328) |
Apr
(430) |
May
(284) |
Jun
(199) |
Jul
(164) |
Aug
(120) |
Sep
(57) |
Oct
(105) |
Nov
(108) |
Dec
(146) |
2018 |
Jan
(85) |
Feb
(48) |
Mar
(97) |
Apr
(62) |
May
(64) |
Jun
(136) |
Jul
(123) |
Aug
(87) |
Sep
(17) |
Oct
(27) |
Nov
(9) |
Dec
(16) |
2019 |
Jan
(9) |
Feb
(17) |
Mar
(18) |
Apr
(14) |
May
(8) |
Jun
|
Jul
(6) |
Aug
(12) |
Sep
(5) |
Oct
|
Nov
(2) |
Dec
|
2020 |
Jan
(8) |
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
(6) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: RBRi <rb...@us...> - 2018-10-24 17:58:16
|
- **status**: open --> accepted - **assigned_to**: RBRi --- ** [bugs:#1996] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking send** **Status:** accepted **Group:** 2.33 **Created:** Wed Oct 17, 2018 07:43 PM UTC by Senthil K Ponnusamy **Last Updated:** Wed Oct 24, 2018 04:17 PM UTC **Owner:** RBRi HtmlUnit is not loading javascript and failing with following error, XXXX com.gargoylesoftware.htmlunit.ScriptException: Exception invoking send at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:739) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:922) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:316) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:396) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:267) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:802) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:758) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1194) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1134) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:221) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:314) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3179) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2132) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:250) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:196) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:158) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:531) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:398) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:315) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:466) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:448) Tried using different browser options. --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-23 19:12:31
|
- **status**: accepted --> closed - **Comment**: Fixed in SVN; tahnaksfor reporting. As soon as the (new) build server is ready you can download a new build at http://83.169.43.181/jenkins/job/HtmlUnit%20-%20Fast%20Build/ Will inform on https://twitter.com/HtmlUnit if a new SNAPSHOT build is available for maven. --- ** [bugs:#1998] Cookie expiration data parsing wrong** **Status:** closed **Group:** 2.33 **Created:** Tue Oct 23, 2018 01:18 AM UTC by Rural Hunter **Last Updated:** Tue Oct 23, 2018 06:57 PM UTC **Owner:** RBRi Htmlunit fails to set a cookie. I checked the source and found the expiration data was parsed wrongly. The cookie expiration string is "Sun Jan 20 2019 17:45:00 GMT+0800 (CST)". Htmlunit parses it to 0001-4-13 11:17:45 then regards it as expired. Real browser(Firefox) handles it correctly. --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-23 18:57:51
|
- **status**: open --> accepted - **assigned_to**: RBRi --- ** [bugs:#1998] Cookie expiration data parsing wrong** **Status:** accepted **Group:** 2.33 **Created:** Tue Oct 23, 2018 01:18 AM UTC by Rural Hunter **Last Updated:** Tue Oct 23, 2018 03:35 AM UTC **Owner:** RBRi Htmlunit fails to set a cookie. I checked the source and found the expiration data was parsed wrongly. The cookie expiration string is "Sun Jan 20 2019 17:45:00 GMT+0800 (CST)". Htmlunit parses it to 0001-4-13 11:17:45 then regards it as expired. Real browser(Firefox) handles it correctly. --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-18 18:23:59
|
- **status**: accepted --> closed - **Comment**: Thanks --- ** [bugs:#1993] Javascript: DIV.innerHTML adding operation bug** **Status:** closed **Group:** 2.33 **Labels:** javascript **Created:** Tue Oct 16, 2018 02:44 AM UTC by Rural Hunter **Last Updated:** Thu Oct 18, 2018 09:19 AM UTC **Owner:** RBRi In real browser, when I add the inner html of one div A to another div B, the height of B is also added by the height of A. But in htmlunit, it doesn't. The test code to reproduce: ~~~ public static void testDivAdd() throws Exception { List<String> alerts = new ArrayList<>(); WebClient wc=new WebClient(); wc.setAlertHandler(new CollectingAlertHandler(alerts)); wc.getPage(HtmlUnitTest.class.getResource("divadd.html")); System.out.println(alerts.toString()); } ~~~ The content of the divadd.html: ~~~ <html> <head> <title>test</title> </head> <body> <div id="div1" style="height: 18px"> aaa<br/> </div> <div id="templayer" ></div> <script language="JavaScript"> function init(){ templayer.innerHTML=""; alert("before "+templayer.offsetHeight); templayer.innerHTML+=div1.innerHTML; alert("after "+templayer.offsetHeight); } document.body.onload=init; </script> </body> </html> ~~~ --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-18 06:48:54
|
I guess you second case is not related to the innerHtml call. If yes please open a new issue for this. --- ** [bugs:#1993] Javascript: DIV.innerHTML adding operation bug** **Status:** accepted **Group:** 2.33 **Labels:** javascript **Created:** Tue Oct 16, 2018 02:44 AM UTC by Rural Hunter **Last Updated:** Thu Oct 18, 2018 06:47 AM UTC **Owner:** RBRi In real browser, when I add the inner html of one div A to another div B, the height of B is also added by the height of A. But in htmlunit, it doesn't. The test code to reproduce: ~~~ public static void testDivAdd() throws Exception { List<String> alerts = new ArrayList<>(); WebClient wc=new WebClient(); wc.setAlertHandler(new CollectingAlertHandler(alerts)); wc.getPage(HtmlUnitTest.class.getResource("divadd.html")); System.out.println(alerts.toString()); } ~~~ The content of the divadd.html: ~~~ <html> <head> <title>test</title> </head> <body> <div id="div1" style="height: 18px"> aaa<br/> </div> <div id="templayer" ></div> <script language="JavaScript"> function init(){ templayer.innerHTML=""; alert("before "+templayer.offsetHeight); templayer.innerHTML+=div1.innerHTML; alert("after "+templayer.offsetHeight); } document.body.onload=init; </script> </body> </html> ~~~ --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-18 06:47:22
|
- **status**: closed --> accepted --- ** [bugs:#1993] Javascript: DIV.innerHTML adding operation bug** **Status:** accepted **Group:** 2.33 **Labels:** javascript **Created:** Tue Oct 16, 2018 02:44 AM UTC by Rural Hunter **Last Updated:** Thu Oct 18, 2018 05:59 AM UTC **Owner:** RBRi In real browser, when I add the inner html of one div A to another div B, the height of B is also added by the height of A. But in htmlunit, it doesn't. The test code to reproduce: ~~~ public static void testDivAdd() throws Exception { List<String> alerts = new ArrayList<>(); WebClient wc=new WebClient(); wc.setAlertHandler(new CollectingAlertHandler(alerts)); wc.getPage(HtmlUnitTest.class.getResource("divadd.html")); System.out.println(alerts.toString()); } ~~~ The content of the divadd.html: ~~~ <html> <head> <title>test</title> </head> <body> <div id="div1" style="height: 18px"> aaa<br/> </div> <div id="templayer" ></div> <script language="JavaScript"> function init(){ templayer.innerHTML=""; alert("before "+templayer.offsetHeight); templayer.innerHTML+=div1.innerHTML; alert("after "+templayer.offsetHeight); } document.body.onload=init; </script> </body> </html> ~~~ --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-18 06:46:41
|
For analyzing this i need more details * usually there is a inner exception - please post this also (or even better the whole log output * i guess you are doing a simple getPage(url) call, i need the url also to debug this --- ** [bugs:#1996] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking send** **Status:** open **Group:** 2.33 **Created:** Wed Oct 17, 2018 07:43 PM UTC by Senthil K Ponnusamy **Last Updated:** Wed Oct 17, 2018 07:46 PM UTC **Owner:** nobody HtmlUnit is not loading javascript and failing with following error, XXXX com.gargoylesoftware.htmlunit.ScriptException: Exception invoking send at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:739) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:922) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:316) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:396) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:267) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:802) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:758) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1194) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1134) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:221) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:314) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3179) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2132) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:250) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:196) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:267) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:158) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:531) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:398) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:315) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:466) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:448) Tried using different browser options. --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-17 18:23:49
|
- **Comment**: Thanks, PR merged already. The new artifacts are available on the new build machine. Report future issues here or on github, i will take care of both for the next time. --- ** [bugs:#1995] Some special cases not handled correctly when resolving URLs** **Status:** open **Group:** 2.33 **Created:** Wed Oct 17, 2018 04:27 PM UTC by Joerg Werner **Last Updated:** Wed Oct 17, 2018 04:27 PM UTC **Owner:** nobody When resolving the final URL from a base URL and a (relative) path, there are two special cases where HtmlUnit behaves differently compared with real browsers. This happens only if the path starts with "/..". baseUrl: "http://www.example.com/some/path" path: "/...there-used-to-be-a-time/index.html" expected target URL: "http://www.example.com/...there-used-to-be-a-time/index.html" actual target URL: "http://www.example.com.there-used-to-be-a-time/index.html" path: "/..there-used-to-be-a-time/index.html" expected target URL: "http://www.example.com/..there-used-to-be-a-time/index.html" actual target URL: "http://www.example.comthere-used-to-be-a-time/index.html" I believe I have a fix for that. Will provide a pull request later this evening. Thanks! PS: Is this still the right place to report issues or shall we rather use GitHub Issues instead? --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-17 18:09:36
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [bugs:#1995] Some special cases not handled correctly when resolving URLs** **Status:** closed **Group:** 2.33 **Created:** Wed Oct 17, 2018 04:27 PM UTC by Joerg Werner **Last Updated:** Wed Oct 17, 2018 06:09 PM UTC **Owner:** RBRi When resolving the final URL from a base URL and a (relative) path, there are two special cases where HtmlUnit behaves differently compared with real browsers. This happens only if the path starts with "/..". baseUrl: "http://www.example.com/some/path" path: "/...there-used-to-be-a-time/index.html" expected target URL: "http://www.example.com/...there-used-to-be-a-time/index.html" actual target URL: "http://www.example.com.there-used-to-be-a-time/index.html" path: "/..there-used-to-be-a-time/index.html" expected target URL: "http://www.example.com/..there-used-to-be-a-time/index.html" actual target URL: "http://www.example.comthere-used-to-be-a-time/index.html" I believe I have a fix for that. Will provide a pull request later this evening. Thanks! PS: Is this still the right place to report issues or shall we rather use GitHub Issues instead? --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-17 17:46:18
|
- **status**: open --> closed - **Comment**: Have added the cache cleanup and a unit test. Thanks for reporting. --- ** [bugs:#1993] Javascript: DIV.innerHTML adding operation bug** **Status:** closed **Group:** 2.33 **Labels:** javascript **Created:** Tue Oct 16, 2018 02:44 AM UTC by Rural Hunter **Last Updated:** Tue Oct 16, 2018 09:48 AM UTC **Owner:** RBRi In real browser, when I add the inner html of one div A to another div B, the height of B is also added by the height of A. But in htmlunit, it doesn't. The test code to reproduce: ~~~ public static void testDivAdd() throws Exception { List<String> alerts = new ArrayList<>(); WebClient wc=new WebClient(); wc.setAlertHandler(new CollectingAlertHandler(alerts)); wc.getPage(HtmlUnitTest.class.getResource("divadd.html")); System.out.println(alerts.toString()); } ~~~ The content of the divadd.html: ~~~ <html> <head> <title>test</title> </head> <body> <div id="div1" style="height: 18px"> aaa<br/> </div> <div id="templayer" ></div> <script language="JavaScript"> function init(){ templayer.innerHTML=""; alert("before "+templayer.offsetHeight); templayer.innerHTML+=div1.innerHTML; alert("after "+templayer.offsetHeight); } document.body.onload=init; </script> </body> </html> ~~~ --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-11 06:11:48
|
Outside of the warning; is there anything left to do here? --- ** [bugs:#1992] Error in validation of required fields** **Status:** pending **Group:** 2.33 **Created:** Wed Oct 10, 2018 03:00 PM UTC by Leonardo Silva Medina **Last Updated:** Thu Oct 11, 2018 06:10 AM UTC **Owner:** RBRi Hi !! I try to perform a test on a form and when clicking I do not do any event, the form has an elment of <input type="text" id="idUserRecupera" class="autoMayuscula sinTildes" autocomplete="off" required=""> to appear in the class /src/main/java/com/gargoylesoftware/htmlunit/html/HtmlForm.java => method public boolean isValid() { return !isRequiredSupported() || getAttributeDirect("required") == ATTRIBUTE_NOT_DEFINED || !getAttributeDirect("value").isEmpty(); } there is a method that validates the required fields, and I note that it has three validation criteria with a conditional || ( OR ), following the code for my case the condition (getAttributeDirect ("required") == ATTRIBUTE_NOT_DEFINED) this returns as FALSE result, but observed in more detail I see that it should be true since, getAttributeDirect ("required") = "" ATTRIBUTE_NOT_DEFINED = "", change it to getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) and return the result that should be TRUE, in my opinion it is the indicated comparison to determine if the values are the same. public boolean isValid() { return !isRequiredSupported() || getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) || !getAttributeDirect("value").isEmpty(); } --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-11 06:10:36
|
> Thanks a lot for your time and effort You are welcome > As I can see from your examples, the form should never submit if it contains an input > changed between releases The idea of HtmlUnit is to mimic the supported browsers as close as possible. Therefor we write most of our unit test in a way to be able to execute the tests with real browsers (selenium) to figure out what the expected results are and later on we can run the same suite with HtmlUnit to proove the simulation works. The test for required where missing so far, so writing this had to be done anyway. Summary: if you find a case where the HtmlUnit result/behaviour is different from the real browser then you found a bug > could emit a warning similar Good suggestion will add this later today and make a new snapshot build available --- ** [bugs:#1992] Error in validation of required fields** **Status:** pending **Group:** 2.33 **Created:** Wed Oct 10, 2018 03:00 PM UTC by Leonardo Silva Medina **Last Updated:** Wed Oct 10, 2018 07:56 PM UTC **Owner:** RBRi Hi !! I try to perform a test on a form and when clicking I do not do any event, the form has an elment of <input type="text" id="idUserRecupera" class="autoMayuscula sinTildes" autocomplete="off" required=""> to appear in the class /src/main/java/com/gargoylesoftware/htmlunit/html/HtmlForm.java => method public boolean isValid() { return !isRequiredSupported() || getAttributeDirect("required") == ATTRIBUTE_NOT_DEFINED || !getAttributeDirect("value").isEmpty(); } there is a method that validates the required fields, and I note that it has three validation criteria with a conditional || ( OR ), following the code for my case the condition (getAttributeDirect ("required") == ATTRIBUTE_NOT_DEFINED) this returns as FALSE result, but observed in more detail I see that it should be true since, getAttributeDirect ("required") = "" ATTRIBUTE_NOT_DEFINED = "", change it to getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) and return the result that should be TRUE, in my opinion it is the indicated comparison to determine if the values are the same. public boolean isValid() { return !isRequiredSupported() || getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) || !getAttributeDirect("value").isEmpty(); } --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-10 17:45:07
|
- **status**: accepted --> pending --- ** [bugs:#1992] Error in validation of required fields** **Status:** pending **Group:** 2.33 **Created:** Wed Oct 10, 2018 03:00 PM UTC by Leonardo Silva Medina **Last Updated:** Wed Oct 10, 2018 05:44 PM UTC **Owner:** RBRi Hi !! I try to perform a test on a form and when clicking I do not do any event, the form has an elment of <input type="text" id="idUserRecupera" class="autoMayuscula sinTildes" autocomplete="off" required=""> to appear in the class /src/main/java/com/gargoylesoftware/htmlunit/html/HtmlForm.java => method public boolean isValid() { return !isRequiredSupported() || getAttributeDirect("required") == ATTRIBUTE_NOT_DEFINED || !getAttributeDirect("value").isEmpty(); } there is a method that validates the required fields, and I note that it has three validation criteria with a conditional || ( OR ), following the code for my case the condition (getAttributeDirect ("required") == ATTRIBUTE_NOT_DEFINED) this returns as FALSE result, but observed in more detail I see that it should be true since, getAttributeDirect ("required") = "" ATTRIBUTE_NOT_DEFINED = "", change it to getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) and return the result that should be TRUE, in my opinion it is the indicated comparison to determine if the values are the same. public boolean isValid() { return !isRequiredSupported() || getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) || !getAttributeDirect("value").isEmpty(); } --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-10 17:44:54
|
- **status**: open --> accepted - **Comment**: Have added some tests but can't see a case where this works different from the browsers. Please have a look... https://github.com/HtmlUnit/htmlunit/commit/1d1b007e1a55dfd2c3cbd5db47a6af3d71d88dbb --- ** [bugs:#1992] Error in validation of required fields** **Status:** accepted **Group:** 2.33 **Created:** Wed Oct 10, 2018 03:00 PM UTC by Leonardo Silva Medina **Last Updated:** Wed Oct 10, 2018 03:00 PM UTC **Owner:** RBRi Hi !! I try to perform a test on a form and when clicking I do not do any event, the form has an elment of <input type="text" id="idUserRecupera" class="autoMayuscula sinTildes" autocomplete="off" required=""> to appear in the class /src/main/java/com/gargoylesoftware/htmlunit/html/HtmlForm.java => method public boolean isValid() { return !isRequiredSupported() || getAttributeDirect("required") == ATTRIBUTE_NOT_DEFINED || !getAttributeDirect("value").isEmpty(); } there is a method that validates the required fields, and I note that it has three validation criteria with a conditional || ( OR ), following the code for my case the condition (getAttributeDirect ("required") == ATTRIBUTE_NOT_DEFINED) this returns as FALSE result, but observed in more detail I see that it should be true since, getAttributeDirect ("required") = "" ATTRIBUTE_NOT_DEFINED = "", change it to getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) and return the result that should be TRUE, in my opinion it is the indicated comparison to determine if the values are the same. public boolean isValid() { return !isRequiredSupported() || getAttributeDirect ("required"). equals (ATTRIBUTE_NOT_DEFINED) || !getAttributeDirect("value").isEmpty(); } --- Sent from sourceforge.net because htm...@li... 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. |
From: rbri <rb...@rb...> - 2018-10-09 19:42:39
|
Branch: refs/heads/master Home: https://github.com/HtmlUnit/htmlunit-rhino-fork Commit: 25ee2630c5879cf5e3d07e1d96b8eed2f2d830e3 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/25ee2630c5879cf5e3d07e1d96b8eed2f2d830e3 Author: Gregory Brail <gre...@go...> Date: 2018-08-24 (Fri, 24 Aug 2018) Changed paths: M src/org/mozilla/javascript/ES6Iterator.java A src/org/mozilla/javascript/Hashtable.java M src/org/mozilla/javascript/IdScriptableObject.java A src/org/mozilla/javascript/IteratorLikeIterable.java M src/org/mozilla/javascript/NativeArrayIterator.java A src/org/mozilla/javascript/NativeCollectionIterator.java A src/org/mozilla/javascript/NativeMap.java A src/org/mozilla/javascript/NativeSet.java M src/org/mozilla/javascript/NativeStringIterator.java M src/org/mozilla/javascript/ScriptRuntime.java M src/org/mozilla/javascript/resources/Messages.properties A testsrc/jstests/es6/collection-iterator.js A testsrc/jstests/es6/collections.js M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java A testsrc/org/mozilla/javascript/tests/es6/CollectionHashtableTest.java A testsrc/org/mozilla/javascript/tests/es6/CollectionsIteratorTest.java A testsrc/org/mozilla/javascript/tests/es6/CollectionsTest.java M testsrc/test262.properties Log Message: ----------- Implement the built-in Set and Map classes for ES6. Implement these two new classes from the spec and enable relevant test262 tests for them. These new classes are only available when the version is VERSION_ES6 or higher. WeakSet and WeakMap will come next once we have these squared away. Commit: 54214a453cd6e19dc17aaf4e7ac524f6e8e1064f https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/54214a453cd6e19dc17aaf4e7ac524f6e8e1064f Author: Gregory Brail <gre...@go...> Date: 2018-10-09 (Tue, 09 Oct 2018) Changed paths: M src/org/mozilla/javascript/Hashtable.java M src/org/mozilla/javascript/NativeMap.java M src/org/mozilla/javascript/NativeSet.java A src/org/mozilla/javascript/NativeWeakMap.java A src/org/mozilla/javascript/NativeWeakSet.java M src/org/mozilla/javascript/ScriptRuntime.java M testsrc/jstests/es6/collections.js M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/test262.properties Log Message: ----------- Add WeakMap and WeakSet on top of the Map and Set work. Commit: 58826bcf908efca1a30501577f3a0763fafe5da5 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/58826bcf908efca1a30501577f3a0763fafe5da5 Author: raphj <rap...@ja...> Date: 2018-10-09 (Tue, 09 Oct 2018) Changed paths: M src/org/mozilla/javascript/ArrowFunction.java Log Message: ----------- Override getArity This override fixes getArity unconditionaly returning 0 instead of returning what getLength returns on ArrowFunction objects. Commit: 9a8dccf3af7d73aa93cddc7aa91ea2292205c2f2 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/9a8dccf3af7d73aa93cddc7aa91ea2292205c2f2 Author: Raphaël Jakse <rap...@ja...> Date: 2018-10-09 (Tue, 09 Oct 2018) Changed paths: A testsrc/jstests/harmony/function-arity.js A testsrc/org/mozilla/javascript/tests/harmony/FunctionArityTest.java Log Message: ----------- Test function arity and length properties Commit: 7792e9566b471f84d0dd107b57d163656f47cd66 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/7792e9566b471f84d0dd107b57d163656f47cd66 Author: rbri <rb...@rb...> Date: 2018-10-09 (Tue, 09 Oct 2018) Changed paths: M src/org/mozilla/javascript/ArrowFunction.java M src/org/mozilla/javascript/ES6Iterator.java A src/org/mozilla/javascript/Hashtable.java M src/org/mozilla/javascript/IdScriptableObject.java A src/org/mozilla/javascript/IteratorLikeIterable.java M src/org/mozilla/javascript/NativeArrayIterator.java A src/org/mozilla/javascript/NativeCollectionIterator.java A src/org/mozilla/javascript/NativeMap.java A src/org/mozilla/javascript/NativeSet.java M src/org/mozilla/javascript/NativeStringIterator.java A src/org/mozilla/javascript/NativeWeakMap.java A src/org/mozilla/javascript/NativeWeakSet.java M src/org/mozilla/javascript/ScriptRuntime.java M src/org/mozilla/javascript/resources/Messages.properties A testsrc/jstests/es6/collection-iterator.js A testsrc/jstests/es6/collections.js A testsrc/jstests/harmony/function-arity.js M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java A testsrc/org/mozilla/javascript/tests/es6/CollectionHashtableTest.java A testsrc/org/mozilla/javascript/tests/es6/CollectionsIteratorTest.java A testsrc/org/mozilla/javascript/tests/es6/CollectionsTest.java A testsrc/org/mozilla/javascript/tests/harmony/FunctionArityTest.java M testsrc/test262.properties Log Message: ----------- Merge remote-tracking branch 'rhino/master' Compare: https://github.com/HtmlUnit/htmlunit-rhino-fork/compare/9980ea18bed0...7792e9566b47 **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019. |
From: RBRi <rb...@us...> - 2018-10-08 18:14:24
|
My private email is available on the web page as part of the developer list --- ** [bugs:#1991] HTMLUnit ADF support** **Status:** open **Group:** 2.27 **Created:** Sat Oct 06, 2018 12:12 PM UTC by John Fernandes **Last Updated:** Sun Oct 07, 2018 10:38 AM UTC **Owner:** Ahmed Ashour Hello, We are using htmlunit to automate an Oracle ADF based web site. We were using htlmunit 2.17 and looking to upgrade to 2.27. In 2.17 we were able to automate the site successfully. In 2.27 we are facing an issue where in the response received on click of link is not processed successfully. In 2.17 the same error use to occur but the response received was processed succefully. Can you please guide us on this ? We want to upgrade to more recent htmlunit version but are stuck this point. What change in htmlunit would cause this issue where this error blocks the further processing of the response ? How can we possibly resolve this ? Please suggest. Any help will be greatly appreciated. The below javascript error occurs: ======= EXCEPTION START ======== EcmaError: lineNumber=[6] column=[0] lineSource=[<no source>] name=[ReferenceError] sourceName=[script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)] message=[ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6)] com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:894) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:637) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:518) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:774) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:750) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:741) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:918) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:317) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:382) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:247) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:268) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:800) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:756) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1236) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3178) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:999) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:250) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseXHtml(HTMLParser.java:206) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createXHtmlPage(DefaultPageCreator.java:284) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:169) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:522) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:396) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:313) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPageIfPossible(BaseFrameElement.java:185) at com.gargoylesoftware.htmlunit.html.BaseFrameElement.loadInnerPage(BaseFrameElement.java:123) at com.gargoylesoftware.htmlunit.html.BaseFrameElement$2.execute(BaseFrameElement.java:414) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:945) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1015) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:988) at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:84) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:929) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:869) at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:850) at syniverse227.Syniverse227.ClickOnLNP(Syniverse227.java:286) at syniverse227.Syniverse227.main(Syniverse227.java:558) Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "AdfPage" is not defined. (script in https://mysyniverse.syniverse.com/portal/faces/tabnavigation?_adf.ctrl-state=fmu992z8i_4&Adf-Rich-Message=true&unique=1538465393460&oracle.adf.view.rich.STREAM=r1:0:pt_region1:1:pt1:t1&javax.faces.ViewState=!19sht65gh9 from (6, 2310) to (6, 3847)#6) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3915) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3899) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3976) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1821) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1634) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:800) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:416) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:322) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3264) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:765) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:879) ... 43 more Thank you --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-08 17:34:46
|
- **status**: open --> closed - **assigned_to**: RBRi --- ** [bugs:#1988] ScriptException: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]** **Status:** closed **Group:** 2.32 **Created:** Sat Sep 08, 2018 09:04 AM UTC by Franco Qualcuno **Last Updated:** Mon Oct 08, 2018 05:34 PM UTC **Owner:** RBRi **Attachments:** - [IGPLogin.java](https://sourceforge.net/p/htmlunit/bugs/1988/attachment/IGPLogin.java) (1.6 kB; application/octet-stream) Hi guys, thanks for your excellent work. I found an issue with javascript in a web page that until yesterday (2018.09.07) works correctly. I attached the simple code that doesn't work anymore. This is the exception thrown: ~~~ Exception in thread "main" java.lang.RuntimeException: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]. (https://igpmanager.com/app/merged.min.js?2018-09-04-1725-13231323123#65) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:305) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:539) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:399) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:316) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:483) at z_old.IGPLogin_very_smal.autenticate(IGPLogin_very_smal.java:48) at z_old.IGPLogin_very_smal.main(IGPLogin_very_smal.java:58) Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]. (https://igpmanager.com/app/merged.min.js?2018-09-04-1725-13231323123#65) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:532) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:992) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:298) ... 6 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]. (https://igpmanager.com/app/merged.min.js?2018-09-04-1725-13231323123#65) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4276) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4254) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4287) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:4306) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4382) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2607) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2589) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1514) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1002) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:422) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3570) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:122) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:763) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ Thanks --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-08 17:34:30
|
stub impl added --- ** [bugs:#1988] ScriptException: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]** **Status:** open **Group:** 2.32 **Created:** Sat Sep 08, 2018 09:04 AM UTC by Franco Qualcuno **Last Updated:** Sun Sep 09, 2018 08:11 AM UTC **Owner:** nobody **Attachments:** - [IGPLogin.java](https://sourceforge.net/p/htmlunit/bugs/1988/attachment/IGPLogin.java) (1.6 kB; application/octet-stream) Hi guys, thanks for your excellent work. I found an issue with javascript in a web page that until yesterday (2018.09.07) works correctly. I attached the simple code that doesn't work anymore. This is the exception thrown: ~~~ Exception in thread "main" java.lang.RuntimeException: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]. (https://igpmanager.com/app/merged.min.js?2018-09-04-1725-13231323123#65) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:305) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:539) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:399) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:316) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:483) at z_old.IGPLogin_very_smal.autenticate(IGPLogin_very_smal.java:48) at z_old.IGPLogin_very_smal.main(IGPLogin_very_smal.java:58) Caused by: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]. (https://igpmanager.com/app/merged.min.js?2018-09-04-1725-13231323123#65) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:532) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:992) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:298) ... 6 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot find function resolvedOptions in object [object DateTimeFormat]. (https://igpmanager.com/app/merged.min.js?2018-09-04-1725-13231323123#65) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4276) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4254) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4287) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:4306) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:4382) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2607) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2589) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1514) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1002) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:422) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3570) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:122) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:763) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ Thanks --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-06 15:52:25
|
Rhino PR is there hope we get this merged soon https://github.com/mozilla/rhino/pull/480 --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** accepted **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Fri Oct 05, 2018 06:53 PM UTC **Owner:** RBRi Hello, when I load a page, I got this error :/ Have you any idea to how to solve it ? I precise I have'nt any control on the server side. ~~~ GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ there is my code ~~~ public class Main { public static void main(String[] args) throws Exception { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setCssEnabled(false); // JavaScriptEngine sriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine(); // HtmlUnitContextFactory factory = sriptEngine.getContextFactory(); // Context context = factory.enterContext(); // context.setOptimizationLevel(10); System.out.println("ok"+((JavaScriptEngine) webClient.getJavaScriptEngine()).getContextFactory().enterContext().getOptimizationLevel()); HtmlPage pronote = webClient.getPage("http://92.154.35.11/pronote/eleve.html"); System.out.println("wait"); while(pronote.getElementById("id_53") == null); System.out.println("ok2"); pronote.getElementById("id_53").setAttribute("value", "SecretUsername"); pronote.getElementById("id_54").setAttribute("value", "*********"); pronote.getElementById("id_43").click(); System.out.println("wait2"); while(pronote.getElementById("id_86id_4") == null); // Got the error here System.out.println(pronote.getDocumentElement().asText()); webClient.close(); } } ~~~ Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-10-05 18:53:57
|
This is a known Rhino issue and there are some pr available to fix this. Will try to destill another pr and hope we get a fix for this. --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** accepted **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Fri Sep 14, 2018 06:19 AM UTC **Owner:** RBRi Hello, when I load a page, I got this error :/ Have you any idea to how to solve it ? I precise I have'nt any control on the server side. ~~~ GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ there is my code ~~~ public class Main { public static void main(String[] args) throws Exception { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setCssEnabled(false); // JavaScriptEngine sriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine(); // HtmlUnitContextFactory factory = sriptEngine.getContextFactory(); // Context context = factory.enterContext(); // context.setOptimizationLevel(10); System.out.println("ok"+((JavaScriptEngine) webClient.getJavaScriptEngine()).getContextFactory().enterContext().getOptimizationLevel()); HtmlPage pronote = webClient.getPage("http://92.154.35.11/pronote/eleve.html"); System.out.println("wait"); while(pronote.getElementById("id_53") == null); System.out.println("ok2"); pronote.getElementById("id_53").setAttribute("value", "SecretUsername"); pronote.getElementById("id_54").setAttribute("value", "*********"); pronote.getElementById("id_43").click(); System.out.println("wait2"); while(pronote.getElementById("id_86id_4") == null); // Got the error here System.out.println(pronote.getDocumentElement().asText()); webClient.close(); } } ~~~ Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-09-14 06:19:23
|
- **status**: open --> accepted - **assigned_to**: RBRi --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** accepted **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Fri Sep 14, 2018 06:19 AM UTC **Owner:** RBRi Hello, when I load a page, I got this error :/ Have you any idea to how to solve it ? I precise I have'nt any control on the server side. ~~~ GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ there is my code ~~~ public class Main { public static void main(String[] args) throws Exception { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setCssEnabled(false); // JavaScriptEngine sriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine(); // HtmlUnitContextFactory factory = sriptEngine.getContextFactory(); // Context context = factory.enterContext(); // context.setOptimizationLevel(10); System.out.println("ok"+((JavaScriptEngine) webClient.getJavaScriptEngine()).getContextFactory().enterContext().getOptimizationLevel()); HtmlPage pronote = webClient.getPage("http://92.154.35.11/pronote/eleve.html"); System.out.println("wait"); while(pronote.getElementById("id_53") == null); System.out.println("ok2"); pronote.getElementById("id_53").setAttribute("value", "SecretUsername"); pronote.getElementById("id_54").setAttribute("value", "*********"); pronote.getElementById("id_43").click(); System.out.println("wait2"); while(pronote.getElementById("id_86id_4") == null); // Got the error here System.out.println(pronote.getDocumentElement().asText()); webClient.close(); } } ~~~ Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-09-14 06:19:06
|
This is the right place to report errors. Will have a look at this ,,, --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** open **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Fri Sep 14, 2018 06:17 AM UTC **Owner:** nobody Hello, when I load a page, I got this error :/ Have you any idea to how to solve it ? I precise I have'nt any control on the server side. ~~~ GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ there is my code ~~~ public class Main { public static void main(String[] args) throws Exception { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setCssEnabled(false); // JavaScriptEngine sriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine(); // HtmlUnitContextFactory factory = sriptEngine.getContextFactory(); // Context context = factory.enterContext(); // context.setOptimizationLevel(10); System.out.println("ok"+((JavaScriptEngine) webClient.getJavaScriptEngine()).getContextFactory().enterContext().getOptimizationLevel()); HtmlPage pronote = webClient.getPage("http://92.154.35.11/pronote/eleve.html"); System.out.println("wait"); while(pronote.getElementById("id_53") == null); System.out.println("ok2"); pronote.getElementById("id_53").setAttribute("value", "SecretUsername"); pronote.getElementById("id_54").setAttribute("value", "*********"); pronote.getElementById("id_43").click(); System.out.println("wait2"); while(pronote.getElementById("id_86id_4") == null); // Got the error here System.out.println(pronote.getDocumentElement().asText()); webClient.close(); } } ~~~ Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-09-14 06:17:41
|
- Description has changed: Diff: ~~~~ --- old +++ new @@ -71,4 +71,4 @@ } ~~~ - Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) + Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) ~~~~ --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** open **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Fri Sep 14, 2018 06:16 AM UTC **Owner:** nobody Hello, when I load a page, I got this error :/ Have you any idea to how to solve it ? I precise I have'nt any control on the server side. ~~~ GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ there is my code ~~~ public class Main { public static void main(String[] args) throws Exception { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setCssEnabled(false); // JavaScriptEngine sriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine(); // HtmlUnitContextFactory factory = sriptEngine.getContextFactory(); // Context context = factory.enterContext(); // context.setOptimizationLevel(10); System.out.println("ok"+((JavaScriptEngine) webClient.getJavaScriptEngine()).getContextFactory().enterContext().getOptimizationLevel()); HtmlPage pronote = webClient.getPage("http://92.154.35.11/pronote/eleve.html"); System.out.println("wait"); while(pronote.getElementById("id_53") == null); System.out.println("ok2"); pronote.getElementById("id_53").setAttribute("value", "SecretUsername"); pronote.getElementById("id_54").setAttribute("value", "*********"); pronote.getElementById("id_43").click(); System.out.println("wait2"); while(pronote.getElementById("id_86id_4") == null); // Got the error here System.out.println(pronote.getDocumentElement().asText()); webClient.close(); } } ~~~ Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-09-14 06:16:39
|
- **summary**: GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more --> RuntimeException: generated bytecode for method exceeds 64K limit --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** open **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Thu Sep 13, 2018 08:50 PM UTC **Owner:** nobody Hello, when I load a page, I got this error :/ Have you any idea to how to solve it ? I precise I have'nt any control on the server side. ~~~ GRAVE: Job run failed with unexpected RuntimeException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) net.sourceforge.htmlunit.corejs.javascript.WrappedException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.Context.throwAsScriptRuntimeEx(Context.java:1999) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:948) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:387) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: com.gargoylesoftware.htmlunit.ScriptException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:723) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:689) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:104) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1091) at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:978) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371) at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:943) ... 5 more Caused by: net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: Une erreur de génération de code a été rencontrée à la compilation du script: generated bytecode for method exceeds 64K limit. (http://92.154.35.11/pronote/E_3_C_2629149887D397AD97874EE22ADB43C44180924FE3876AA7F734195E45640C7A_L_1036/eleve_defer.js#1) at net.sourceforge.htmlunit.corejs.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:79) at net.sourceforge.htmlunit.corejs.javascript.Context.reportRuntimeError(Context.java:1070) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.reportClassFileFormatException(Codegen.java:188) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:176) at net.sourceforge.htmlunit.corejs.javascript.optimizer.Codegen.compile(Codegen.java:81) at net.sourceforge.htmlunit.corejs.javascript.Context.compileImpl(Context.java:2630) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1583) at net.sourceforge.htmlunit.corejs.javascript.Context.compileString(Context.java:1572) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.doRun(JavaScriptEngine.java:714) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 15 more ~~~ there is my code ~~~ public class Main { public static void main(String[] args) throws Exception { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setCssEnabled(false); // JavaScriptEngine sriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine(); // HtmlUnitContextFactory factory = sriptEngine.getContextFactory(); // Context context = factory.enterContext(); // context.setOptimizationLevel(10); System.out.println("ok"+((JavaScriptEngine) webClient.getJavaScriptEngine()).getContextFactory().enterContext().getOptimizationLevel()); HtmlPage pronote = webClient.getPage("http://92.154.35.11/pronote/eleve.html"); System.out.println("wait"); while(pronote.getElementById("id_53") == null); System.out.println("ok2"); pronote.getElementById("id_53").setAttribute("value", "SecretUsername"); pronote.getElementById("id_54").setAttribute("value", "*********"); pronote.getElementById("id_43").click(); System.out.println("wait2"); while(pronote.getElementById("id_86id_4") == null); // Got the error here System.out.println(pronote.getDocumentElement().asText()); webClient.close(); } } ~~~ Thank you ! (Really sorry if it is not the best place to do that, but this is the only one I found) --- Sent from sourceforge.net because htm...@li... 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. |
From: RBRi <rb...@us...> - 2018-09-12 18:16:48
|
- **status**: accepted --> closed --- ** [feature-requests:#256] Fire INPUT event on tel input** **Status:** closed **Group:** 2.32 **Created:** Tue Sep 11, 2018 05:02 PM UTC by Tomer Kimia **Last Updated:** Wed Sep 12, 2018 06:16 PM UTC **Owner:** RBRi Currently in `HTMLElement.java` the following code is present: ~~~java if (this instanceof HtmlTextInput || this instanceof HtmlTextArea || this instanceof HtmlPasswordInput) { fireKeyboardEvent(Event.TYPE_INPUT, c, shiftPressed_ || isShiftNeeded); } ~~~ My team uses the `tel` input type to make it easier for mobile users to type in numeric values (i.e. zip codes). We have a function that occurs on input on these fields (which fires on Chrome, Firefox, etc) that does not get called in our tests because, as shown above) HTMLUnit only fires the INPUT event for a few types. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |