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...> - 2019-07-11 18:44:47
|
- **status**: open --> wont-fix - **assigned_to**: RBRi --- ** [feature-requests:#261] Unable to retrieve image from HtmlImage element** **Status:** wont-fix **Group:** 2.32 **Created:** Wed Jul 10, 2019 05:23 PM UTC by raman palikala **Last Updated:** Thu Jul 11, 2019 05:06 AM UTC **Owner:** RBRi **Attachments:** - [Image_Content_As_JSON.txt](https://sourceforge.net/p/htmlunit/feature-requests/261/attachment/Image_Content_As_JSON.txt) (2.0 kB; text/plain) Hi Team, I have just started exploring HtmlUnit. I am using htmlunit v2.21. The problem is I am unable to save image from HtmlImage object. Below is my sample code : HtmlImage captchaImage = (HtmlImage) page .getByXPath("//img[@id='captchaDetailImg' and @class='bordered-desktop']") .get(0); File captchaFile = new File(newFilePathOfImage); captchaImage.saveAs(captchaFile); Here, in the above code when **captchaImage.saveAs(captchaFile);** is executed it is throwing the following error: ** java.io.IOException: No image response available (src=)** When I observed the same html page in the browser to identify the cause of the error, I noticed that it is due to the image not being transferred as a file, but the image did come as a response of type application/json. And that json content is of binary and I am not able to see the properties and their values in the json content. Please find the attached which has the response in json for the image. Could you please let me know what I have to do to construct the image from the json content OR is there any way to get the image directly or save it locally from the HtmlImage object in this scenario? Awaiting for your response. Thanks and regards, Raman Palikala. --- 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...> - 2019-07-11 18:44:07
|
Hi, first of all you are using a really really outdated version of HtmlUnit. If you like to get any support use the latest version. Second: No image response available (src=) looks like there is no src value in the img tag in the page. Maybe some javascript fill the image. If you really like more detailed support you have to add more details to give me a chance to reproduce your case. --- ** [bugs:#2020] Unable to save image locally from HtmlImage object** **Status:** open **Group:** 2.35.0 **Created:** Thu Jul 11, 2019 04:58 AM UTC by raman palikala **Last Updated:** Thu Jul 11, 2019 04:58 AM UTC **Owner:** nobody **Attachments:** - [Image_Content_As_JSON.txt](https://sourceforge.net/p/htmlunit/bugs/2020/attachment/Image_Content_As_JSON.txt) (2.0 kB; text/plain) Hi Team, I have just started exploring HtmlUnit. I am using htmlunit v2.21. The problem is I am unable to save image from HtmlImage object. Below is my sample code : HtmlImage image = (HtmlImage) page .getByXPath("//img[@id='captchaDetailImg' and @class='bordered-desktop']") .get(0); File captchaFile = new File(newFilePathOfImage); image.saveAs(captchaFile); Here, in the above code when **image.saveAs(captchaFile);** is executed it is throwing the following error: **java.io.IOException: No image response available (src=)** When I observed the same html page in the browser to identify the cause of the error, I noticed that it is due to the image in the page not being transferred as a file, but the image did come as a response of type application/json. And that json content is of binary and I am not able to see the properties and their values in the json content. Please find the attached which has the response in json for the image. Could you please let me know what I have to do to construct the image from the json content OR is there any way to get the image directly or save it locally from the HtmlImage object in this scenario? Awaiting for your response. Thanks and regards, Raman Palikala. --- 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...> - 2019-05-29 19:00:06
|
- **status**: open --> wont-fix
---
** [feature-requests:#260] Javacript taking way too long time**
**Status:** wont-fix
**Group:** 2.32
**Labels:** javascript Performance time
**Created:** Wed May 29, 2019 09:38 AM UTC by Abhishek Thakur
**Last Updated:** Wed May 29, 2019 10:17 AM UTC
**Owner:** nobody
Hi There,
I am new to HtmlUnit and I am using this library to login/geo login with postcodes to different websites. I am able to login to websites but it is taking way too long(up to 5 mins). I need to have Javascript enabled to download the forms asyncronously.
I am using below webclient configuration
WebClient webClient = new WebClient(BrowserVersion.CHROME);
WebClientOptions webClientOption = webClient.getOptions();
webClientOption.setCssEnabled(false);
webClientOption.setJavaScriptEnabled(true);
webClientOption.setUseInsecureSSL(true);
webClientOption.setTimeout(30000);
webClientOption.setThrowExceptionOnScriptError(false);
webClientOption.setThrowExceptionOnFailingStatusCode(false);
webClientOption.setUseInsecureSSL(true);
webClientOption.setActiveXNative(true);
webClientOption.setAppletEnabled(true);
webClientOption.setPopupBlockerEnabled(false);
webClientOption.setRedirectEnabled(true);
webClient.waitForBackgroundJavaScript(30000);
webClient.waitForBackgroundJavaScriptStartingBefore(10000);
webClient.setJavaScriptTimeout(30000);
webClient.getCookieManager().setCookiesEnabled(true);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
JavaScriptEngine scriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine();
HtmlUnitContextFactory factory = scriptEngine.getContextFactory();
Context context = factory.enterContext();
context.setOptimizationLevel(9);
This is happening with almost all the website I am trying to login. Any help in improving the time to run javascript will be greatly appreciated.
Regards,
Abhishek Thakur
---
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...> - 2019-05-29 18:59:32
|
Without a concret URL it is a bit tricky to analyze the problem.
But two points
1. waitForBackgroundJavaScript / waitForBackgroundJavaScriptStartingBefore are not options. You have to call these methods after every action that might trigger js (e.g. openUrl).
2. do not set the AjaxController if there is no real need.
If you can provide a real complet sample i will have a look.
---
** [bugs:#2016] JavaScript taking way too long time**
**Status:** open
**Group:** 2.35.0
**Labels:** javascript performance long time
**Created:** Wed May 29, 2019 10:15 AM UTC by Abhishek Thakur
**Last Updated:** Wed May 29, 2019 10:25 AM UTC
**Owner:** nobody
Hi There,
I am new to HtmlUnit and I am using this library to login/geo login with postcodes to different websites. I am able to login to websites but it is taking way too long(up to 5 mins). I need to have Javascript enabled to download the forms asyncronously.
I am using below webclient configuration
WebClient webClient = new WebClient(BrowserVersion.CHROME);
WebClientOptions webClientOption = webClient.getOptions();
webClientOption.setCssEnabled(false);
webClientOption.setJavaScriptEnabled(true);
webClientOption.setUseInsecureSSL(true);
webClientOption.setTimeout(30000);
webClientOption.setThrowExceptionOnScriptError(false);
webClientOption.setThrowExceptionOnFailingStatusCode(false);
webClientOption.setUseInsecureSSL(true);
webClientOption.setActiveXNative(true);
webClientOption.setAppletEnabled(true);
webClientOption.setPopupBlockerEnabled(false);
webClientOption.setRedirectEnabled(true);
webClient.waitForBackgroundJavaScript(30000);
webClient.waitForBackgroundJavaScriptStartingBefore(10000);
webClient.setJavaScriptTimeout(30000);
webClient.getCookieManager().setCookiesEnabled(true);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
JavaScriptEngine scriptEngine = (JavaScriptEngine) webClient.getJavaScriptEngine();
HtmlUnitContextFactory factory = scriptEngine.getContextFactory();
Context context = factory.enterContext();
context.setOptimizationLevel(9);
This is happening with almost all the website I am trying to login. Any help in improving the time to run javascript will be greatly appreciated.
Regards,
Abhishek Thakur
---
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...> - 2019-05-27 17:31:42
|
- **status**: accepted --> closed --- ** [bugs:#1961] Illegal reflective access in htmlunit-core-js-2.28.jar when running in Java 9 and above** **Status:** closed **Group:** 2.30 **Created:** Wed Apr 25, 2018 07:39 AM UTC by Jey **Last Updated:** Mon May 27, 2019 05:31 PM UTC **Owner:** RBRi Running java testing application running on Java 10. Warning 'Illegal reflective access' is thrown. Since Jdk 9, illegal reflective access is allowed but warning is thrown. Illegal reflective access will not be permitted in future release. See: http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012673.html Jdk 8 allows reflective access but jdk 8 end of life date is Jan 2019. Java 9 EOL is March 2018 and supported Java is now Java 10 up to Sep 2018. (See http://www.oracle.com/technetwork/java/eol-135779.html) There is no information when this Illegal reflective access is completely removed from jdk. But when it is removed htmlunit will stop working. The stack trace: WARNING: Illegal reflective access by net.sourceforge.htmlunit.corejs.javascript.NativeArray (file:/lib/htmlunit-core-js-2.28.jar) to field java.util.Arrays$LegacyMergeSort.userRequested at net.sourceforge.htmlunit.corejs.javascript.NativeArray.<clinit>(NativeArray.java:39) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initSafeStandardObjects(ScriptRuntime.java:186) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initStandardObjects(ScriptRuntime.java:284) at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1241) at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1177) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:210) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:105) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:174) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:599) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:527) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:185) at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1073) at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:146) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:195) --- 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...> - 2019-05-27 17:31:33
|
We are now using the latest Rhino code. If you still have problems with this please open a rhino issue on github. --- ** [bugs:#1961] Illegal reflective access in htmlunit-core-js-2.28.jar when running in Java 9 and above** **Status:** accepted **Group:** 2.30 **Created:** Wed Apr 25, 2018 07:39 AM UTC by Jey **Last Updated:** Mon May 14, 2018 08:44 AM UTC **Owner:** RBRi Running java testing application running on Java 10. Warning 'Illegal reflective access' is thrown. Since Jdk 9, illegal reflective access is allowed but warning is thrown. Illegal reflective access will not be permitted in future release. See: http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-May/012673.html Jdk 8 allows reflective access but jdk 8 end of life date is Jan 2019. Java 9 EOL is March 2018 and supported Java is now Java 10 up to Sep 2018. (See http://www.oracle.com/technetwork/java/eol-135779.html) There is no information when this Illegal reflective access is completely removed from jdk. But when it is removed htmlunit will stop working. The stack trace: WARNING: Illegal reflective access by net.sourceforge.htmlunit.corejs.javascript.NativeArray (file:/lib/htmlunit-core-js-2.28.jar) to field java.util.Arrays$LegacyMergeSort.userRequested at net.sourceforge.htmlunit.corejs.javascript.NativeArray.<clinit>(NativeArray.java:39) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initSafeStandardObjects(ScriptRuntime.java:186) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.initStandardObjects(ScriptRuntime.java:284) at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1241) at net.sourceforge.htmlunit.corejs.javascript.Context.initStandardObjects(Context.java:1177) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.init(JavaScriptEngine.java:210) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$000(JavaScriptEngine.java:105) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$1.run(JavaScriptEngine.java:174) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:599) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:527) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.initialize(JavaScriptEngine.java:185) at com.gargoylesoftware.htmlunit.WebClient.initialize(WebClient.java:1073) at com.gargoylesoftware.htmlunit.WebWindowImpl.setEnclosedPage(WebWindowImpl.java:146) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:217) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:195) --- 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...> - 2019-05-09 19:14:11
|
The exception is now fixed. Will provide a new snapshot. But it looks like the login does still not work. --- ** [bugs:#1953] "SEVERE" Error when loading twitter homepage** **Status:** accepted **Group:** 2.29 **Created:** Sun Feb 25, 2018 02:42 AM UTC by arya **Last Updated:** Sat Jun 30, 2018 12:47 PM UTC **Owner:** RBRi There is an error which prevents any interactions to the page. Here is the relavant code for logging into twitter.com ~~~ try { WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED); webClient.getOptions().setThrowExceptionOnScriptError(false); HtmlPage page = webClient.getPage("http://twitter.com"); ((HtmlElement) page.getFirstByXPath("//input[@name='session[username_or_email]']")) .type("myusername"); ((HtmlElement) page.getFirstByXPath("//input[@name='session[password]']")).type("mypass"); HtmlPage loggedinPage = ((DomElement) page.getFirstByXPath("//input[@value='Log in']")).click(); System.out.println("Clicked login!"); String pageAsXml = loggedinPage.asXml(); System.out.println(pageAsXml); } catch (Exception e) { e.printStackTrace(); } ~~~ ~~~ SEVERE: runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[https://abs.twimg.com/k/en/init.en.be4b65b57fb553170565.js] line=[12] lineSource=[null] lineOffset=[0] Feb 24, 2018 9:36:21 PM com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl runSingleJob SEVERE: Job run failed with unexpected RuntimeException: null java.lang.IllegalStateException at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.getTopCallScope(ScriptRuntime.java:3394) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.call(BoundFunction.java:52) at com.gargoylesoftware.htmlunit.javascript.host.Promise$3.run(Promise.java:380) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:155) at java.lang.Thread.run(Thread.java:748) ~~~ --- 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...> - 2019-05-04 17:32:35
|
Nice catch, great description and reproducible. I like this kind of error reports.
Should be fixed now in Git, will inform via twitter if a new snapshot build is available. I guess this will be tomorrow.
Thanks for the report (pull request are also welcome ;-) enjoy testing with HtmlUnit
---
** [bugs:#2015] Improperly sent Origin header upon Javascript-triggered reload**
**Status:** accepted
**Group:** 2.35.0
**Created:** Fri Apr 26, 2019 09:37 PM UTC by Luke Powell
**Last Updated:** Sat May 04, 2019 04:19 PM UTC
**Owner:** RBRi
I have a page that polls via an AJAX listener to know when a task is done and then refreshes the page after a brief delay, as the following:
~~~
// If the status is no longer creating, then we are "done" and should refresh the page
if( data.dvSaveSet.statusInt != DVSaveSet.STATUS_CREATING )
{
// Set the status text
$("#dvSaveSet-status").html(data.dvSaveSet.statusString);
// Make the progress bar "done"
$("#dvSaveSet-progressBar").val("100");
$("#dvSaveSet-progressText").html("100%");
// Reload page after 0.5 seconds
window.setTimeout(function(){ window.location.reload(); }, 500);
}
~~~
When the reload is perfomed, HTMLUnit is sending a request for the page update, but it also includes this header:
~~~
Origin: https://[mydomain]/[pathtoriginalpage]
~~~
There are two problems with this. First, this is not properly formatted as the Origin header should only contain the domain name and possibly the port, as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Secondly, since the domain that is referring this request is obviously the same since it is exactly the same page, there is no need for an Origin header at all and if I examine the contents of the headers sent by an actual browser, there is no Origin header sent.
The presence of this improperly formatted Origin header is causing the server to refuse the connection asking for a refresh, and thus causing the test to fail.
---
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...> - 2019-05-04 17:27:44
|
- **status**: accepted --> closed
---
** [bugs:#2015] Improperly sent Origin header upon Javascript-triggered reload**
**Status:** closed
**Group:** 2.35.0
**Created:** Fri Apr 26, 2019 09:37 PM UTC by Luke Powell
**Last Updated:** Sat May 04, 2019 05:22 PM UTC
**Owner:** RBRi
I have a page that polls via an AJAX listener to know when a task is done and then refreshes the page after a brief delay, as the following:
~~~
// If the status is no longer creating, then we are "done" and should refresh the page
if( data.dvSaveSet.statusInt != DVSaveSet.STATUS_CREATING )
{
// Set the status text
$("#dvSaveSet-status").html(data.dvSaveSet.statusString);
// Make the progress bar "done"
$("#dvSaveSet-progressBar").val("100");
$("#dvSaveSet-progressText").html("100%");
// Reload page after 0.5 seconds
window.setTimeout(function(){ window.location.reload(); }, 500);
}
~~~
When the reload is perfomed, HTMLUnit is sending a request for the page update, but it also includes this header:
~~~
Origin: https://[mydomain]/[pathtoriginalpage]
~~~
There are two problems with this. First, this is not properly formatted as the Origin header should only contain the domain name and possibly the port, as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Secondly, since the domain that is referring this request is obviously the same since it is exactly the same page, there is no need for an Origin header at all and if I examine the contents of the headers sent by an actual browser, there is no Origin header sent.
The presence of this improperly formatted Origin header is causing the server to refuse the connection asking for a refresh, and thus causing the test to fail.
---
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...> - 2019-05-04 16:29:37
|
- **status**: open --> accepted
- **assigned_to**: RBRi
---
** [bugs:#2015] Improperly sent Origin header upon Javascript-triggered reload**
**Status:** accepted
**Group:** 2.35.0
**Created:** Fri Apr 26, 2019 09:37 PM UTC by Luke Powell
**Last Updated:** Fri Apr 26, 2019 09:37 PM UTC
**Owner:** RBRi
I have a page that polls via an AJAX listener to know when a task is done and then refreshes the page after a brief delay, as the following:
~~~
// If the status is no longer creating, then we are "done" and should refresh the page
if( data.dvSaveSet.statusInt != DVSaveSet.STATUS_CREATING )
{
// Set the status text
$("#dvSaveSet-status").html(data.dvSaveSet.statusString);
// Make the progress bar "done"
$("#dvSaveSet-progressBar").val("100");
$("#dvSaveSet-progressText").html("100%");
// Reload page after 0.5 seconds
window.setTimeout(function(){ window.location.reload(); }, 500);
}
~~~
When the reload is perfomed, HTMLUnit is sending a request for the page update, but it also includes this header:
~~~
Origin: https://[mydomain]/[pathtoriginalpage]
~~~
There are two problems with this. First, this is not properly formatted as the Origin header should only contain the domain name and possibly the port, as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin. Secondly, since the domain that is referring this request is obviously the same since it is exactly the same page, there is no need for an Origin header at all and if I examine the contents of the headers sent by an actual browser, there is no Origin header sent.
The presence of this improperly formatted Origin header is causing the server to refuse the connection asking for a refresh, and thus causing the test to fail.
---
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...> - 2019-04-25 16:18:36
|
test was moved to XMLHttpRequest2Test.readPropertyFromPrototypeShouldThrow() --- ** [bugs:#1799] HtmlAnchor click() and getPage() not working** **Status:** accepted **Group:** 2.22 **Created:** Sun Jun 12, 2016 07:50 PM UTC by Timothy Nessus **Last Updated:** Mon Jun 13, 2016 04:28 PM UTC **Owner:** nobody I'm trying to analyze a website (shop.lego.com), but when using either click or getPage on the anchor (corresponding to the text "View All") the HtmlPage produced is the same as the original page. I believe the problem has to do with a HtmlUnit running a javascript on the page (javascript is enabled on the webclient). The specific webpage is http://shop.lego.com/en-CA/Sales-And-Deals. I create a webClient with the following settings: ~~~ WebClient webClient = new WebClient(BrowserVersion.FIREFOX_38); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setJavaScriptEnabled(true); webClient.getOptions().setActiveXNative(true); webClient.getOptions().setAppletEnabled(true); webClient.getOptions().setActiveXNative(true); webClient.getOptions().setCssEnabled(true); webClient.getOptions().setDoNotTrackEnabled(false); webClient.getOptions().setGeolocationEnabled(true); webClient.getOptions().setPopupBlockerEnabled(false); webClient.getOptions().setPrintContentOnFailingStatusCode(true); webClient.getOptions().setRedirectEnabled(true); webClient.getCache().clear(); webClient.getCache().setMaxSize(0); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); webClient.getCookieManager().setCookiesEnabled(true); ~~~ Then I open the page (I put loop in place to ensure that the page returned is an Html page), and retrieve the anchor. ~~~ final URL url = new URL("http://shop.lego.com/en-CA/Sales-And-Deals"); int count = 0; Page pageOri = webClient.getPage(url); while (count < 5 && !(pageOri instanceof HtmlPage)) { pageOri = webClient.getPage(url); count++; System.out.println("Read Attempt #" + count + " failed."); } final HtmlPage page = (HtmlPage) pageOri; HtmlAnchor choosen = page.getAnchorByText("View All"); ~~~ Then I click on the anchor and print the text representation, but the text representation is the same as the original. ~~~ HtmlPage allResults = (HtmlPage) choosen.getPage(); System.out.println(allResults.asText()); ~~~ --- 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...> - 2019-04-24 18:33:09
|
- **status**: open --> wont-fix --- ** [feature-requests:#220] Want to read flash contents** **Status:** wont-fix **Group:** Latest SVN **Labels:** Flash **Created:** Tue Jul 29, 2014 07:00 AM UTC by RDD **Last Updated:** Wed Apr 24, 2019 06:32 PM UTC **Owner:** nobody I wold like to get the flash contents (want to make htmlunit as flash enabled broser). Currently *<object>* are read inside an anchor tag, inside that an <image> tag. Couldn't get this [patch] [http://sourceforge.net/p/htmlunit/bugs/735/) to test to work with. --- 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...> - 2019-04-24 18:32:57
|
Flash is gone.... there will be no support here sorry --- ** [feature-requests:#220] Want to read flash contents** **Status:** open **Group:** Latest SVN **Labels:** Flash **Created:** Tue Jul 29, 2014 07:00 AM UTC by RDD **Last Updated:** Tue Jul 29, 2014 07:00 AM UTC **Owner:** nobody I wold like to get the flash contents (want to make htmlunit as flash enabled broser). Currently *<object>* are read inside an anchor tag, inside that an <image> tag. Couldn't get this [patch] [http://sourceforge.net/p/htmlunit/bugs/735/) to test to work with. --- 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...> - 2019-04-24 18:20:40
|
- **status**: pending --> closed - **Comment**: 2.35.0 includes reworked logging and updated documentation. Thi is fixed from my point of view. --- ** [feature-requests:#254] Disable HtmlUnit logging** **Status:** closed **Group:** 2.19 **Created:** Thu Jun 14, 2018 04:35 AM UTC by Ganesh Prakash Barshile **Last Updated:** Tue Jul 24, 2018 04:33 PM UTC **Owner:** RBRi **Attachments:** - [Logger.png](https://sourceforge.net/p/htmlunit/feature-requests/254/attachment/Logger.png) (132.4 kB; image/png) We want to disable all logs of htmlunit unit. We tried it using log4j & commons logging but unable to do it. We tried following code:- Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(Level.OFF); Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.ActiveXObject").setLevel(Level.OFF);Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.html.HtmlScript").setLevel(Level.OFF); Logger.getLogger("com.gargoylesoftware.htmlunit.javascript.host.WindowProxy").setLevel(Level.OFF); Logger.getLogger("org.apache").setLevel(Level.OFF); Logger.getRootLogger().setLevel(Level.OFF); is there any solution to disable all logs from htmlunit? --- 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...> - 2019-04-24 18:19:23
|
- **status**: pending --> closed - **Comment**: No feedback, time to close --- ** [feature-requests:#252] string to html? how?** **Status:** closed **Group:** 2.29 **Created:** Mon May 14, 2018 12:15 PM UTC by liang1990 **Last Updated:** Fri May 18, 2018 10:34 AM UTC **Owner:** RBRi like org.jsoup.Jsoup.parse(String) --- 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...> - 2019-04-24 18:02:26
|
- **status**: open --> closed --- ** [bugs:#1801] Some async requests never starts for 2.22** **Status:** closed **Group:** 2.22 **Labels:** ajax async AjaxController **Created:** Wed Jun 15, 2016 08:49 PM UTC by moises franco **Last Updated:** Wed Apr 24, 2019 05:46 PM UTC **Owner:** nobody I recently updated from 2.20 to to 2.22 and I found that some ayax request are never trigered. In [this page](http://www.tinydeal.com/lenovo-k3-note-k50-t3s-55-fhd-2gb-ram-16gb-rom-mtk6752-4g-phone-p-158573.html?ship_to=ES) as you can see, there is an async request that changes the item price for some countries after some millis. In version 2.20 using an `AjaxController`, these request is perfectly triggered but in version 2.22 there is no event. I try `thread.sleep, page.wait, webClient.waitForBackgroundJavaScriptStartingBefore, webClient.waitForBackgroundJavaScript` but the event is never triggered. Is this a bug for these version? --- 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...> - 2019-04-24 18:02:25
|
Will clse this becaus it is too old and we got no details. --- ** [bugs:#1801] Some async requests never starts for 2.22** **Status:** open **Group:** 2.22 **Labels:** ajax async AjaxController **Created:** Wed Jun 15, 2016 08:49 PM UTC by moises franco **Last Updated:** Wed Jun 22, 2016 08:55 AM UTC **Owner:** nobody I recently updated from 2.20 to to 2.22 and I found that some ayax request are never trigered. In [this page](http://www.tinydeal.com/lenovo-k3-note-k50-t3s-55-fhd-2gb-ram-16gb-rom-mtk6752-4g-phone-p-158573.html?ship_to=ES) as you can see, there is an async request that changes the item price for some countries after some millis. In version 2.20 using an `AjaxController`, these request is perfectly triggered but in version 2.22 there is no event. I try `thread.sleep, page.wait, webClient.waitForBackgroundJavaScriptStartingBefore, webClient.waitForBackgroundJavaScript` but the event is never triggered. Is this a bug for these version? --- 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...> - 2019-04-24 17:41:45
|
sorry but it looks like there is no java support for this (https://bugs.openjdk.java.net/browse/JDK-8028776) --- ** [bugs:#1419] Please add remote dns lookup support in socks5 proxy** **Status:** open **Group:** **Created:** Tue Jul 17, 2012 10:50 AM UTC by Liang **Last Updated:** Sun Oct 21, 2012 05:34 AM UTC **Owner:** nobody I'm not familiar with Java, not sure whether Java itself has supported this. Anyway, Firefox, Chrome and Safari all support it. --- 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...> - 2019-04-24 17:37:14
|
- **status**: open --> closed
- **assigned_to**: RBRi
---
** [bugs:#1987] Error load javascript and page not work**
**Status:** closed
**Group:** 2.32
**Created:** Thu Aug 30, 2018 09:21 PM UTC by Paulo Roberto
**Last Updated:** Wed Apr 24, 2019 05:36 PM UTC
**Owner:** RBRi
Hi
The code
~~~
try {
HtmlPage page webClient.getPage('https://www.easynvest.com.br/autenticacao');
} catch (Exception e1) {
e1.printStackTrace();
}
~~~
Cause error: Error loading JavaScript from [https://www.googletagmanager.com/gtag/js?id=UA-53783619-9]
The page not work by complete.
The div tag <div id="app"></div> is empty in the htmlunit for all browers.
~~~
ago 30, 2018 6:02:44 PM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener loadScriptError
GRAVE: Error loading JavaScript from [https://www.googletagmanager.com/gtag/js?id=UA-53783619-9].
java.io.IOException: Unable to download JavaScript from 'https://www.googletagmanager.com/gtag/js?id=UA-53783619-9' (status 503).
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1040)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:975)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371)
at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246)
at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:298)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:539)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:399)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:316)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:467)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:449)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:51)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
ago 30, 2018 6:02:44 PM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener loadScriptError
GRAVE: Error loading JavaScript from [https://www.googletagmanager.com/gtm.js?id=GTM-TBMCLG9].
java.io.IOException: Unable to download JavaScript from 'https://www.googletagmanager.com/gtm.js?id=GTM-TBMCLG9' (status 503).
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1040)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:975)
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)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$200(JavaScriptEngine.java:104)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:887)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:532)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:739)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:919)
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:1236)
at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136)
at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226)
at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java: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:532)
at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2246)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:923)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:1024)
at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:965)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:895)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:876)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:857)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:53)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
ago 30, 2018 6:02:45 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
ADVERTÊNCIA: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'https://static.site24x7rum.com/beacon/site24x7rum-min.js?appKey=62eda9ca40f6a136a221ef01d0170ebd', but got ''.
ago 30, 2018 6:02:50 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
GRAVE: runtimeError: message=[Property 0 not found.] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] line=[1] lineSource=[null] lineOffset=[0]
ago 30, 2018 6:02:50 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
GRAVE: runtimeError: message=[Property 0 not found.] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] line=[1] lineSource=[null] lineOffset=[0]
ago 30, 2018 6:02:51 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
GRAVE: runtimeError: message=[Property 0 not found.] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] line=[1] lineSource=[null] lineOffset=[0]
ago 30, 2018 6:02:51 PM com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine handleJavaScriptException
INFORMAÇÕES: Caught script exception
======= EXCEPTION START ========
EcmaError: lineNumber=[1] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] message=[TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js#1)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.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:532)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:104)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:992)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371)
at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246)
at com.gargoylesoftware.htmlunit.html.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:1236)
at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136)
at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226)
at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java: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:532)
at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2246)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:923)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:1024)
at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:965)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:895)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:876)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:857)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:53)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js#1)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4276)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4254)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4287)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:4299)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$Slot.setValue(ScriptableObject.java:183)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2865)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:531)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2543)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1742)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1442)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1002)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:422)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3570)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:122)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:763)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877)
... 39 more
Enclosed exception:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js#1)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4276)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4254)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4287)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:4299)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$Slot.setValue(ScriptableObject.java:183)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2865)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:531)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2543)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1742)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1442)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.n(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1002)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:422)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3570)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:122)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:763)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:532)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:104)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:992)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371)
at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246)
at com.gargoylesoftware.htmlunit.html.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:1236)
at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136)
at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226)
at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java: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:532)
at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2246)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:923)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:1024)
at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:965)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:895)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:876)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:857)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:53)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
======= EXCEPTION END ========
~~~
---
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...> - 2019-04-24 17:37:01
|
Hi Paulo,
found some time to reproduce your problem.
This code works without any problem here:
String uri = "https://www.easynvest.com.br/autenticacao";
try (final WebClient webClient = new WebClient(BrowserVersion.FIREFOX_60)) {
webClient.getOptions().setUseInsecureSSL(true);
HtmlPage page = webClient.getPage(uri);
webClient.waitForBackgroundJavaScript(5000);
System.out.println("----------------");
System.out.println(page.asText());
}
Might be that the reason is fixed in HtmlUnit or the page has changed.
> Unable to download JavaScript from 'https://www.googletagmanager.com/gtag/js?id=UA-53783619-9' (status 503)
means, the server is not able to respond to your request.
Please open a new issue on github if you still have this problem.
---
** [bugs:#1987] Error load javascript and page not work**
**Status:** open
**Group:** 2.32
**Created:** Thu Aug 30, 2018 09:21 PM UTC by Paulo Roberto
**Last Updated:** Mon Sep 03, 2018 07:24 PM UTC
**Owner:** nobody
Hi
The code
~~~
try {
HtmlPage page webClient.getPage('https://www.easynvest.com.br/autenticacao');
} catch (Exception e1) {
e1.printStackTrace();
}
~~~
Cause error: Error loading JavaScript from [https://www.googletagmanager.com/gtag/js?id=UA-53783619-9]
The page not work by complete.
The div tag <div id="app"></div> is empty in the htmlunit for all browers.
~~~
ago 30, 2018 6:02:44 PM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener loadScriptError
GRAVE: Error loading JavaScript from [https://www.googletagmanager.com/gtag/js?id=UA-53783619-9].
java.io.IOException: Unable to download JavaScript from 'https://www.googletagmanager.com/gtag/js?id=UA-53783619-9' (status 503).
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1040)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:975)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371)
at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246)
at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:298)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:539)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:399)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:316)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:467)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:449)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:51)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
ago 30, 2018 6:02:44 PM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener loadScriptError
GRAVE: Error loading JavaScript from [https://www.googletagmanager.com/gtm.js?id=GTM-TBMCLG9].
java.io.IOException: Unable to download JavaScript from 'https://www.googletagmanager.com/gtm.js?id=GTM-TBMCLG9' (status 503).
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1040)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:975)
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)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.access$200(JavaScriptEngine.java:104)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:887)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:532)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:739)
at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript(HtmlPage.java:919)
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:1236)
at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136)
at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226)
at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java: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:532)
at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2246)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:923)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:1024)
at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:965)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:895)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:876)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:857)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:53)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
ago 30, 2018 6:02:45 PM com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
ADVERTÊNCIA: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'https://static.site24x7rum.com/beacon/site24x7rum-min.js?appKey=62eda9ca40f6a136a221ef01d0170ebd', but got ''.
ago 30, 2018 6:02:50 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
GRAVE: runtimeError: message=[Property 0 not found.] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] line=[1] lineSource=[null] lineOffset=[0]
ago 30, 2018 6:02:50 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
GRAVE: runtimeError: message=[Property 0 not found.] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] line=[1] lineSource=[null] lineOffset=[0]
ago 30, 2018 6:02:51 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
GRAVE: runtimeError: message=[Property 0 not found.] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] line=[1] lineSource=[null] lineOffset=[0]
ago 30, 2018 6:02:51 PM com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine handleJavaScriptException
INFORMAÇÕES: Caught script exception
======= EXCEPTION START ========
EcmaError: lineNumber=[1] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js] message=[TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js#1)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.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:532)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:104)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:992)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371)
at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246)
at com.gargoylesoftware.htmlunit.html.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:1236)
at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136)
at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226)
at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java: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:532)
at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2246)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:923)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:1024)
at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:965)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:895)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:876)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:857)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:53)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
Caused by: net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js#1)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4276)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4254)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4287)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:4299)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$Slot.setValue(ScriptableObject.java:183)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2865)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:531)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2543)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1742)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1442)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1002)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:422)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3570)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:122)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:763)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877)
... 39 more
Enclosed exception:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: TypeError: Cannot modify readonly property: constructor. (https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js#1)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4276)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:4254)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError(ScriptRuntime.java:4287)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:4299)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$Slot.setValue(ScriptableObject.java:183)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2865)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:531)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151)
at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2543)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1742)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1442)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.n(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script.a(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at script(https://www.easynvest.com.br/autenticacao/static/js/main.eaa241a7.js:1)
at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1002)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:422)
at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330)
at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3570)
at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:122)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$2.doRun(JavaScriptEngine.java:763)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:532)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:772)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:748)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:104)
at com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:992)
at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:371)
at com.gargoylesoftware.htmlunit.html.HtmlScript$2.execute(HtmlScript.java:246)
at com.gargoylesoftware.htmlunit.html.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:1236)
at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1136)
at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:226)
at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:345)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3189)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2141)
at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:945)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:521)
at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:472)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java: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:532)
at com.gargoylesoftware.htmlunit.WebClient.loadDownloadedResponses(WebClient.java:2246)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.doProcessPostponedActions(JavaScriptEngine.java:923)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.processPostponedActions(JavaScriptEngine.java:1013)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:1024)
at com.gargoylesoftware.htmlunit.html.HtmlAnchor.click(HtmlAnchor.java:85)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:965)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:895)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:876)
at com.gargoylesoftware.htmlunit.html.DomElement.click(DomElement.java:857)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.calcularMelhorInvestimento(LeituraEasynvestMB.java:53)
at br.com.bolin.presentation.mb.LeituraEasynvestMB.main(LeituraEasynvestMB.java:42)
======= EXCEPTION END ========
~~~
---
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...> - 2019-04-10 17:44:24
|
- **status**: open --> closed
- **assigned_to**: RBRi
- **Comment**:
Sorry, this is no longer reproducible.
---
** [bugs:#1796] HTMLUnit lookup returns request unsuccessful with JS off**
**Status:** closed
**Group:** 2.22
**Created:** Sun Jun 05, 2016 07:00 PM UTC by Manny Gites
**Last Updated:** Mon Jun 06, 2016 09:25 PM UTC
**Owner:** RBRi
If I run the following code (see that JS enabled is true), the page usually loads. However, if I turn off JS enabled, the lookup fails. Note that I decided to turn off JS in my code b/c I'm writing a crawler and there are lots of sites that I run into that cause HTMLUnit to stall. I just need the page source for my crawler to index.
public static void main(String[] args) throws Exception {
java.util.logging.Logger.getLogger("com.gargoylesoftware").setLevel(java.util.logging.Level.OFF);
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED);
webClient.getOptions().setJavaScriptEnabled(true); /*test fails if false*/
webClient.getOptions().setRedirectEnabled(true);
webClient.getOptions().setCssEnabled(true);
webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);
webClient.getOptions().setThrowExceptionOnScriptError(false);
webClient.getOptions().setUseInsecureSSL(true);
webClient.getOptions().setHistorySizeLimit(1);
webClient.getOptions().setPopupBlockerEnabled(true);
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
webClient.setJavaScriptTimeout(2147483647);
webClient.setCssErrorHandler(new SilentCssErrorHandler());
webClient.setRefreshHandler(new ThreadedRefreshHandler());
webClient.getCookieManager().setCookiesEnabled(true);
HtmlPage pg = webClient.getPage("http://www.justbatreviews.com");
System.out.println(pg.asText());
webClient.close();
webClient.getCookieManager().clearCookies();
}
---
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...> - 2019-04-10 17:37:34
|
- **status**: open --> closed --- ** [bugs:#1688] Infinite Loop in DomNode.insertBefore** **Status:** closed **Group:** Latest SVN **Created:** Fri May 22, 2015 08:04 PM UTC by William Walker **Last Updated:** Wed Apr 10, 2019 05:37 PM UTC **Owner:** nobody Have had HtmlUnit hang up on me executing some web pages. Below is an example url. https://www.tablespoon.com/profile/RailNewsletterCTA?parentUrl=%252frecipes%252fcookie-stuffed-brownie-cupcakes%252f3d4d01f7-72cc-434a-ac13-f2f19c3379aa%252f%253fnicam2%253dEmail%2526nichn2%253dCore%2526niseg2%253dTBSP%2526nicreatID2%253dTBSP_05_10_2015%2526utm_source%253dEmail_newsletter%2526utm_medium%253demail%2526utm_campaign%253dTBSP_05_10_2015&disablePageView=1 After tracing into code the problem occurs when insertBefore is called and (newChild instanceof DomDocumentFragment)==true AND fragment.getChildren is not empty. In my case, the insertBefore is occuring on the same node list that it is iterating against so the iteration goes on forever. DomNode.java ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969: public Node insertBefore(final Node newChild, final Node refChild) { if (newChild instanceof DomDocumentFragment) { final DomDocumentFragment fragment = (DomDocumentFragment) newChild; for (final DomNode child : fragment.getChildren()) { insertBefore(child, refChild); } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 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...> - 2019-04-10 17:37:14
|
Sorry no feedback since years, will close this. --- ** [bugs:#1688] Infinite Loop in DomNode.insertBefore** **Status:** open **Group:** Latest SVN **Created:** Fri May 22, 2015 08:04 PM UTC by William Walker **Last Updated:** Mon Oct 10, 2016 02:07 PM UTC **Owner:** nobody Have had HtmlUnit hang up on me executing some web pages. Below is an example url. https://www.tablespoon.com/profile/RailNewsletterCTA?parentUrl=%252frecipes%252fcookie-stuffed-brownie-cupcakes%252f3d4d01f7-72cc-434a-ac13-f2f19c3379aa%252f%253fnicam2%253dEmail%2526nichn2%253dCore%2526niseg2%253dTBSP%2526nicreatID2%253dTBSP_05_10_2015%2526utm_source%253dEmail_newsletter%2526utm_medium%253demail%2526utm_campaign%253dTBSP_05_10_2015&disablePageView=1 After tracing into code the problem occurs when insertBefore is called and (newChild instanceof DomDocumentFragment)==true AND fragment.getChildren is not empty. In my case, the insertBefore is occuring on the same node list that it is iterating against so the iteration goes on forever. DomNode.java ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969: public Node insertBefore(final Node newChild, final Node refChild) { if (newChild instanceof DomDocumentFragment) { final DomDocumentFragment fragment = (DomDocumentFragment) newChild; for (final DomNode child : fragment.getChildren()) { insertBefore(child, refChild); } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 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...> - 2019-04-07 14:50:52
|
Have you tried the latest snapshot?
---
** [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 10, 2018 07:40 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...> - 2019-03-30 17:45:52
|
- **status**: open --> closed
- **assigned_to**: RBRi
---
** [bugs:#2013] xpath returning more content than belongs in HtmlDivision**
**Status:** closed
**Group:** 2.34.1
**Created:** Sat Mar 30, 2019 05:21 PM UTC by arya
**Last Updated:** Sat Mar 30, 2019 05:45 PM UTC
**Owner:** RBRi
I'm getting unussual results
I have the following HTMLUnit script which is supposed to extract the zipcode hrefs.
~~~
WebClient webClient = new WebClient();
webClient.getOptions().setJavaScriptEnabled(false);
HtmlPage countyPage = webClient.getPage("https://www.realtor.com/propertyrecord-search/Autauga-County_AL");
HtmlDivision zipCodesDiv = (HtmlDivision) countyPage
.getByXPath("//h3[contains(., \"Zip Codes\")]/following::div[1]").get(0);
System.out.println(zipCodesDiv.asXml());
List<HtmlAnchor> zipcodeLinks = zipCodesDiv.getByXPath("//li/a[contains(@href,'propertyrecord-search/')]");
System.out.println("Zipcode link size: " + zipcodeLinks.size());
for (int zipcodeCount = 0; zipcodeCount < zipcodeLinks.size(); zipcodeCount++) {
System.out.println(zipcodeLinks.get(zipcodeCount));
}
~~~
zipCodesDiv contains the div that contains the zipcodes, however
zipCodesDiv.getByXPath("//li/a[contains(@href,'propertyrecord-search/')]");
is returning more content than it belongs in zipCodesDiv, it's also returning cities in Autauga County. Why is this happening? Is this a bug?
---
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. |