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-12-04 18:38:26
|
Can you please provide the whole stack trace On Tue, 04 Dec 2018 15:13:43 -0000 Cédrick JACOBS wrote: > >First, thanks for your answer. >I tried what you said but i got this error : "Failed to resolve: net.sourceforge.htmlunit:htmlunit:2.33.RELEASE" >I checked here : "https://mvnrepository.com/artifact/net.sourceforge.htmlunit/htmlunit/2.33" and I changed the dependecies part for : >implementation 'net.sourceforge.htmlunit:htmlunit:2.32' >I got the same error that I had before : >"Didn't find class "javax.script.SimpleScriptContext" on path: DexPathList..." >I tried with both versions (2.32 and 2.33) and it doesnt work. >Do you have any idea with it doesnt find this class? >Regards. > > >--- > >** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** > >**Status:** open >**Group:** Latest SVN >**Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS >**Last Updated:** Mon Dec 03, 2018 05:30 PM UTC >**Owner:** nobody > > >Hello, >I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : > {String lien=""; > try (final WebClient webClient = new WebClient()) { > // Get the first page > final HtmlPage page1 = webClient.getPage(url); > > // Get the form that we are dealing with and within that form, > // find the submit button and the field that we want to change. > final HtmlForm form = page1.getForms().get(0); > > final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); > final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); > final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); > > // Change the value of the text field > TexteGroupe.type("L3 INFO s1 TPA12"); > > // Now submit the form by clicking the button and get back the second page. > final HtmlPage page2 = boutonAjouterGroupe.click(); > > // Now submit the form by clicking the button and get back the third page. > final HtmlPage page3 = boutonObtenirFlux.click(); > > final HtmlForm form2 = page1.getForms().get(0); > final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); > > lien = TexteUrlICS.getValueAttribute(); > } > When I use this method, I get this error : > "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" > >I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of >type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in >/system/framework/framework.jar:classes3.dex)". > >I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. >Regards. > > > >--- > >Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/htmlunit/feature-requests/257/> > > > >To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/> > --- ** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** **Status:** open **Group:** Latest SVN **Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS **Last Updated:** Tue Dec 04, 2018 03:13 PM UTC **Owner:** nobody Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- 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. |
From: RBRi <rb...@us...> - 2018-12-04 18:35:09
|
Sorry too many open threads.... Cannot modify readonly property: constructor This seems to be more or less teh same problem as https://sourceforge.net/p/htmlunit/bugs/1897/. Because we are using Rhino and there are some problems with the support of more modern js i guess there will be not that much progress during the next weeks. If you like to help it will be great if you can check if the problem is the same as in the issue mentioned above. And of course any PullRequests for Rhino and or HtmlUnit are welcome. --- ** [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:** Tue Dec 04, 2018 06:25 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-12-04 11:27:40
|
- **status**: pending --> closed --- ** [bugs:#2003] HTMLParser.parseHtml(htmlUnitResponse, webClient.getCurrentWindow()) is not parsing the javascripts in the htmlUnitResponse.** **Status:** closed **Group:** 2.33 **Created:** Mon Dec 03, 2018 11:52 AM UTC by Manikandan Kabali **Last Updated:** Tue Dec 04, 2018 10:42 AM UTC **Owner:** RBRi Hi All, I am using htmlunit 2.33. When I pass some html string which has javascript to create dynamic DOM elements to HTMLParser.parseHtml, it is not processing the javascript in the html string. So, it is not creating the dynamic dom elements. But when i get the html page using the following piece of code it parses the js "HtmlPage page= webClient.getPage(url)". In my case, i don't want to get the page using "HtmlPage page= webClient.getPage(url)". I have the html text to be parsed. Could anyone suggest some solution to parse the js in the html string? # **sample.html** <html> <head> <title>Sample html to pdf</title> <meta charset="utf-8"/> <script type="text/javascript" src="jquery/jquery-3.3.1.js"></script> <script type="text/javascript"> jQuery( function($) { $("#dynamic").append("<p>I came via jquery!!</p>"); } ); </script> </head> <body> <div id="h1"> <center><h1>Sample HTML to PDF</h1></center> </div> <div id="dynamic"> </div> </body> </html> # java code final String rhtml = readFileAsString("D:\\Print Pdf Works\\html\\sample_html_wjs.html"); String rurl = "file:///D:/Print%20Pdf%20Works/html/sample_html_wjs.html"; URL url = new URL(rurl); StringWebResponse htmlUnitResponse = new StringWebResponse(rhtml, url); try (WebClient webClient = new WebClient()) { webClient.getOptions().setJavaScriptEnabled(true); webClient.waitForBackgroundJavaScript(90000); webClient.waitForBackgroundJavaScriptStartingBefore(90000); HtmlPage page = HTMLParser.parseHtml(htmlUnitResponse, webClient.getCurrentWindow()); System.out.println("************HTML PAGE**************"); System.out.print(page.asXml()); renderer.setDocument(page, urlString); } # output ************HTML PAGE************** <?xml version="1.0" encoding="UTF-8"?> <html> <head> <title> Sample html to pdf </title> <meta charset="utf-8"/> <script type="text/javascript" src="jquery/jquery-3.3.1.js"> </script> <script type="text/javascript"> //<![CDATA[ jQuery( function($) { $("#dynamic").append("<p>I came via jquery!!</p>"); } ); //]]> </script> </head> <body> <div id="h1"> <center> <h1> Sample HTML to PDF </h1> </center> </div> <div id="dynamic"> </div> </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-12-04 07:13:42
|
- **status**: pending --> closed --- ** [bugs:#2002] SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref** **Status:** closed **Group:** 2.33 **Created:** Thu Nov 29, 2018 04:27 PM UTC by John **Last Updated:** Tue Dec 04, 2018 07:13 AM UTC **Owner:** RBRi Hello, I'm seeing this exception when using HtmlUnit 2.33 and I don't know how to fix it? Does anyone know how to resolve this problem? I'm using htmlunit to login to a website that uses JavaScript to perform the login. This was working great but what makes this issue bizzare is that I see different behavior on different networks. On my home network where my ISP is Comcast it works fine. Same laptop, same software running. On my work network it fails with the underlying exception below. Just recently within that past few days this started to fail. I've asked our IT deptment what's change? No new software (virus protectors, etc.) that could explain this. Ideally I need to implement a solution that works on either network. Using jdk1.8.0_192 Thanks again. Code fragment: ~~~ // enabled debugging Logger.getLogger("com.gargoylesoftware").setLevel(Level.ALL); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript").setLevel(Level.ALL); // Turn on Javascript, needed to login to this web site webClient.getOptions().setJavaScriptEnabled(true); // If this isn't set then any errors will cause getPage to fail webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); // Get the login page, minimal screen for xxxxxxxxxxxxxxxxxxxxxxx HtmlPage loginPage = webClient.getPage(LOGIN_URL); // Get the form, enter username and password and click submit HtmlForm form = loginPage.getForms().get(0); form.getInputByName("LoginId").setValueAttribute(username); form.getInputByName("Password").setValueAttribute(password); form.getInputByName("loginSubmitBtn").click(); // Wait for javascript to execute, at least 4 seconds long loginTime = System.currentTimeMillis(); webClient.waitForBackgroundJavaScript(4000); // wait for 4 seconds... fLogger.info("Got to here #1"); ~~~ Here's the exception: ~~~ INFO: Trying to login to xxxxxxxxxxxxxxxxxxxxxxxxx... Nov 29, 2018 10:31:31 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: null java.lang.NullPointerException at net.sourceforge.htmlunit.corejs.javascript.Context.decompileFunction(Context.java:1668) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:209) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Nov 29, 2018 10:31:33 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setHref 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 13 more Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more Enclosed exception: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more == CALLING JAVASCRIPT == function () { var t, e, o; n.isDebug && n.log("M9", f, Array.prototype.slice.call(arguments).join(", ")); t = Array.prototype.slice.call(arguments); try { r && (e = r.apply(this, t)); } catch (s) { n.exception(s, "M10", f, s); } n.assert(!e || "[object Array]" === Object.prototype.toString.call(e)); o = void 0; try { o = i.apply(this, e || t); } finally { try { u && u.apply(this, t); } catch (h) { n.exception(h, "M11", f, h); } } return o; } ======= EXCEPTION END ======== Nov 29, 2018 10:31:34 AM xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx login INFO: Got to here #1 ~~~ --- 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-12-04 07:13:27
|
Thanks for the feedback, please keep in mind that there is no support for this old versions and the update will be harder with every new version available ;-) RBRi --- ** [bugs:#2002] SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref** **Status:** pending **Group:** 2.33 **Created:** Thu Nov 29, 2018 04:27 PM UTC by John **Last Updated:** Mon Dec 03, 2018 09:24 PM UTC **Owner:** RBRi Hello, I'm seeing this exception when using HtmlUnit 2.33 and I don't know how to fix it? Does anyone know how to resolve this problem? I'm using htmlunit to login to a website that uses JavaScript to perform the login. This was working great but what makes this issue bizzare is that I see different behavior on different networks. On my home network where my ISP is Comcast it works fine. Same laptop, same software running. On my work network it fails with the underlying exception below. Just recently within that past few days this started to fail. I've asked our IT deptment what's change? No new software (virus protectors, etc.) that could explain this. Ideally I need to implement a solution that works on either network. Using jdk1.8.0_192 Thanks again. Code fragment: ~~~ // enabled debugging Logger.getLogger("com.gargoylesoftware").setLevel(Level.ALL); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript").setLevel(Level.ALL); // Turn on Javascript, needed to login to this web site webClient.getOptions().setJavaScriptEnabled(true); // If this isn't set then any errors will cause getPage to fail webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); // Get the login page, minimal screen for xxxxxxxxxxxxxxxxxxxxxxx HtmlPage loginPage = webClient.getPage(LOGIN_URL); // Get the form, enter username and password and click submit HtmlForm form = loginPage.getForms().get(0); form.getInputByName("LoginId").setValueAttribute(username); form.getInputByName("Password").setValueAttribute(password); form.getInputByName("loginSubmitBtn").click(); // Wait for javascript to execute, at least 4 seconds long loginTime = System.currentTimeMillis(); webClient.waitForBackgroundJavaScript(4000); // wait for 4 seconds... fLogger.info("Got to here #1"); ~~~ Here's the exception: ~~~ INFO: Trying to login to xxxxxxxxxxxxxxxxxxxxxxxxx... Nov 29, 2018 10:31:31 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: null java.lang.NullPointerException at net.sourceforge.htmlunit.corejs.javascript.Context.decompileFunction(Context.java:1668) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:209) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Nov 29, 2018 10:31:33 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setHref 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 13 more Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more Enclosed exception: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more == CALLING JAVASCRIPT == function () { var t, e, o; n.isDebug && n.log("M9", f, Array.prototype.slice.call(arguments).join(", ")); t = Array.prototype.slice.call(arguments); try { r && (e = r.apply(this, t)); } catch (s) { n.exception(s, "M10", f, s); } n.assert(!e || "[object Array]" === Object.prototype.toString.call(e)); o = void 0; try { o = i.apply(this, e || t); } finally { try { u && u.apply(this, t); } catch (h) { n.exception(h, "M11", f, h); } } return o; } ======= EXCEPTION END ======== Nov 29, 2018 10:31:34 AM xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx login INFO: Got to here #1 ~~~ --- 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-12-03 18:37:57
|
- **status**: open --> pending - **assigned_to**: RBRi --- ** [bugs:#2003] HTMLParser.parseHtml(htmlUnitResponse, webClient.getCurrentWindow()) is not parsing the javascripts in the htmlUnitResponse.** **Status:** pending **Group:** 2.33 **Created:** Mon Dec 03, 2018 11:52 AM UTC by Manikandan Kabali **Last Updated:** Mon Dec 03, 2018 06:37 PM UTC **Owner:** RBRi Hi All, I am using htmlunit 2.33. When I pass some html string which has javascript to create dynamic DOM elements to HTMLParser.parseHtml, it is not processing the javascript in the html string. So, it is not creating the dynamic dom elements. But when i get the html page using the following piece of code it parses the js "HtmlPage page= webClient.getPage(url)". In my case, i don't want to get the page using "HtmlPage page= webClient.getPage(url)". I have the html text to be parsed. Could anyone suggest some solution to parse the js in the html string? # **sample.html** <html> <head> <title>Sample html to pdf</title> <meta charset="utf-8"/> <script type="text/javascript" src="jquery/jquery-3.3.1.js"></script> <script type="text/javascript"> jQuery( function($) { $("#dynamic").append("<p>I came via jquery!!</p>"); } ); </script> </head> <body> <div id="h1"> <center><h1>Sample HTML to PDF</h1></center> </div> <div id="dynamic"> </div> </body> </html> # java code final String rhtml = readFileAsString("D:\\Print Pdf Works\\html\\sample_html_wjs.html"); String rurl = "file:///D:/Print%20Pdf%20Works/html/sample_html_wjs.html"; URL url = new URL(rurl); StringWebResponse htmlUnitResponse = new StringWebResponse(rhtml, url); try (WebClient webClient = new WebClient()) { webClient.getOptions().setJavaScriptEnabled(true); webClient.waitForBackgroundJavaScript(90000); webClient.waitForBackgroundJavaScriptStartingBefore(90000); HtmlPage page = HTMLParser.parseHtml(htmlUnitResponse, webClient.getCurrentWindow()); System.out.println("************HTML PAGE**************"); System.out.print(page.asXml()); renderer.setDocument(page, urlString); } # output ************HTML PAGE************** <?xml version="1.0" encoding="UTF-8"?> <html> <head> <title> Sample html to pdf </title> <meta charset="utf-8"/> <script type="text/javascript" src="jquery/jquery-3.3.1.js"> </script> <script type="text/javascript"> //<![CDATA[ jQuery( function($) { $("#dynamic").append("<p>I came via jquery!!</p>"); } ); //]]> </script> </head> <body> <div id="h1"> <center> <h1> Sample HTML to PDF </h1> </center> </div> <div id="dynamic"> </div> </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-12-03 18:37:42
|
- **Comment**: There are two options: you already have a file (in the end many files for external js) you can simply use your file url ~~~~~ try (final WebClient webClient = new WebClient()) { HtmlPage page = webClient.getPage(rurl); System.out.print(page.asXml()); } ~~~~~ if you really like to work with a string you can do this: ~~~~~ URL url = new URL(rurl); StringWebResponse htmlUnitResponse = new StringWebResponse(rhtml, url); try (final WebClient webClient = new WebClient()) { WebWindow webWindow = webClient.getCurrentWindow(); HtmlPage page = (HtmlPage) webClient.loadWebResponseInto(htmlUnitResponse, webWindow); webClient.getJavaScriptEngine().registerWindowAndMaybeStartEventLoop(webWindow); webClient.waitForBackgroundJavaScriptStartingBefore(1000); System.out.print(page.asXml()); } ~~~~~ --- ** [bugs:#2003] HTMLParser.parseHtml(htmlUnitResponse, webClient.getCurrentWindow()) is not parsing the javascripts in the htmlUnitResponse.** **Status:** open **Group:** 2.33 **Created:** Mon Dec 03, 2018 11:52 AM UTC by Manikandan Kabali **Last Updated:** Mon Dec 03, 2018 11:52 AM UTC **Owner:** nobody Hi All, I am using htmlunit 2.33. When I pass some html string which has javascript to create dynamic DOM elements to HTMLParser.parseHtml, it is not processing the javascript in the html string. So, it is not creating the dynamic dom elements. But when i get the html page using the following piece of code it parses the js "HtmlPage page= webClient.getPage(url)". In my case, i don't want to get the page using "HtmlPage page= webClient.getPage(url)". I have the html text to be parsed. Could anyone suggest some solution to parse the js in the html string? # **sample.html** <html> <head> <title>Sample html to pdf</title> <meta charset="utf-8"/> <script type="text/javascript" src="jquery/jquery-3.3.1.js"></script> <script type="text/javascript"> jQuery( function($) { $("#dynamic").append("<p>I came via jquery!!</p>"); } ); </script> </head> <body> <div id="h1"> <center><h1>Sample HTML to PDF</h1></center> </div> <div id="dynamic"> </div> </body> </html> # java code final String rhtml = readFileAsString("D:\\Print Pdf Works\\html\\sample_html_wjs.html"); String rurl = "file:///D:/Print%20Pdf%20Works/html/sample_html_wjs.html"; URL url = new URL(rurl); StringWebResponse htmlUnitResponse = new StringWebResponse(rhtml, url); try (WebClient webClient = new WebClient()) { webClient.getOptions().setJavaScriptEnabled(true); webClient.waitForBackgroundJavaScript(90000); webClient.waitForBackgroundJavaScriptStartingBefore(90000); HtmlPage page = HTMLParser.parseHtml(htmlUnitResponse, webClient.getCurrentWindow()); System.out.println("************HTML PAGE**************"); System.out.print(page.asXml()); renderer.setDocument(page, urlString); } # output ************HTML PAGE************** <?xml version="1.0" encoding="UTF-8"?> <html> <head> <title> Sample html to pdf </title> <meta charset="utf-8"/> <script type="text/javascript" src="jquery/jquery-3.3.1.js"> </script> <script type="text/javascript"> //<![CDATA[ jQuery( function($) { $("#dynamic").append("<p>I came via jquery!!</p>"); } ); //]]> </script> </head> <body> <div id="h1"> <center> <h1> Sample HTML to PDF </h1> </center> </div> <div id="dynamic"> </div> </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-12-03 17:30:56
|
Ok, seems to be a gradle related problem. I thinnk you can use the HtmlUnit version from maven central like this ~~~~~~~ repositories { mavenCentral() } dependencies { implementation 'net.sourceforge.htmlunit:htmlunit:2.32.RELEASE' } ~~~~~~~ --- ** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** **Status:** open **Group:** Latest SVN **Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS **Last Updated:** Mon Dec 03, 2018 03:16 PM UTC **Owner:** nobody Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- 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. |
From: RBRi <rb...@us...> - 2018-12-03 07:36:57
|
HtmlUnit is build on top of many other libraries, all required ones are the libs placed in the lib folder of the downlod zip file (https://sourceforge.net/projects/htmlunit/files/htmlunit/2.33/). Or you can use maven to get all the required dependencies. jsr223.jar is not required to run HtmlUnit. Maybe there is something wrong with your setup; have you started with an empty project? What do you mean by 'imported all the .jar files'? --- ** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** **Status:** open **Group:** Latest SVN **Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS **Last Updated:** Sun Dec 02, 2018 08:06 PM UTC **Owner:** nobody Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- 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. |
From: RBRi <rb...@us...> - 2018-11-30 18:08:59
|
- **status**: open --> pending - **assigned_to**: RBRi --- ** [bugs:#1999] getNewPage missing from ScriptResult** **Status:** pending **Group:** 2.33 **Created:** Thu Nov 08, 2018 07:36 PM UTC by oded mass **Last Updated:** Fri Nov 30, 2018 06:08 PM UTC **Owner:** RBRi ScriptResult had a method getNewPage() in 2.33 it does not. What is the alternative in 2.33 for somthing like: Page newPage = page.executeJavaScript("some script").getNewPage(); --- 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-11-30 18:08:47
|
you can do page.getWebClient().getCurrentWindow().getEnclosedPage() This was the way it was calculated before. As you can see, it is in the end not related to the script execution. This was part of the reason to remove the page from the script result. --- ** [bugs:#1999] getNewPage missing from ScriptResult** **Status:** open **Group:** 2.33 **Created:** Thu Nov 08, 2018 07:36 PM UTC by oded mass **Last Updated:** Thu Nov 08, 2018 07:36 PM UTC **Owner:** nobody ScriptResult had a method getNewPage() in 2.33 it does not. What is the alternative in 2.33 for somthing like: Page newPage = page.executeJavaScript("some script").getNewPage(); --- 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-11-30 17:59:57
|
- **status**: open --> pending - **assigned_to**: RBRi --- ** [bugs:#2002] SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref** **Status:** pending **Group:** 2.33 **Created:** Thu Nov 29, 2018 04:27 PM UTC by John **Last Updated:** Fri Nov 30, 2018 05:57 PM UTC **Owner:** RBRi Hello, I'm seeing this exception when using HtmlUnit 2.33 and I don't know how to fix it? Does anyone know how to resolve this problem? I'm using htmlunit to login to a website that uses JavaScript to perform the login. This was working great but what makes this issue bizzare is that I see different behavior on different networks. On my home network where my ISP is Comcast it works fine. Same laptop, same software running. On my work network it fails with the underlying exception below. Just recently within that past few days this started to fail. I've asked our IT deptment what's change? No new software (virus protectors, etc.) that could explain this. Ideally I need to implement a solution that works on either network. Using jdk1.8.0_192 Thanks again. Code fragment: ~~~ // enabled debugging Logger.getLogger("com.gargoylesoftware").setLevel(Level.ALL); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript").setLevel(Level.ALL); // Turn on Javascript, needed to login to this web site webClient.getOptions().setJavaScriptEnabled(true); // If this isn't set then any errors will cause getPage to fail webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); // Get the login page, minimal screen for xxxxxxxxxxxxxxxxxxxxxxx HtmlPage loginPage = webClient.getPage(LOGIN_URL); // Get the form, enter username and password and click submit HtmlForm form = loginPage.getForms().get(0); form.getInputByName("LoginId").setValueAttribute(username); form.getInputByName("Password").setValueAttribute(password); form.getInputByName("loginSubmitBtn").click(); // Wait for javascript to execute, at least 4 seconds long loginTime = System.currentTimeMillis(); webClient.waitForBackgroundJavaScript(4000); // wait for 4 seconds... fLogger.info("Got to here #1"); ~~~ Here's the exception: ~~~ INFO: Trying to login to xxxxxxxxxxxxxxxxxxxxxxxxx... Nov 29, 2018 10:31:31 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: null java.lang.NullPointerException at net.sourceforge.htmlunit.corejs.javascript.Context.decompileFunction(Context.java:1668) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:209) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Nov 29, 2018 10:31:33 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setHref 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 13 more Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more Enclosed exception: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more == CALLING JAVASCRIPT == function () { var t, e, o; n.isDebug && n.log("M9", f, Array.prototype.slice.call(arguments).join(", ")); t = Array.prototype.slice.call(arguments); try { r && (e = r.apply(this, t)); } catch (s) { n.exception(s, "M10", f, s); } n.assert(!e || "[object Array]" === Object.prototype.toString.call(e)); o = void 0; try { o = i.apply(this, e || t); } finally { try { u && u.apply(this, t); } catch (h) { n.exception(h, "M11", f, h); } } return o; } ======= EXCEPTION END ======== Nov 29, 2018 10:31:34 AM xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx login INFO: Got to here #1 ~~~ --- 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-11-30 17:57:54
|
Have done another small code imporvement to fix the npe java.lang.NullPointerException at net.sourceforge.htmlunit.corejs.javascript.Context.decompileFunction(Context.java:1668) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:209) But this is part of the code that is only called when creating some debug output. Will make a new snapshot build available. --- ** [bugs:#2002] SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref** **Status:** open **Group:** 2.33 **Created:** Thu Nov 29, 2018 04:27 PM UTC by John **Last Updated:** Fri Nov 30, 2018 12:51 PM UTC **Owner:** nobody Hello, I'm seeing this exception when using HtmlUnit 2.33 and I don't know how to fix it? Does anyone know how to resolve this problem? I'm using htmlunit to login to a website that uses JavaScript to perform the login. This was working great but what makes this issue bizzare is that I see different behavior on different networks. On my home network where my ISP is Comcast it works fine. Same laptop, same software running. On my work network it fails with the underlying exception below. Just recently within that past few days this started to fail. I've asked our IT deptment what's change? No new software (virus protectors, etc.) that could explain this. Ideally I need to implement a solution that works on either network. Using jdk1.8.0_192 Thanks again. Code fragment: ~~~ // enabled debugging Logger.getLogger("com.gargoylesoftware").setLevel(Level.ALL); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript").setLevel(Level.ALL); // Turn on Javascript, needed to login to this web site webClient.getOptions().setJavaScriptEnabled(true); // If this isn't set then any errors will cause getPage to fail webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); // Get the login page, minimal screen for xxxxxxxxxxxxxxxxxxxxxxx HtmlPage loginPage = webClient.getPage(LOGIN_URL); // Get the form, enter username and password and click submit HtmlForm form = loginPage.getForms().get(0); form.getInputByName("LoginId").setValueAttribute(username); form.getInputByName("Password").setValueAttribute(password); form.getInputByName("loginSubmitBtn").click(); // Wait for javascript to execute, at least 4 seconds long loginTime = System.currentTimeMillis(); webClient.waitForBackgroundJavaScript(4000); // wait for 4 seconds... fLogger.info("Got to here #1"); ~~~ Here's the exception: ~~~ INFO: Trying to login to xxxxxxxxxxxxxxxxxxxxxxxxx... Nov 29, 2018 10:31:31 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: null java.lang.NullPointerException at net.sourceforge.htmlunit.corejs.javascript.Context.decompileFunction(Context.java:1668) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:209) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Nov 29, 2018 10:31:33 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setHref 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 13 more Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more Enclosed exception: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more == CALLING JAVASCRIPT == function () { var t, e, o; n.isDebug && n.log("M9", f, Array.prototype.slice.call(arguments).join(", ")); t = Array.prototype.slice.call(arguments); try { r && (e = r.apply(this, t)); } catch (s) { n.exception(s, "M10", f, s); } n.assert(!e || "[object Array]" === Object.prototype.toString.call(e)); o = void 0; try { o = i.apply(this, e || t); } finally { try { u && u.apply(this, t); } catch (h) { n.exception(h, "M11", f, h); } } return o; } ======= EXCEPTION END ======== Nov 29, 2018 10:31:34 AM xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx login INFO: Got to here #1 ~~~ --- 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-11-30 12:51:04
|
>From a quick look i guess webClient.getOptions().setting setUseInsecureSSL(true); will help. Please test this and post your results. --- ** [bugs:#2002] SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref** **Status:** open **Group:** 2.33 **Created:** Thu Nov 29, 2018 04:27 PM UTC by John **Last Updated:** Thu Nov 29, 2018 04:27 PM UTC **Owner:** nobody Hello, I'm seeing this exception when using HtmlUnit 2.33 and I don't know how to fix it? Does anyone know how to resolve this problem? I'm using htmlunit to login to a website that uses JavaScript to perform the login. This was working great but what makes this issue bizzare is that I see different behavior on different networks. On my home network where my ISP is Comcast it works fine. Same laptop, same software running. On my work network it fails with the underlying exception below. Just recently within that past few days this started to fail. I've asked our IT deptment what's change? No new software (virus protectors, etc.) that could explain this. Ideally I need to implement a solution that works on either network. Using jdk1.8.0_192 Thanks again. Code fragment: ~~~ // enabled debugging Logger.getLogger("com.gargoylesoftware").setLevel(Level.ALL); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript").setLevel(Level.ALL); // Turn on Javascript, needed to login to this web site webClient.getOptions().setJavaScriptEnabled(true); // If this isn't set then any errors will cause getPage to fail webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); // Get the login page, minimal screen for xxxxxxxxxxxxxxxxxxxxxxx HtmlPage loginPage = webClient.getPage(LOGIN_URL); // Get the form, enter username and password and click submit HtmlForm form = loginPage.getForms().get(0); form.getInputByName("LoginId").setValueAttribute(username); form.getInputByName("Password").setValueAttribute(password); form.getInputByName("loginSubmitBtn").click(); // Wait for javascript to execute, at least 4 seconds long loginTime = System.currentTimeMillis(); webClient.waitForBackgroundJavaScript(4000); // wait for 4 seconds... fLogger.info("Got to here #1"); ~~~ Here's the exception: ~~~ INFO: Trying to login to xxxxxxxxxxxxxxxxxxxxxxxxx... Nov 29, 2018 10:31:31 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: null java.lang.NullPointerException at net.sourceforge.htmlunit.corejs.javascript.Context.decompileFunction(Context.java:1668) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:209) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Nov 29, 2018 10:31:33 AM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: Exception invoking setHref ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setHref 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 13 more Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more Enclosed exception: java.lang.RuntimeException: Exception invoking setHref at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) 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.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.setState(XMLHttpRequest.java:204) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.doSend(XMLHttpRequest.java:809) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest.access$000(XMLHttpRequest.java:102) at com.gargoylesoftware.htmlunit.javascript.host.xml.XMLHttpRequest$1.run(XMLHttpRequest.java:653) 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.background.JavascriptXMLHttpRequestJob.run(JavascriptXMLHttpRequestJob.java:36) 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:748) Caused by: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2196) at com.gargoylesoftware.htmlunit.javascript.host.Location.setHref(Location.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 28 more Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037) at sun.security.ssl.Handshaker.process_record(Handshaker.java:965) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355) at com.gargoylesoftware.htmlunit.httpclient.HtmlUnitSSLConnectionSocketFactory.connectSocket(HtmlUnitSSLConnectionSocketFactory.java:184) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:192) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1402) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321) at com.gargoylesoftware.htmlunit.WebClient.download(WebClient.java:2192) ... 34 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302) at sun.security.validator.Validator.validate(Validator.java:262) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621) ... 57 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392) ... 63 more == CALLING JAVASCRIPT == function () { var t, e, o; n.isDebug && n.log("M9", f, Array.prototype.slice.call(arguments).join(", ")); t = Array.prototype.slice.call(arguments); try { r && (e = r.apply(this, t)); } catch (s) { n.exception(s, "M10", f, s); } n.assert(!e || "[object Array]" === Object.prototype.toString.call(e)); o = void 0; try { o = i.apply(this, e || t); } finally { try { u && u.apply(this, t); } catch (h) { n.exception(h, "M11", f, h); } } return o; } ======= EXCEPTION END ======== Nov 29, 2018 10:31:34 AM xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx login INFO: Got to here #1 ~~~ --- 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-11-21 20:47:53
|
- **status**: accepted --> closed --- ** [bugs:#1989] RuntimeException: generated bytecode for method exceeds 64K limit** **Status:** closed **Group:** 2.33 **Created:** Thu Sep 13, 2018 08:48 PM UTC by Etrenak **Last Updated:** Wed Nov 21, 2018 08:47 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-11-21 20:47:19
|
- **Comment**: my PR for rhino is now available. Will make a new snapshot build available. Thanks for your report. --- ** [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:** Sat Oct 06, 2018 03:52 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-11-19 18:21:48
|
Hi Anton, thanks for your bug report. Every contribution is welcome. The source code is on GitHub; if you like you can also create a PullRequest instead of an patch. --- ** [bugs:#2001] Insufficient validation of input elements** **Status:** open **Group:** 2.33 **Created:** Mon Nov 19, 2018 12:29 PM UTC by Anton **Last Updated:** Mon Nov 19, 2018 12:29 PM UTC **Owner:** nobody Hi All, It seems that current implementation supports only required attribute validation for input element (attribute required and value is not empty). But html specify more options: - maxlength - min - max - pattern So it would be nice to use them to calculate input validity before form submission. If it would be necessary I could provide patch for this feature a bit later. Best regards --- 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-11-12 20:03:54
|
Branch: refs/heads/master Home: https://github.com/HtmlUnit/htmlunit-rhino-fork Commit: e1850e06f15a073b4ce47188ee6fd1225aaa3d1c https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/e1850e06f15a073b4ce47188ee6fd1225aaa3d1c Author: rbri <rb...@rb...> Date: 2018-10-11 (Thu, 11 Oct 2018) Changed paths: M src/org/mozilla/javascript/Arguments.java M src/org/mozilla/javascript/NativeCallSite.java M src/org/mozilla/javascript/NativeMath.java M src/org/mozilla/javascript/NativeObject.java M src/org/mozilla/javascript/NativeSymbol.java M src/org/mozilla/javascript/Parser.java M src/org/mozilla/javascript/ScriptRuntime.java M src/org/mozilla/javascript/ScriptableObject.java M src/org/mozilla/javascript/commonjs/module/provider/CachingModuleScriptProviderBase.java M src/org/mozilla/javascript/optimizer/Block.java M src/org/mozilla/javascript/optimizer/Codegen.java M toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/JTreeTable.java M toolsrc/org/mozilla/javascript/tools/shell/ShellConsole.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java Log Message: ----------- code cleanup based on eclipse Photon suggestions Commit: 7d9f7c4c3244da91da3a3716ae3fbea767f7d560 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/7d9f7c4c3244da91da3a3716ae3fbea767f7d560 Author: rbri <rb...@rb...> Date: 2018-10-11 (Thu, 11 Oct 2018) Changed paths: M src/org/mozilla/javascript/FunctionObject.java M src/org/mozilla/javascript/JavaMembers.java M src/org/mozilla/javascript/MemberBox.java M src/org/mozilla/javascript/NativeJavaClass.java M src/org/mozilla/javascript/NativeJavaConstructor.java M src/org/mozilla/javascript/NativeJavaMethod.java M src/org/mozilla/javascript/ScriptableObject.java Log Message: ----------- add more delegate methods to MemberBox; name all delegate method using the name of the delegated method Commit: f53a60b144e82b7823ae4e1613c98b8e8d09b6ae https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/f53a60b144e82b7823ae4e1613c98b8e8d09b6ae Author: rbri <rb...@rb...> Date: 2018-10-11 (Thu, 11 Oct 2018) Changed paths: M checkstyle.xml M examples/Control.java M examples/Counter.java M examples/CounterTest.java M examples/DynamicScopes.java M examples/File.java M examples/Foo.java M examples/Matrix.java M examples/PrimitiveWrapFactory.java M examples/RunScript.java M examples/RunScript2.java M examples/RunScript3.java M examples/RunScript4.java M examples/Shell.java M src/org/mozilla/classfile/ClassFileWriter.java M src/org/mozilla/javascript/ClassCache.java M src/org/mozilla/javascript/CodeGenerator.java M src/org/mozilla/javascript/EmbeddedSlotMap.java M src/org/mozilla/javascript/Evaluator.java M src/org/mozilla/javascript/FunctionObject.java M src/org/mozilla/javascript/HashSlotMap.java M src/org/mozilla/javascript/IRFactory.java M src/org/mozilla/javascript/Interpreter.java M src/org/mozilla/javascript/InterpreterData.java M src/org/mozilla/javascript/JavaAdapter.java M src/org/mozilla/javascript/JavaMembers.java M src/org/mozilla/javascript/LazilyLoadedCtor.java M src/org/mozilla/javascript/MemberBox.java M src/org/mozilla/javascript/NativeArray.java M src/org/mozilla/javascript/NativeCollectionIterator.java M src/org/mozilla/javascript/NativeDate.java M src/org/mozilla/javascript/NativeGlobal.java M src/org/mozilla/javascript/NativeJSON.java M src/org/mozilla/javascript/NativeJavaClass.java M src/org/mozilla/javascript/NativeJavaMethod.java M src/org/mozilla/javascript/NativeJavaObject.java M src/org/mozilla/javascript/NativeObject.java M src/org/mozilla/javascript/NativeString.java M src/org/mozilla/javascript/Node.java M src/org/mozilla/javascript/NodeTransformer.java M src/org/mozilla/javascript/ObjArray.java M src/org/mozilla/javascript/ObjToIntMap.java M src/org/mozilla/javascript/Parser.java M src/org/mozilla/javascript/ScriptRuntime.java M src/org/mozilla/javascript/ScriptableObject.java M src/org/mozilla/javascript/SlotMapContainer.java M src/org/mozilla/javascript/ThreadSafeSlotMapContainer.java M src/org/mozilla/javascript/TokenStream.java M src/org/mozilla/javascript/UintMap.java M src/org/mozilla/javascript/annotations/JSConstructor.java M src/org/mozilla/javascript/annotations/JSFunction.java M src/org/mozilla/javascript/annotations/JSGetter.java M src/org/mozilla/javascript/annotations/JSSetter.java M src/org/mozilla/javascript/annotations/JSStaticFunction.java M src/org/mozilla/javascript/ast/ArrayComprehension.java M src/org/mozilla/javascript/ast/ArrayLiteral.java M src/org/mozilla/javascript/ast/AstNode.java M src/org/mozilla/javascript/ast/AstRoot.java M src/org/mozilla/javascript/ast/ErrorCollector.java M src/org/mozilla/javascript/ast/FunctionCall.java M src/org/mozilla/javascript/ast/FunctionNode.java M src/org/mozilla/javascript/ast/GeneratorExpression.java M src/org/mozilla/javascript/ast/LabeledStatement.java M src/org/mozilla/javascript/ast/ObjectLiteral.java M src/org/mozilla/javascript/ast/Scope.java M src/org/mozilla/javascript/ast/ScriptNode.java M src/org/mozilla/javascript/ast/StringLiteral.java M src/org/mozilla/javascript/ast/SwitchCase.java M src/org/mozilla/javascript/ast/SwitchStatement.java M src/org/mozilla/javascript/ast/TryStatement.java M src/org/mozilla/javascript/ast/VariableDeclaration.java M src/org/mozilla/javascript/ast/XmlLiteral.java M src/org/mozilla/javascript/commonjs/module/ModuleScope.java M src/org/mozilla/javascript/commonjs/module/ModuleScriptProvider.java M src/org/mozilla/javascript/jdk15/VMBridge_jdk15.java M src/org/mozilla/javascript/json/JsonParser.java M src/org/mozilla/javascript/optimizer/Block.java M src/org/mozilla/javascript/optimizer/ClassCompiler.java M src/org/mozilla/javascript/optimizer/Codegen.java M src/org/mozilla/javascript/optimizer/OptFunctionNode.java M src/org/mozilla/javascript/optimizer/OptRuntime.java M src/org/mozilla/javascript/optimizer/OptTransformer.java M src/org/mozilla/javascript/optimizer/Optimizer.java M src/org/mozilla/javascript/regexp/NativeRegExpCtor.java M src/org/mozilla/javascript/regexp/RegExpImpl.java M src/org/mozilla/javascript/resources/Messages.properties M src/org/mozilla/javascript/serialize/ScriptableInputStream.java M src/org/mozilla/javascript/serialize/ScriptableOutputStream.java M src/org/mozilla/javascript/xml/XMLLib.java M src/org/mozilla/javascript/xml/XMLObject.java M testsrc/org/mozilla/javascript/EqualObjectGraphsTest.java M testsrc/org/mozilla/javascript/benchmarks/CaliperObjectBenchmark.java M testsrc/org/mozilla/javascript/benchmarks/CaliperSpiderBenchmark.java M testsrc/org/mozilla/javascript/benchmarks/ResultPlotter.java M testsrc/org/mozilla/javascript/benchmarks/SunSpiderBenchmark.java M testsrc/org/mozilla/javascript/benchmarks/V8Benchmark.java M testsrc/org/mozilla/javascript/drivers/JsDriver.java M testsrc/org/mozilla/javascript/drivers/JsTestsBase.java M testsrc/org/mozilla/javascript/drivers/LanguageVersion.java M testsrc/org/mozilla/javascript/drivers/RhinoTest.java M testsrc/org/mozilla/javascript/drivers/ScriptTestsBase.java M testsrc/org/mozilla/javascript/drivers/ShellTest.java M testsrc/org/mozilla/javascript/drivers/TestUtils.java M testsrc/org/mozilla/javascript/tests/ApplyOnPrimitiveNumberTest.java M testsrc/org/mozilla/javascript/tests/ArrayConcatTest.java M testsrc/org/mozilla/javascript/tests/ArrowFnPositionBugTest.java M testsrc/org/mozilla/javascript/tests/Bug409702Test.java M testsrc/org/mozilla/javascript/tests/Bug412433Test.java M testsrc/org/mozilla/javascript/tests/Bug419940Test.java M testsrc/org/mozilla/javascript/tests/Bug421071Test.java M testsrc/org/mozilla/javascript/tests/Bug448816Test.java M testsrc/org/mozilla/javascript/tests/Bug466207Test.java M testsrc/org/mozilla/javascript/tests/Bug467396Test.java M testsrc/org/mozilla/javascript/tests/Bug482203Test.java M testsrc/org/mozilla/javascript/tests/Bug492525Test.java M testsrc/org/mozilla/javascript/tests/Bug496585Test.java M testsrc/org/mozilla/javascript/tests/Bug688023Test.java M testsrc/org/mozilla/javascript/tests/Bug714204Test.java M testsrc/org/mozilla/javascript/tests/BugGetterSetterTest.java M testsrc/org/mozilla/javascript/tests/ClassShutterExceptionTest.java M testsrc/org/mozilla/javascript/tests/ComparatorTest.java M testsrc/org/mozilla/javascript/tests/ConsStringTest.java M testsrc/org/mozilla/javascript/tests/ContextFactoryTest.java M testsrc/org/mozilla/javascript/tests/ContinuationComparisonTest.java M testsrc/org/mozilla/javascript/tests/ContinuationsApiTest.java M testsrc/org/mozilla/javascript/tests/CustomSetterAcceptNullScriptableTest.java M testsrc/org/mozilla/javascript/tests/DecompileTest.java M testsrc/org/mozilla/javascript/tests/DefineClassMapInheritance.java M testsrc/org/mozilla/javascript/tests/DefineClassTest.java M testsrc/org/mozilla/javascript/tests/DefineFunctionPropertiesTest.java M testsrc/org/mozilla/javascript/tests/DeletePropertyTest.java M testsrc/org/mozilla/javascript/tests/DoctestFeature18EnabledTest.java M testsrc/org/mozilla/javascript/tests/DoctestsTest.java M testsrc/org/mozilla/javascript/tests/DynamicScopeTest.java M testsrc/org/mozilla/javascript/tests/Evaluator.java M testsrc/org/mozilla/javascript/tests/ExternalArrayTest.java M testsrc/org/mozilla/javascript/tests/FunctionTest.java M testsrc/org/mozilla/javascript/tests/GeneratedClassNameTest.java M testsrc/org/mozilla/javascript/tests/GeneratedMethodNameTest.java M testsrc/org/mozilla/javascript/tests/GlobalParseXTest.java M testsrc/org/mozilla/javascript/tests/HashCollisionTest.java M testsrc/org/mozilla/javascript/tests/InitializationTest.java M testsrc/org/mozilla/javascript/tests/Issue176Test.java M testsrc/org/mozilla/javascript/tests/JavaAcessibilityTest.java M testsrc/org/mozilla/javascript/tests/JsTestsTest.java M testsrc/org/mozilla/javascript/tests/MemberBoxCallTest.java M testsrc/org/mozilla/javascript/tests/MozillaSuiteTest.java M testsrc/org/mozilla/javascript/tests/NativeArrayTest.java M testsrc/org/mozilla/javascript/tests/NativeRegExpTest.java M testsrc/org/mozilla/javascript/tests/NativeStringTest.java M testsrc/org/mozilla/javascript/tests/ObserveInstructionCountTest.java M testsrc/org/mozilla/javascript/tests/OverloadTest.java M testsrc/org/mozilla/javascript/tests/ParserTest.java M testsrc/org/mozilla/javascript/tests/PrimitiveTypeScopeResolutionTest.java M testsrc/org/mozilla/javascript/tests/SortingTest.java M testsrc/org/mozilla/javascript/tests/StackTraceExtensionTest.java M testsrc/org/mozilla/javascript/tests/StackTraceTest.java M testsrc/org/mozilla/javascript/tests/StrictModeApiTest.java M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/org/mozilla/javascript/tests/ToNumberConversionsTest.java M testsrc/org/mozilla/javascript/tests/ToNumberLegacyConversionsTest.java M testsrc/org/mozilla/javascript/tests/TypeOfTest.java M testsrc/org/mozilla/javascript/tests/UndefinedOrNullThisInFunctionCallOrApplyTest.java M testsrc/org/mozilla/javascript/tests/Utils.java M testsrc/org/mozilla/javascript/tests/WriteReadOnlyPropertyTest.java M testsrc/org/mozilla/javascript/tests/backwardcompat/BackwardUseStrict.java M testsrc/org/mozilla/javascript/tests/commonjs/module/ComplianceTest.java M testsrc/org/mozilla/javascript/tests/es5/FunctionApplyArrayLikeArguments.java M testsrc/org/mozilla/javascript/tests/es5/ObjectGetOwnPropertyDescriptorTest.java M testsrc/org/mozilla/javascript/tests/es5/ObjectGetOwnPropertyNamesTest.java M testsrc/org/mozilla/javascript/tests/es5/ObjectKeysTest.java M testsrc/org/mozilla/javascript/tests/es5/ObjectToStringNullUndefinedTest.java M testsrc/org/mozilla/javascript/tests/es5/StringMissingPropertyIsNotEnumerableTest.java M testsrc/org/mozilla/javascript/tests/es5/Test262RegExpTest.java M testsrc/org/mozilla/javascript/tests/es6/CollectionHashtableTest.java M testsrc/org/mozilla/javascript/tests/json/JsonParserTest.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/JSObjectEval.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/call/Call_001.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_008.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_009.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_010.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_011.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_012.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_013.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_014.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_015.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_016.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_017.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_018.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_019.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/exception/Exception_001.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/member/Member_001.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/member/Member_002.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/tostring/ToString_001.java M toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java M toolsrc/org/mozilla/javascript/tools/debugger/Dim.java M toolsrc/org/mozilla/javascript/tools/debugger/Main.java M toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/AbstractCellEditor.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/JTreeTable.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/TreeTableModelAdapter.java M toolsrc/org/mozilla/javascript/tools/idswitch/Main.java M toolsrc/org/mozilla/javascript/tools/jsc/Main.java M toolsrc/org/mozilla/javascript/tools/shell/ConsoleTextArea.java M toolsrc/org/mozilla/javascript/tools/shell/Environment.java M toolsrc/org/mozilla/javascript/tools/shell/Global.java M toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java M toolsrc/org/mozilla/javascript/tools/shell/SecurityProxy.java M toolsrc/org/mozilla/javascript/tools/shell/ShellContextFactory.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLCtor.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLWithScope.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java Log Message: ----------- avoid star imports across the codebase Commit: 4fa1a729f15050190294a8a22cb98e4efce4ece5 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/4fa1a729f15050190294a8a22cb98e4efce4ece5 Author: Igor Kuzmanenko <i.k...@sa...> Date: 2018-10-18 (Thu, 18 Oct 2018) Changed paths: M src/org/mozilla/javascript/ast/XmlMemberGet.java A testsrc/org/mozilla/javascript/tests/BugXmlMemberGetToSource.java Log Message: ----------- fixes XmlMemberGet toSource implementation (#483) Commit: ee36b9201f3b541c42a99fd691a63b40a762384b https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/ee36b9201f3b541c42a99fd691a63b40a762384b Author: rbri <rb...@rb...> Date: 2018-10-18 (Thu, 18 Oct 2018) Changed paths: M src/org/mozilla/classfile/ClassFileWriter.java M src/org/mozilla/javascript/Context.java M src/org/mozilla/javascript/optimizer/Codegen.java A testsrc/org/mozilla/javascript/tests/CodegenTest.java Log Message: ----------- fall back to the interpreter if the byte code generation fails Commit: 0a713c394d78dfe4c20b814e95995da5ef336880 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/0a713c394d78dfe4c20b814e95995da5ef336880 Author: rbri <rb...@rb...> Date: 2018-10-18 (Thu, 18 Oct 2018) Changed paths: M src/org/mozilla/javascript/NativeCollectionIterator.java M src/org/mozilla/javascript/NativeWeakMap.java M src/org/mozilla/javascript/NativeWeakSet.java A testsrc/org/mozilla/javascript/tests/es6/NativeArrayIteratorTest.java A testsrc/org/mozilla/javascript/tests/es6/NativeWeakMapTest.java A testsrc/org/mozilla/javascript/tests/es6/NativeWeakSetTest.java Log Message: ----------- fix serialization for NativeMap, NativeSet, NativeWeakMap, and NativeWeakSet Commit: 0f26d8df2a9ee740cdc74974c5a084e95d916575 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/0f26d8df2a9ee740cdc74974c5a084e95d916575 Author: rbri <rb...@rb...> Date: 2018-10-18 (Thu, 18 Oct 2018) Changed paths: M src/org/mozilla/javascript/NativeMap.java M src/org/mozilla/javascript/NativeSet.java Log Message: ----------- scope is only undefined in strict mode; fix special null entries for maps Commit: 292a4a3302db9cc0d7b957bbe8a416685b2181e8 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/292a4a3302db9cc0d7b957bbe8a416685b2181e8 Author: rbri <rb...@rb...> Date: 2018-10-18 (Thu, 18 Oct 2018) Changed paths: M testsrc/test262.properties Log Message: ----------- more config cleanup - use files for excluding; again enable a bunch of tests already running Commit: f3d17b9ee8e6dab51380e43346740e333e6567cd https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/f3d17b9ee8e6dab51380e43346740e333e6567cd Author: rbri <rb...@rb...> Date: 2018-10-30 (Tue, 30 Oct 2018) Changed paths: M src/org/mozilla/javascript/JavaAdapter.java M src/org/mozilla/javascript/VMBridge.java R src/org/mozilla/javascript/jdk15/VMBridge_jdk15.java M src/org/mozilla/javascript/jdk18/VMBridge_jdk18.java Log Message: ----------- another VMBridge cleanup step (JDK 1.8 is the minimum at the moment) Commit: c34013ac67907ad2e1958d413bdea28d1ff707d5 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/c34013ac67907ad2e1958d413bdea28d1ff707d5 Author: rbri <rb...@rb...> Date: 2018-11-09 (Fri, 09 Nov 2018) Changed paths: M src/org/mozilla/javascript/NativeMap.java A testsrc/jstests/es6/map.js A testsrc/org/mozilla/javascript/tests/es6/NativeMapTest.java Log Message: ----------- another map fix Commit: 94d9af3043b0f2ba55cbcceffa31ee751c1d372b https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/94d9af3043b0f2ba55cbcceffa31ee751c1d372b Author: rbri <rb...@rb...> Date: 2018-11-12 (Mon, 12 Nov 2018) Changed paths: M checkstyle.xml M examples/Control.java M examples/Counter.java M examples/CounterTest.java M examples/DynamicScopes.java M examples/File.java M examples/Foo.java M examples/Matrix.java M examples/PrimitiveWrapFactory.java M examples/RunScript.java M examples/RunScript2.java M examples/RunScript3.java M examples/RunScript4.java M examples/Shell.java M src/org/mozilla/classfile/ClassFileWriter.java M src/org/mozilla/javascript/Arguments.java M src/org/mozilla/javascript/ClassCache.java M src/org/mozilla/javascript/Context.java M src/org/mozilla/javascript/EmbeddedSlotMap.java M src/org/mozilla/javascript/Evaluator.java M src/org/mozilla/javascript/FunctionObject.java M src/org/mozilla/javascript/HashSlotMap.java M src/org/mozilla/javascript/IRFactory.java M src/org/mozilla/javascript/Interpreter.java M src/org/mozilla/javascript/InterpreterData.java M src/org/mozilla/javascript/JavaAdapter.java M src/org/mozilla/javascript/JavaMembers.java M src/org/mozilla/javascript/LazilyLoadedCtor.java M src/org/mozilla/javascript/MemberBox.java M src/org/mozilla/javascript/NativeArray.java M src/org/mozilla/javascript/NativeCallSite.java M src/org/mozilla/javascript/NativeCollectionIterator.java M src/org/mozilla/javascript/NativeDate.java M src/org/mozilla/javascript/NativeGlobal.java M src/org/mozilla/javascript/NativeJSON.java M src/org/mozilla/javascript/NativeJavaClass.java M src/org/mozilla/javascript/NativeJavaConstructor.java M src/org/mozilla/javascript/NativeJavaMethod.java M src/org/mozilla/javascript/NativeJavaObject.java M src/org/mozilla/javascript/NativeMap.java M src/org/mozilla/javascript/NativeMath.java M src/org/mozilla/javascript/NativeObject.java M src/org/mozilla/javascript/NativeSet.java M src/org/mozilla/javascript/NativeString.java M src/org/mozilla/javascript/NativeSymbol.java M src/org/mozilla/javascript/NativeWeakMap.java M src/org/mozilla/javascript/NativeWeakSet.java M src/org/mozilla/javascript/Node.java M src/org/mozilla/javascript/ObjArray.java M src/org/mozilla/javascript/ObjToIntMap.java M src/org/mozilla/javascript/Parser.java M src/org/mozilla/javascript/ScriptRuntime.java M src/org/mozilla/javascript/ScriptableObject.java M src/org/mozilla/javascript/SlotMapContainer.java M src/org/mozilla/javascript/ThreadSafeSlotMapContainer.java M src/org/mozilla/javascript/TokenStream.java M src/org/mozilla/javascript/UintMap.java M src/org/mozilla/javascript/VMBridge.java M src/org/mozilla/javascript/annotations/JSConstructor.java M src/org/mozilla/javascript/annotations/JSFunction.java M src/org/mozilla/javascript/annotations/JSGetter.java M src/org/mozilla/javascript/annotations/JSSetter.java M src/org/mozilla/javascript/annotations/JSStaticFunction.java M src/org/mozilla/javascript/ast/ArrayComprehension.java M src/org/mozilla/javascript/ast/ArrayLiteral.java M src/org/mozilla/javascript/ast/AstNode.java M src/org/mozilla/javascript/ast/AstRoot.java M src/org/mozilla/javascript/ast/ErrorCollector.java M src/org/mozilla/javascript/ast/FunctionCall.java M src/org/mozilla/javascript/ast/FunctionNode.java M src/org/mozilla/javascript/ast/GeneratorExpression.java M src/org/mozilla/javascript/ast/LabeledStatement.java M src/org/mozilla/javascript/ast/ObjectLiteral.java M src/org/mozilla/javascript/ast/Scope.java M src/org/mozilla/javascript/ast/ScriptNode.java M src/org/mozilla/javascript/ast/StringLiteral.java M src/org/mozilla/javascript/ast/SwitchCase.java M src/org/mozilla/javascript/ast/SwitchStatement.java M src/org/mozilla/javascript/ast/TryStatement.java M src/org/mozilla/javascript/ast/VariableDeclaration.java M src/org/mozilla/javascript/ast/XmlLiteral.java M src/org/mozilla/javascript/ast/XmlMemberGet.java M src/org/mozilla/javascript/commonjs/module/ModuleScope.java M src/org/mozilla/javascript/commonjs/module/ModuleScriptProvider.java M src/org/mozilla/javascript/commonjs/module/provider/CachingModuleScriptProviderBase.java R src/org/mozilla/javascript/jdk15/VMBridge_jdk15.java M src/org/mozilla/javascript/jdk18/VMBridge_jdk18.java M src/org/mozilla/javascript/json/JsonParser.java M src/org/mozilla/javascript/optimizer/Block.java M src/org/mozilla/javascript/optimizer/ClassCompiler.java M src/org/mozilla/javascript/optimizer/Codegen.java M src/org/mozilla/javascript/optimizer/OptFunctionNode.java M src/org/mozilla/javascript/optimizer/OptRuntime.java M src/org/mozilla/javascript/optimizer/OptTransformer.java M src/org/mozilla/javascript/optimizer/Optimizer.java M src/org/mozilla/javascript/regexp/NativeRegExpCtor.java M src/org/mozilla/javascript/regexp/RegExpImpl.java M src/org/mozilla/javascript/resources/Messages.properties M src/org/mozilla/javascript/serialize/ScriptableInputStream.java M src/org/mozilla/javascript/serialize/ScriptableOutputStream.java M src/org/mozilla/javascript/xml/XMLLib.java M src/org/mozilla/javascript/xml/XMLObject.java A testsrc/jstests/es6/map.js M testsrc/org/mozilla/javascript/EqualObjectGraphsTest.java M testsrc/org/mozilla/javascript/benchmarks/CaliperObjectBenchmark.java M testsrc/org/mozilla/javascript/benchmarks/CaliperSpiderBenchmark.java M testsrc/org/mozilla/javascript/benchmarks/ResultPlotter.java M testsrc/org/mozilla/javascript/benchmarks/SunSpiderBenchmark.java M testsrc/org/mozilla/javascript/benchmarks/V8Benchmark.java M testsrc/org/mozilla/javascript/drivers/JsDriver.java M testsrc/org/mozilla/javascript/drivers/JsTestsBase.java M testsrc/org/mozilla/javascript/drivers/LanguageVersion.java M testsrc/org/mozilla/javascript/drivers/RhinoTest.java M testsrc/org/mozilla/javascript/drivers/ScriptTestsBase.java M testsrc/org/mozilla/javascript/drivers/ShellTest.java M testsrc/org/mozilla/javascript/drivers/TestUtils.java M testsrc/org/mozilla/javascript/tests/ApplyOnPrimitiveNumberTest.java M testsrc/org/mozilla/javascript/tests/ArrayConcatTest.java M testsrc/org/mozilla/javascript/tests/ArrowFnPositionBugTest.java M testsrc/org/mozilla/javascript/tests/Bug409702Test.java M testsrc/org/mozilla/javascript/tests/Bug412433Test.java M testsrc/org/mozilla/javascript/tests/Bug419940Test.java M testsrc/org/mozilla/javascript/tests/Bug421071Test.java M testsrc/org/mozilla/javascript/tests/Bug448816Test.java M testsrc/org/mozilla/javascript/tests/Bug466207Test.java M testsrc/org/mozilla/javascript/tests/Bug467396Test.java M testsrc/org/mozilla/javascript/tests/Bug482203Test.java M testsrc/org/mozilla/javascript/tests/Bug492525Test.java M testsrc/org/mozilla/javascript/tests/Bug496585Test.java M testsrc/org/mozilla/javascript/tests/Bug688023Test.java M testsrc/org/mozilla/javascript/tests/Bug714204Test.java M testsrc/org/mozilla/javascript/tests/BugGetterSetterTest.java A testsrc/org/mozilla/javascript/tests/BugXmlMemberGetToSource.java M testsrc/org/mozilla/javascript/tests/ClassShutterExceptionTest.java A testsrc/org/mozilla/javascript/tests/CodegenTest.java M testsrc/org/mozilla/javascript/tests/ComparatorTest.java M testsrc/org/mozilla/javascript/tests/ConsStringTest.java M testsrc/org/mozilla/javascript/tests/ContextFactoryTest.java M testsrc/org/mozilla/javascript/tests/ContinuationComparisonTest.java M testsrc/org/mozilla/javascript/tests/ContinuationsApiTest.java M testsrc/org/mozilla/javascript/tests/CustomSetterAcceptNullScriptableTest.java M testsrc/org/mozilla/javascript/tests/DecompileTest.java M testsrc/org/mozilla/javascript/tests/DefineClassMapInheritance.java M testsrc/org/mozilla/javascript/tests/DefineClassTest.java M testsrc/org/mozilla/javascript/tests/DefineFunctionPropertiesTest.java M testsrc/org/mozilla/javascript/tests/DeletePropertyTest.java M testsrc/org/mozilla/javascript/tests/DoctestFeature18EnabledTest.java M testsrc/org/mozilla/javascript/tests/DoctestsTest.java M testsrc/org/mozilla/javascript/tests/DynamicScopeTest.java M testsrc/org/mozilla/javascript/tests/Evaluator.java M testsrc/org/mozilla/javascript/tests/ExternalArrayTest.java M testsrc/org/mozilla/javascript/tests/FunctionTest.java M testsrc/org/mozilla/javascript/tests/GeneratedClassNameTest.java M testsrc/org/mozilla/javascript/tests/GeneratedMethodNameTest.java M testsrc/org/mozilla/javascript/tests/GlobalParseXTest.java M testsrc/org/mozilla/javascript/tests/HashCollisionTest.java M testsrc/org/mozilla/javascript/tests/InitializationTest.java M testsrc/org/mozilla/javascript/tests/Issue176Test.java M testsrc/org/mozilla/javascript/tests/JavaAcessibilityTest.java M testsrc/org/mozilla/javascript/tests/JsTestsTest.java M testsrc/org/mozilla/javascript/tests/MemberBoxCallTest.java M testsrc/org/mozilla/javascript/tests/MozillaSuiteTest.java M testsrc/org/mozilla/javascript/tests/NativeArrayTest.java M testsrc/org/mozilla/javascript/tests/NativeRegExpTest.java M testsrc/org/mozilla/javascript/tests/NativeStringTest.java M testsrc/org/mozilla/javascript/tests/ObserveInstructionCountTest.java M testsrc/org/mozilla/javascript/tests/OverloadTest.java M testsrc/org/mozilla/javascript/tests/ParserTest.java M testsrc/org/mozilla/javascript/tests/PrimitiveTypeScopeResolutionTest.java M testsrc/org/mozilla/javascript/tests/SortingTest.java M testsrc/org/mozilla/javascript/tests/StackTraceExtensionTest.java M testsrc/org/mozilla/javascript/tests/StackTraceTest.java M testsrc/org/mozilla/javascript/tests/StrictModeApiTest.java M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/org/mozilla/javascript/tests/ToNumberConversionsTest.java M testsrc/org/mozilla/javascript/tests/ToNumberLegacyConversionsTest.java M testsrc/org/mozilla/javascript/tests/TypeOfTest.java M testsrc/org/mozilla/javascript/tests/UndefinedOrNullThisInFunctionCallOrApplyTest.java M testsrc/org/mozilla/javascript/tests/Utils.java M testsrc/org/mozilla/javascript/tests/WriteReadOnlyPropertyTest.java M testsrc/org/mozilla/javascript/tests/backwardcompat/BackwardUseStrict.java M testsrc/org/mozilla/javascript/tests/commonjs/module/ComplianceTest.java M testsrc/org/mozilla/javascript/tests/es5/FunctionApplyArrayLikeArguments.java M testsrc/org/mozilla/javascript/tests/es5/ObjectGetOwnPropertyDescriptorTest.java M testsrc/org/mozilla/javascript/tests/es5/ObjectGetOwnPropertyNamesTest.java M testsrc/org/mozilla/javascript/tests/es5/ObjectKeysTest.java M testsrc/org/mozilla/javascript/tests/es5/ObjectToStringNullUndefinedTest.java M testsrc/org/mozilla/javascript/tests/es5/StringMissingPropertyIsNotEnumerableTest.java M testsrc/org/mozilla/javascript/tests/es5/Test262RegExpTest.java M testsrc/org/mozilla/javascript/tests/es6/CollectionHashtableTest.java A testsrc/org/mozilla/javascript/tests/es6/NativeArrayIteratorTest.java A testsrc/org/mozilla/javascript/tests/es6/NativeMapTest.java A testsrc/org/mozilla/javascript/tests/es6/NativeWeakMapTest.java A testsrc/org/mozilla/javascript/tests/es6/NativeWeakSetTest.java M testsrc/org/mozilla/javascript/tests/json/JsonParserTest.java M testsrc/test262.properties M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/JSObjectEval.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/call/Call_001.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_008.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_009.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_010.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_011.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_012.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_013.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_014.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_015.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_016.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_017.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_018.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/datatypes/DataTypes_019.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/exception/Exception_001.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/member/Member_001.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/member/Member_002.java M testsrc/tests/src/com/netscape/javascript/qa/liveconnect/tostring/ToString_001.java M toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java M toolsrc/org/mozilla/javascript/tools/debugger/Dim.java M toolsrc/org/mozilla/javascript/tools/debugger/Main.java M toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/AbstractCellEditor.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/JTreeTable.java M toolsrc/org/mozilla/javascript/tools/debugger/treetable/TreeTableModelAdapter.java M toolsrc/org/mozilla/javascript/tools/idswitch/Main.java M toolsrc/org/mozilla/javascript/tools/jsc/Main.java M toolsrc/org/mozilla/javascript/tools/shell/ConsoleTextArea.java M toolsrc/org/mozilla/javascript/tools/shell/Environment.java M toolsrc/org/mozilla/javascript/tools/shell/Global.java M toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java M toolsrc/org/mozilla/javascript/tools/shell/SecurityProxy.java M toolsrc/org/mozilla/javascript/tools/shell/ShellConsole.java M toolsrc/org/mozilla/javascript/tools/shell/ShellContextFactory.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLCtor.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLLibImpl.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLName.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLWithScope.java M xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java Log Message: ----------- Merge remote-tracking branch 'rhino/master' Compare: https://github.com/HtmlUnit/htmlunit-rhino-fork/compare/7792e9566b47...94d9af3043b0 **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-30 19:33:03
|
- **status**: pending --> closed --- ** [bugs:#1992] Error in validation of required fields** **Status:** closed **Group:** 2.33 **Created:** Wed Oct 10, 2018 03:00 PM UTC by Leonardo Silva Medina **Last Updated:** Tue Oct 30, 2018 07:32 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-30 19:32:51
|
Finally found the time to add the info log output. --- ** [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 02:15 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-24 18:32:42
|
- **status**: open --> accepted - **assigned_to**: RBRi --- ** [bugs:#1997] Element height calculation ignores children if the height of the element itself is 0** **Status:** accepted **Group:** 2.33 **Created:** Thu Oct 18, 2018 09:18 AM UTC by Rural Hunter **Last Updated:** Wed Oct 24, 2018 06:32 PM UTC **Owner:** RBRi The test code: ~~~ @Test public void testMain() throws Exception { List<String> alerts = new ArrayList<>(); WebClient wc=new WebClient(); wc.setAlertHandler(new CollectingAlertHandler(alerts)); wc.getPage(getClass().getResource("element_size.html")); System.out.println(alerts.toString()); } ~~~ The element_size.html page: ~~~ <html> <head> <title>size test</title> </head> <body> <div id="div1"> <iframe height="360" src="http://www.bing.com" frameborder="0" width="410"></iframe> </div> <script language="JavaScript"> alert(div1.offsetHeight); </script> </body> </html> ~~~ In real browser, the alert result is 360. In htmlunit, the result is 0. If I comment out the code below in ComputedCSSStyleDeclaration.getCalculatedHeight(), the alert result is 154. Though it's still not the same as the browser, but it's much better. ~~~ private int getCalculatedHeight() { if (height_ != null) { return height_.intValue(); } int height = getEmptyHeight(); // if (height == 0) { // height_ = Integer.valueOf(0); // return 0; // } if (super.getHeight().isEmpty()) { ~~~ I also noticed the logic in getCalculatedWidth() is different: ~~~ private int getCalculatedWidth() { if (width_ != null) { return width_.intValue(); } final Element element = getElement(); final DomNode node = element.getDomNodeOrDie(); if (!node.mayBeDisplayed()) { width_ = Integer.valueOf(0); return 0; } ~~~ --- 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-24 18:32:29
|
Sorry, but this is not that simple.... will try to fix this if there is time --- ** [bugs:#1997] Element height calculation ignores children if the height of the element itself is 0** **Status:** open **Group:** 2.33 **Created:** Thu Oct 18, 2018 09:18 AM UTC by Rural Hunter **Last Updated:** Thu Oct 18, 2018 09:18 AM UTC **Owner:** nobody The test code: ~~~ @Test public void testMain() throws Exception { List<String> alerts = new ArrayList<>(); WebClient wc=new WebClient(); wc.setAlertHandler(new CollectingAlertHandler(alerts)); wc.getPage(getClass().getResource("element_size.html")); System.out.println(alerts.toString()); } ~~~ The element_size.html page: ~~~ <html> <head> <title>size test</title> </head> <body> <div id="div1"> <iframe height="360" src="http://www.bing.com" frameborder="0" width="410"></iframe> </div> <script language="JavaScript"> alert(div1.offsetHeight); </script> </body> </html> ~~~ In real browser, the alert result is 360. In htmlunit, the result is 0. If I comment out the code below in ComputedCSSStyleDeclaration.getCalculatedHeight(), the alert result is 154. Though it's still not the same as the browser, but it's much better. ~~~ private int getCalculatedHeight() { if (height_ != null) { return height_.intValue(); } int height = getEmptyHeight(); // if (height == 0) { // height_ = Integer.valueOf(0); // return 0; // } if (super.getHeight().isEmpty()) { ~~~ I also noticed the logic in getCalculatedWidth() is different: ~~~ private int getCalculatedWidth() { if (width_ != null) { return width_.intValue(); } final Element element = getElement(); final DomNode node = element.getDomNodeOrDie(); if (!node.mayBeDisplayed()) { width_ = Integer.valueOf(0); return 0; } ~~~ --- 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-24 18:29:32
|
It will be great if you can help a bit with this. The whole source code is on github, i hope you are able to checkout the code. To do some more layout fixes i need simple test cases pointing to a simple problem. Maybe you can reduce your sampe step by step to find the first real isolated problem. Than you can create a new test case (have a look at this commit https://github.com/HtmlUnit/htmlunit/commit/90bc9caf824ae71d7c2715b89e734d8d37e9a7c0) and make pull requests out of this (or patches if you like). Usually nailing down the problem list the most time consuming task, having this simple test cases will really help. Thanks for your support --- ** [bugs:#1986] getPosX, getPosY, getBoundingClientRect return incorrect values** **Status:** pending **Group:** 2.32 **Created:** Thu Aug 23, 2018 08:39 AM UTC by Bogdan **Last Updated:** Wed Oct 24, 2018 06:06 PM UTC **Owner:** RBRi Im running htmlunit 2.32, all dependecies are checked. To reproduce I compare GoogleChrome console result with the HmlUnit: load for test the HTML page at: https://www.le.ac.uk/oerresources/bdra/html/page_09.htm In Google Chrome Console run: document.getElementById("toc").getBoundingClientRect() result: DOMRect {x: 1, y: 63.609375, width: 180, height: 458.609375, top: 63.609375, …} bottom:522.21875 height:458.609375 left:1 right:181 top:63.609375 width:180 x:1 y:63.609375 In HtmlUnit: webClient = new WebClient(BrowserVersion.CHROME)); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.setRefreshHandler(new RefreshHandler() { public void handleRefresh(Page page, URL url, int seconds) throws IOException { } }); webClient.getOptions().setCssEnabled(true); webClient.getOptions().setTimeout(timeout * 1000); webClient.setJavaScriptTimeout(1000); Page somepage = webClient.getPage(url); then: HtmlDivision div = (HtmlDivision) page.getElementById("toc"); ClientRect rect = ((HTMLElement) (div).getScriptableObject()).getBoundingClientRect(); rect values: bottom: 90 left: 9195 right : 10451 top: 90 getPosX and GetPosY return: x: 9195 y: 90 --- 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-24 18:07:00
|
Sorry for not beeing esponsive at the moment. There is simply not enough time; all the work on HtmlUnit is done in my spare time and i have a real job and a real family too. Even if layouting is not at the core of HtmlUnit we try to make it as accurate as possible. Will have a look at your test document later on today. --- ** [bugs:#1986] getPosX, getPosY, getBoundingClientRect return incorrect values** **Status:** pending **Group:** 2.32 **Created:** Thu Aug 23, 2018 08:39 AM UTC by Bogdan **Last Updated:** Thu Oct 18, 2018 07:36 PM UTC **Owner:** RBRi Im running htmlunit 2.32, all dependecies are checked. To reproduce I compare GoogleChrome console result with the HmlUnit: load for test the HTML page at: https://www.le.ac.uk/oerresources/bdra/html/page_09.htm In Google Chrome Console run: document.getElementById("toc").getBoundingClientRect() result: DOMRect {x: 1, y: 63.609375, width: 180, height: 458.609375, top: 63.609375, …} bottom:522.21875 height:458.609375 left:1 right:181 top:63.609375 width:180 x:1 y:63.609375 In HtmlUnit: webClient = new WebClient(BrowserVersion.CHROME)); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.setRefreshHandler(new RefreshHandler() { public void handleRefresh(Page page, URL url, int seconds) throws IOException { } }); webClient.getOptions().setCssEnabled(true); webClient.getOptions().setTimeout(timeout * 1000); webClient.setJavaScriptTimeout(1000); Page somepage = webClient.getPage(url); then: HtmlDivision div = (HtmlDivision) page.getElementById("toc"); ClientRect rect = ((HTMLElement) (div).getScriptableObject()).getBoundingClientRect(); rect values: bottom: 90 left: 9195 right : 10451 top: 90 getPosX and GetPosY return: x: 9195 y: 90 --- 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-24 18:02:53
|
Maybe yes; I need the real cause of the problem. Can you please set a JavaScriptErrorListener for your client and implement the method scriptException() in your error listener. Then debug or make sure to dump the whole throwable parameter including all cases. Background: In Rhino all the js support is implemented in Java methods, and these methods are called via reflection. In your case one of the java methods throws an error (e.g NPE) but this error is wrapped as cause along the way up to rhino. I need this cause to figure out what is going on. --- ** [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 05:58 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. |