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-02-24 09:54:39
|
- Description has changed: Diff: ~~~~ --- old +++ new @@ -1,10 +1,10 @@ -Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: +Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: -`(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` +`(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. ~~~~ --- ** [bugs:#2012] Javascript in CDATA block causes EvaluatorException: illegally formed XML syntax** **Status:** open **Group:** 2.33 **Created:** Mon Feb 11, 2019 01:16 AM UTC by Ron HD **Last Updated:** Mon Feb 11, 2019 02:47 PM UTC **Owner:** nobody Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. Tracing through the code, I can see that the TokenStream.getNextXMLToken() method successfully scans over the CDATA block, but then rather than processing the contents of the block, it just does: `parser.addError("msg.XML.bad.form");` I'm not sure why it does this, or the right way to fix it. With a little guidance, I may be able to provide a fix. Or if someone can give me one, it would be great. Otherwise, I'm being forced to use Selenium with Firefox, which is introducing other problems. --- 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-02-21 19:38:04
|
- **status**: pending --> closed --- ** [bugs:#1999] getNewPage missing from ScriptResult** **Status:** closed **Group:** 2.33 **Created:** Thu Nov 08, 2018 07:36 PM UTC by oded mass **Last Updated:** Fri Nov 30, 2018 06:08 PM UTC **Owner:** RBRi ScriptResult had a method getNewPage() in 2.33 it does not. What is the alternative in 2.33 for somthing like: Page newPage = page.executeJavaScript("some script").getNewPage(); --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-02-21 19:08:54
|
- **status**: open --> closed - **assigned_to**: RBRi - **Comment**: Many thanks for this bug report. --- ** [bugs:#2011] unnecessary unescape "&int" to "∫"** **Status:** closed **Group:** 2.33 **Created:** Wed Feb 06, 2019 11:08 AM UTC by Atsushi Yoshikawa **Last Updated:** Thu Feb 21, 2019 07:06 PM UTC **Owner:** RBRi When output Link url contains "&int" in HTML, unnecessary unescape to "∫". Please fix or teach way to avoid unescape. --- 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-02-21 19:06:59
|
fixed (in neko), will make a new snapshot build available soon --- ** [bugs:#2011] unnecessary unescape "&int" to "∫"** **Status:** open **Group:** 2.33 **Created:** Wed Feb 06, 2019 11:08 AM UTC by Atsushi Yoshikawa **Last Updated:** Fri Feb 08, 2019 07:19 PM UTC **Owner:** nobody When output Link url contains "&int" in HTML, unnecessary unescape to "∫". Please fix or teach way to avoid unescape. --- 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: Ron H. <ro...@us...> - 2019-02-11 14:47:30
|
BTW, I don't know why SourceForge trashed the formatting. I didn't enter the text all globbed together like that. But there doesn't seem to be a way to edit it. --- ** [bugs:#2012] Javascript in CDATA block causes EvaluatorException: illegally formed XML syntax** **Status:** open **Group:** 2.33 **Created:** Mon Feb 11, 2019 01:16 AM UTC by Ron HD **Last Updated:** Mon Feb 11, 2019 01:16 AM UTC **Owner:** nobody Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. Tracing through the code, I can see that the TokenStream.getNextXMLToken() method successfully scans over the CDATA block, but then rather than processing the contents of the block, it just does: `parser.addError("msg.XML.bad.form");` I'm not sure why it does this, or the right way to fix it. With a little guidance, I may be able to provide a fix. Or if someone can give me one, it would be great. Otherwise, I'm being forced to use Selenium with Firefox, which is introducing other problems. --- 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: Ron H. <ro...@us...> - 2019-02-11 01:16:01
|
--- ** [bugs:#2012] Javascript in CDATA block causes EvaluatorException: illegally formed XML syntax** **Status:** open **Group:** 2.33 **Created:** Mon Feb 11, 2019 01:16 AM UTC by Ron HD **Last Updated:** Mon Feb 11, 2019 01:16 AM UTC **Owner:** nobody Javascript code wrapped in an XML CDATA block within a <script> tag on a web page causes HtmlUnit to throw the following exception: > net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: illegally formed XML syntax This can be replicated with the following Java code: `(new net.sourceforge.htmlunit.corejs.javascript.Parser()).parse("<![CDATA[obj1.obj2.func1();]]>", "", 1);` This occurs on web pages that use Oracle ADF (I believe this is the same problem reported in Bug #1991). These web pages are accepted by Firefox and other major browsers. Tracing through the code, I can see that the TokenStream.getNextXMLToken() method successfully scans over the CDATA block, but then rather than processing the contents of the block, it just does: `parser.addError("msg.XML.bad.form");` I'm not sure why it does this, or the right way to fix it. With a little guidance, I may be able to provide a fix. Or if someone can give me one, it would be great. Otherwise, I'm being forced to use Selenium with Firefox, which is introducing other problems. --- 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-02-08 19:19:52
|
seems to be a bug in neko - the parser interprests &int as entity reference --- ** [bugs:#2011] unnecessary unescape "&int" to "∫"** **Status:** open **Group:** 2.33 **Created:** Wed Feb 06, 2019 11:08 AM UTC by Atsushi Yoshikawa **Last Updated:** Fri Feb 08, 2019 02:03 AM UTC **Owner:** nobody When output Link url contains "&int" in HTML, unnecessary unescape to "∫". Please fix or teach way to avoid unescape. --- 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-02-07 20:00:34
|
Can you please provide a sample - i'm not sure i got your point. --- ** [bugs:#2011] unnecessary unescape "&int" to "∫"** **Status:** open **Group:** 2.33 **Created:** Wed Feb 06, 2019 11:08 AM UTC by Atsushi Yoshikawa **Last Updated:** Wed Feb 06, 2019 11:08 AM UTC **Owner:** nobody When output Link url contains "&int" in HTML, unnecessary unescape to "∫". Please fix or teach way to avoid unescape. --- 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-02-07 19:55:32
|
- **status**: open --> closed - **assigned_to**: RBRi - **Comment**: Thanks for the report. Will be fixed with the next snapshot build. Have a look at twitter to check for news. --- ** [bugs:#2010] DomNode has not been set for Audio** **Status:** closed **Group:** 2.33 **Created:** Tue Feb 05, 2019 07:13 AM UTC by Tetiana Kysla **Last Updated:** Tue Feb 05, 2019 07:13 AM UTC **Owner:** RBRi ~~~ String url = https://www.mediathek.at/portaltreffer/atom/016842B2-35F-03092-00000AFC-01675CE6/pool/BWEB/; WebClient webClient = new WebClient(BrowserVersion.FIREFOX_52); webClient.getOptions().setJavaScriptEnabled(true); webClient.waitForBackgroundJavaScript(3000); HtmlPage jsPage = webClient.getPage(url); ~~~ Error: java.lang.IllegalStateException: DomNode has not been set for this SimpleScriptable: com.gargoylesoftware.htmlunit.javascript.host.html.Audio --- 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-01-25 19:26:15
|
- **status**: pending --> closed - **Comment**: thenks for the feedback, enjoy HtmlUnit --- ** [feature-requests:#258] HtmlButtonInput parsed as an HtmlTextInput** **Status:** closed **Group:** Latest SVN **Created:** Thu Jan 24, 2019 02:56 PM UTC by Ryan Holt **Last Updated:** Fri Jan 25, 2019 02:52 PM UTC **Owner:** RBRi **Attachments:** - [HtmlButtonInputTest.java](https://sourceforge.net/p/htmlunit/feature-requests/258/attachment/HtmlButtonInputTest.java) (2.9 kB; application/octet-stream) Our project requires us to interact with server-generated HTML that is often malformed or has invalid content that browsers will handle but HtmlUnit will trip over. For example, I am unable to get all the attributes of this input element because the parser appears to short-circuit when it reaches the superfluous `=''=""` characters. `<input name='button' id='button' =''="" value="Do you even HTML?" onClick='alert("foo")' type='button' >` HtmlUnit parses this object as an HtmlTextInput instead of a HtmlButtonInput, and the 'value' and 'onClick' attributes are missing from the object's attributes map. It would be incredibly valuable for us to be able to parse web pages with malformed HTML because 1.) we don't have control over the serves that generae this content and 2.) these systems are not going away any time soon. I'm willing to help where I can. I've started by creating a simple unit test that will reproduce this issue. ``` /** * @throws Exception if the test fails */ @Test @Alerts("foo") public void click_onClick_badFormat() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>\n" + "<form id='form1' onSubmit='alert(\"bar\")'>\n" + " <input name='button' id='button' " + "=''=\"\" value=\"Do you even HTML?\"" + "onClick='alert(\"foo\")' type='button' >\n" + "</form></body></html>"; final List<String> collectedAlerts = new ArrayList<>(); final HtmlPage page = loadPage(htmlContent, collectedAlerts); final HtmlButtonInput button = page.getHtmlElementById("button"); final HtmlPage secondPage = button.click(); assertEquals(getExpectedAlerts(), collectedAlerts); assertSame(page, secondPage); } ``` Results in: ``` java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlTextInput cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlButtonInput at com.gargoylesoftware.htmlunit.html.HtmlButtonInputTest.click_onClick_badFormat(HtmlButtonInputTest.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at com.gargoylesoftware.htmlunit.ErrorOutputChecker$1.evaluate(ErrorOutputChecker.java:78) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at com.gargoylesoftware.htmlunit.runners.BrowserStatement.evaluateSolo(BrowserStatement.java:139) at com.gargoylesoftware.htmlunit.runners.BrowserStatement.evaluate(BrowserStatement.java:56) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) ``` --- 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-01-24 20:06:29
|
- **status**: open --> pending - **assigned_to**: RBRi - **Comment**: Have adjusted neko-htmlunit to be more in sync with the spec here. Seems to solve your case. Please check twitter (https://twitter.com/HtmlUnit) for update infos. Will start a build and inform there if a new snapshot is available. Please test then with the new snapshot and report your results here. --- ** [feature-requests:#258] HtmlButtonInput parsed as an HtmlTextInput** **Status:** pending **Group:** Latest SVN **Created:** Thu Jan 24, 2019 02:56 PM UTC by Ryan Holt **Last Updated:** Thu Jan 24, 2019 02:56 PM UTC **Owner:** RBRi **Attachments:** - [HtmlButtonInputTest.java](https://sourceforge.net/p/htmlunit/feature-requests/258/attachment/HtmlButtonInputTest.java) (2.9 kB; application/octet-stream) Our project requires us to interact with server-generated HTML that is often malformed or has invalid content that browsers will handle but HtmlUnit will trip over. For example, I am unable to get all the attributes of this input element because the parser appears to short-circuit when it reaches the superfluous `=''=""` characters. `<input name='button' id='button' =''="" value="Do you even HTML?" onClick='alert("foo")' type='button' >` HtmlUnit parses this object as an HtmlTextInput instead of a HtmlButtonInput, and the 'value' and 'onClick' attributes are missing from the object's attributes map. It would be incredibly valuable for us to be able to parse web pages with malformed HTML because 1.) we don't have control over the serves that generae this content and 2.) these systems are not going away any time soon. I'm willing to help where I can. I've started by creating a simple unit test that will reproduce this issue. ``` /** * @throws Exception if the test fails */ @Test @Alerts("foo") public void click_onClick_badFormat() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>\n" + "<form id='form1' onSubmit='alert(\"bar\")'>\n" + " <input name='button' id='button' " + "=''=\"\" value=\"Do you even HTML?\"" + "onClick='alert(\"foo\")' type='button' >\n" + "</form></body></html>"; final List<String> collectedAlerts = new ArrayList<>(); final HtmlPage page = loadPage(htmlContent, collectedAlerts); final HtmlButtonInput button = page.getHtmlElementById("button"); final HtmlPage secondPage = button.click(); assertEquals(getExpectedAlerts(), collectedAlerts); assertSame(page, secondPage); } ``` Results in: ``` java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlTextInput cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlButtonInput at com.gargoylesoftware.htmlunit.html.HtmlButtonInputTest.click_onClick_badFormat(HtmlButtonInputTest.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at com.gargoylesoftware.htmlunit.ErrorOutputChecker$1.evaluate(ErrorOutputChecker.java:78) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at com.gargoylesoftware.htmlunit.runners.BrowserStatement.evaluateSolo(BrowserStatement.java:139) at com.gargoylesoftware.htmlunit.runners.BrowserStatement.evaluate(BrowserStatement.java:56) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) ``` --- 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-01-23 18:44:30
|
Still trying to build a simple test case that reproduces this problem. --- ** [bugs:#2008] NPE in EventHandler** **Status:** accepted **Group:** 2.33 **Created:** Tue Jan 15, 2019 11:46 AM UTC by markus17 **Last Updated:** Tue Jan 15, 2019 07:48 PM UTC **Owner:** RBRi Hello, We are using HtmlUnit 2.33 for dealing with Javascripted web pages and get the text on the pages, this works very well! There are, however, a set of web pages (links below) that i cannot get the text from. HtmlUnit logs a bunch of errors and throws a NPE in EventHandler constructor line 50. Being new to HtmlUnit, i, of course, have absolutely no idea what the root of the problem is, but i'm filing a bug instead of a mailing list message due to the NPE i got. How can we get the final recipe text which i loaded via AJAX? Thanks! Example pages: https://www.aarstiderne.com/find-din-maaltidskasse/10-minutterskassen https://www.aarstiderne.com/find-din-maaltidskasse/kvikkassen Code: ~~~ BrowserVersion version = new BrowserVersion.BrowserVersionBuilder(BrowserVersion.CHROME).build(); WebClient client = new WebClient(version); client.getOptions().setThrowExceptionOnScriptError(false); client.getOptions().setCssEnabled(false); client.getOptions().setJavaScriptEnabled(true); client.getOptions().setDownloadImages(false); client.getOptions().setThrowExceptionOnFailingStatusCode(false); client.getOptions().setPrintContentOnFailingStatusCode(false); client.getOptions().setUseInsecureSSL(true); client.getOptions().setRedirectEnabled(false); client.setJavaScriptTimeout(20000); page = client.getPage(url); synchronized(page) { try { page.wait(20000); } catch (Exception e) {} } client.waitForBackgroundJavaScript(10000); ~~~ Log + stack trace: ~~~ 2019-01-15 12:08:20,689 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:20,696 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js] line=[2] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:22,479 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:22,537 INFO javascript.JavaScriptEngine - Caught script exception ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setInnerHTML at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 11 more Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more Enclosed exception: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more == CALLING JAVASCRIPT == function () { try { l(); } catch (e) { w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), t + 1 >= o && (r !== W && (s = void 0, u = [e]), n.rejectWith(s, u)); } } ======= EXCEPTION END ======== 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: HTMLOptionElement 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: MutationObserver 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: URL 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: TransitionEvent 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: AnimationEvent 2019-01-15 12:08:23,101 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,148 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,174 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:23,174 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,218 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,260 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,329 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,473 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,641 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,676 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,756 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,812 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] IFrame scrolling disabled for etrack1floaterframe 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] [init] Sending msg to iframe[etrack1floaterframe] (etrack1floaterframe:8:false:true:32:true:true:null:bodyOffset:null:null:0:false:parent:scroll) targetOrigin: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Initialising iFrame (https://system.etrack1.com/FormBuilder/ContactForm.aspx?fid=f59ee0e0-c898-4750-864c-c4374a92322f&dc=65746&custdc=65746) 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Reading data from page: {"targetOrigin":"*"} 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] TargetOrigin for parent set to: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] HTML & body height set to "auto" 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Enable public methods 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Start 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Iteration 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation End 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Input 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Up 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Down 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Orientation Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Print 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Ready State Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch End 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Cancel 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Iteration 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition End 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Create body MutationObserver 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] In page linking not enabled 2019-01-15 12:08:23,878 WARN htmlunit.WebConsole - Search config not found 2019-01-15 12:08:23,937 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,942 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,948 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,957 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock on 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Sending message to host page (etrack1floaterframe:196:1256:mutationObserver) 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:24,091 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock off 2019-01-15 12:08:24,092 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] -- 2019-01-15 12:08:25,067 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:26,563 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:28,065 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,005 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,006 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] No change in size detected 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:29,569 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:31,061 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:32,180 WARN parse.ParserFactory - ParserFactory: Plugin: org.apache.nutch.parse.html.HtmlParser mapped to contentType text/html via parse-plugins.xml, but not enabled via plugin.includes in nutch-default.xml 2019-01-15 12:08:32,560 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] ~~~ --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-01-22 19:31:55
|
Any feedback? Does it work? --- ** [bugs:#2004] HtmlUnit 2.33 not processes chart js ** **Status:** pending **Group:** 2.33 **Created:** Fri Dec 07, 2018 03:15 PM UTC by Manikandan Kabali **Last Updated:** Mon Dec 10, 2018 07:33 PM UTC **Owner:** RBRi Hi all, I am using chart.js library to create chart in my code. Chart.js renders chart in the canvas dynamically. When I process the html using HtmlUnit, it is not rendering the chart in the canvas. I think HtmlUnit is not processing animation. It results in empty canvas. Please suggest some solutions to process chart.js code. Thanks, Manikandan Kabali --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: rbri <rb...@rb...> - 2019-01-22 18:46:22
|
Branch: refs/heads/master Home: https://github.com/HtmlUnit/htmlunit-rhino-fork Commit: e4e89b0a60896b574f4ccd0ef95beadb21b57cff https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/e4e89b0a60896b574f4ccd0ef95beadb21b57cff Author: Travis Haagen <tra...@gm...> Date: 2019-01-21 (Mon, 21 Jan 2019) Changed paths: M src/org/mozilla/javascript/commonjs/module/provider/UrlModuleSourceProvider.java Log Message: ----------- Fix bug that caused modified JavaScript files to never be reloaded Commit: b88de07bd0f62c5757829b919e3593e968af0ea6 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/b88de07bd0f62c5757829b919e3593e968af0ea6 Author: Travis Haagen <tra...@fo...> Date: 2019-01-21 (Mon, 21 Jan 2019) Changed paths: A testsrc/org/mozilla/javascript/tests/commonjs/module/provider/UrlModuleSourceProviderTest.java Log Message: ----------- Created UrlModuleSourceProviderTest Commit: 95956879dedd9bb56a3442151421978b062668fa https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/95956879dedd9bb56a3442151421978b062668fa Author: stijnkliemesch <332...@us...> Date: 2019-01-21 (Mon, 21 Jan 2019) Changed paths: M src/org/mozilla/javascript/Parser.java Log Message: ----------- Fixes Parser.throwStatement() Fixes Parser.throwStatement() creating ThrowStatement with incorect length Commit: f875a684fbbf7c76a12c7de6df25bce6e9915328 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/f875a684fbbf7c76a12c7de6df25bce6e9915328 Author: Stijn Kliemesch <332...@us...> Date: 2019-01-21 (Mon, 21 Jan 2019) Changed paths: M testsrc/org/mozilla/javascript/tests/ParserTest.java Log Message: ----------- Added testcase for #510 This added testcase specifically fails without the fix from commit 52f97f8fa2e5f114f5a4243dccd67433b496aef4. Without the fix: In TokenStream.getLine(int, int) the first assertion fails since the throw statement's end position exceeds the cursor (the whole script length even). This results in a thrown AssertionError (if the assert keyword is active in the java runtime). Commit: de71d46896ab593188aa0d46012b4dfd73ea4102 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/de71d46896ab593188aa0d46012b4dfd73ea4102 Author: rbri <rb...@rb...> Date: 2019-01-22 (Tue, 22 Jan 2019) Changed paths: M src/org/mozilla/javascript/Parser.java M src/org/mozilla/javascript/commonjs/module/provider/UrlModuleSourceProvider.java M testsrc/org/mozilla/javascript/tests/ParserTest.java A testsrc/org/mozilla/javascript/tests/commonjs/module/provider/UrlModuleSourceProviderTest.java Log Message: ----------- Merge remote-tracking branch 'upstream/master' Compare: https://github.com/HtmlUnit/htmlunit-rhino-fork/compare/a359136b5385...de71d46896ab **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019. |
From: RBRi <rb...@us...> - 2019-01-15 19:48:04
|
- **status**: open --> accepted - **assigned_to**: RBRi - **Comment**: Looks reproducible to me but will require some analyis. BTW there is no benefit from calling the BrowserVersionBuilder in your case, simply use new WebClient(BrowserVersion.CHROME) instead. --- ** [bugs:#2008] NPE in EventHandler** **Status:** accepted **Group:** 2.33 **Created:** Tue Jan 15, 2019 11:46 AM UTC by markus17 **Last Updated:** Tue Jan 15, 2019 11:46 AM UTC **Owner:** RBRi Hello, We are using HtmlUnit 2.33 for dealing with Javascripted web pages and get the text on the pages, this works very well! There are, however, a set of web pages (links below) that i cannot get the text from. HtmlUnit logs a bunch of errors and throws a NPE in EventHandler constructor line 50. Being new to HtmlUnit, i, of course, have absolutely no idea what the root of the problem is, but i'm filing a bug instead of a mailing list message due to the NPE i got. How can we get the final recipe text which i loaded via AJAX? Thanks! Example pages: https://www.aarstiderne.com/find-din-maaltidskasse/10-minutterskassen https://www.aarstiderne.com/find-din-maaltidskasse/kvikkassen Code: ~~~ BrowserVersion version = new BrowserVersion.BrowserVersionBuilder(BrowserVersion.CHROME).build(); WebClient client = new WebClient(version); client.getOptions().setThrowExceptionOnScriptError(false); client.getOptions().setCssEnabled(false); client.getOptions().setJavaScriptEnabled(true); client.getOptions().setDownloadImages(false); client.getOptions().setThrowExceptionOnFailingStatusCode(false); client.getOptions().setPrintContentOnFailingStatusCode(false); client.getOptions().setUseInsecureSSL(true); client.getOptions().setRedirectEnabled(false); client.setJavaScriptTimeout(20000); page = client.getPage(url); synchronized(page) { try { page.wait(20000); } catch (Exception e) {} } client.waitForBackgroundJavaScript(10000); ~~~ Log + stack trace: ~~~ 2019-01-15 12:08:20,689 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:20,696 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js] line=[2] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:22,479 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:22,537 INFO javascript.JavaScriptEngine - Caught script exception ======= EXCEPTION START ======== Exception class=[java.lang.RuntimeException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking setInnerHTML at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) ... 11 more Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more Enclosed exception: java.lang.RuntimeException: Exception invoking setInnerHTML at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:184) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject$GetterSlot.setValue(ScriptableObject.java:328) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putImpl(ScriptableObject.java:2853) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.put(ScriptableObject.java:538) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitScriptable.put(HtmlUnitScriptable.java:151) at net.sourceforge.htmlunit.corejs.javascript.ScriptableObject.putProperty(ScriptableObject.java:2532) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1736) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.setObjectProp(ScriptRuntime.java:1730) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1447) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.BaseFunction.construct(BaseFunction.java:361) at net.sourceforge.htmlunit.corejs.javascript.BoundFunction.construct(BoundFunction.java:59) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1718) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:1009) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:111) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:424) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:330) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3557) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$3.doRun(JavaScriptEngine.java:814) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:877) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:57) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:102) at com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:424) at com.gargoylesoftware.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:144) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NullPointerException at com.gargoylesoftware.htmlunit.javascript.host.event.EventHandler.<init>(EventHandler.java:50) at com.gargoylesoftware.htmlunit.javascript.host.Element.createEventHandler(Element.java:149) at com.gargoylesoftware.htmlunit.javascript.host.Element.setDomNode(Element.java:136) at com.gargoylesoftware.htmlunit.javascript.SimpleScriptable.makeScriptableFor(SimpleScriptable.java:238) at com.gargoylesoftware.htmlunit.html.DomNode.getScriptableObject(DomNode.java:942) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAttributeValue(HtmlPage.java:1796) at com.gargoylesoftware.htmlunit.html.HtmlPage.addElement(HtmlPage.java:1767) at com.gargoylesoftware.htmlunit.html.HtmlPage.addMappedElement(HtmlPage.java:1760) at com.gargoylesoftware.htmlunit.html.HtmlPage.notifyNodeAdded(HtmlPage.java:1703) at com.gargoylesoftware.htmlunit.html.DomNode.fireAddition(DomNode.java:1082) at com.gargoylesoftware.htmlunit.html.DomNode.appendChild(DomNode.java:976) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.addNodeToRightParent(HTMLParser.java:722) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:601) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.startElement(HTMLParser.java:530) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.callStartElement(HTMLTagBalancer.java:1188) at net.sourceforge.htmlunit.cyberneko.HTMLTagBalancer.startElement(HTMLTagBalancer.java:791) at net.sourceforge.htmlunit.cyberneko.filters.DefaultFilter.startElement(DefaultFilter.java:142) at net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.startElement(NamespaceBinder.java:280) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanStartElement(HTMLScanner.java:2814) at net.sourceforge.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2149) at net.sourceforge.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:939) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:452) at net.sourceforge.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:403) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:1001) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:178) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseFragment(HTMLParser.java:133) at com.gargoylesoftware.htmlunit.javascript.host.Element.parseHtmlSnippet(Element.java:869) at com.gargoylesoftware.htmlunit.javascript.host.Element.setInnerHTML(Element.java:921) at com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement.setInnerHTML(HTMLElement.java:653) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:158) ... 31 more == CALLING JAVASCRIPT == function () { try { l(); } catch (e) { w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), t + 1 >= o && (r !== W && (s = void 0, u = [e]), n.rejectWith(s, u)); } } ======= EXCEPTION END ======== 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: HTMLOptionElement 2019-01-15 12:08:22,898 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: MutationObserver 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: URL 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: TransitionEvent 2019-01-15 12:08:22,899 WARN javascript.JavaScriptEngine - Error during JavaScriptEngine.init(WebWindow, Context) TypeError: Cannot modify readonly property: constructor. (https://www.aarstiderne.com:443/assets/build/js/libs/jquery-3.3.1.min.js#2) prototype: AnimationEvent 2019-01-15 12:08:23,101 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,148 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,174 WARN css.CSSStyleSheet - Unhandled CSS condition type 'PREFIX_ATTRIBUTE_CONDITION'. Accepting it silently. 2019-01-15 12:08:23,174 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: *:x).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,218 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,260 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,329 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,473 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,641 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,676 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,756 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,812 WARN htmlunit.IncorrectnessListenerImpl - Obsolete content type encountered: 'application/x-javascript'. 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] IFrame scrolling disabled for etrack1floaterframe 2019-01-15 12:08:23,871 INFO htmlunit.WebConsole - [iFrameSizer][Host page: etrack1floaterframe] [init] Sending msg to iframe[etrack1floaterframe] (etrack1floaterframe:8:false:true:32:true:true:null:bodyOffset:null:null:0:false:parent:scroll) targetOrigin: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Initialising iFrame (https://system.etrack1.com/FormBuilder/ContactForm.aspx?fid=f59ee0e0-c898-4750-864c-c4374a92322f&dc=65746&custdc=65746) 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Reading data from page: {"targetOrigin":"*"} 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] TargetOrigin for parent set to: * 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] HTML & body height set to "auto" 2019-01-15 12:08:23,873 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Enable public methods 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Start 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation Iteration 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Animation End 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Input 2019-01-15 12:08:23,874 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Up 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Mouse Down 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Orientation Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Print 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Ready State Change 2019-01-15 12:08:23,875 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch End 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Touch Cancel 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Start 2019-01-15 12:08:23,876 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition Iteration 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Add event listener: Transition End 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Create body MutationObserver 2019-01-15 12:08:23,877 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] In page linking not enabled 2019-01-15 12:08:23,878 WARN htmlunit.WebConsole - Search config not found 2019-01-15 12:08:23,937 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,942 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:23,948 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,957 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock on 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Sending message to host page (etrack1floaterframe:196:1256:mutationObserver) 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,958 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:23,959 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:24,091 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event lock off 2019-01-15 12:08:24,092 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] -- 2019-01-15 12:08:25,067 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:26,563 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:28,065 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,005 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.dongchatpopup:visible' error: Invalid selector: div.dongchatpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,006 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.chatwait:visible' error: Invalid selector: div.chatwait:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,009 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] No change in size detected 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,010 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLDivElement] attributes 2019-01-15 12:08:29,011 INFO htmlunit.WebConsole - [iFrameSizer][etrack1floaterframe] Trigger event: mutationObserver: [object HTMLSpanElement] attributes 2019-01-15 12:08:29,569 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:31,061 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] 2019-01-15 12:08:32,180 WARN parse.ParserFactory - ParserFactory: Plugin: org.apache.nutch.parse.html.HtmlParser mapped to contentType text/html via parse-plugins.xml, but not enabled via plugin.includes in nutch-default.xml 2019-01-15 12:08:32,560 ERROR javascript.StrictErrorReporter - runtimeError: message=[An invalid or illegal selector was specified (selector: 'div.aartpopup:visible' error: Invalid selector: div.aartpopup:visible).] sourceName=[https://system.etrack1.com/Support/jQuery/jquery-1.9.1.min.js] line=[4] lineSource=[null] lineOffset=[0] ~~~ --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2019-01-07 18:54:30
|
- **status**: accepted --> closed - **Comment**: Should be fixed now - please use the latet snapshot build. Thanks for your report and for using HtmlUnit. --- ** [bugs:#2007] Cannot find function readAsText in object [object FileReader]** **Status:** closed **Group:** 2.33 **Created:** Wed Jan 02, 2019 12:50 PM UTC by Jedrzej **Last Updated:** Sun Jan 06, 2019 07:03 PM UTC **Owner:** RBRi Greetings, While calling JavaScript function that uses FileReader(https://developer.mozilla.org/en-US/docs/Web/API/FileReader) and readAsText() method(https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText), HtmlUnit throws the following exception: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function readAsText in object [object FileReader]. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) [htmlunit-2.33.jar:2.33] at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) [htmlunit-core-js-2.33.jar:na] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) [htmlunit-core-js-2.33.jar:na] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:344) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeAtTargetListeners(EventListenersContainer.java:381) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:174) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.DomElement.lambda$fireEvent$0(DomElement.java:1410) [htmlunit-2.33.jar:2.33] at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) [htmlunit-core-js-2.33.jar:na] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) [htmlunit-core-js-2.33.jar:na] at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1410) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1384) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlFileInput.setFiles(HtmlFileInput.java:166) ~[htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlFileInput.setValueAttribute(HtmlFileInput.java:148) ~[htmlunit-2.33.jar:2.33] looks like com.gargoylesoftware.htmlunit.javascript.host.file.FileReader doesn't provide such a method, are there any plans to 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...@rb...> - 2019-01-07 18:44:37
|
Branch: refs/heads/master Home: https://github.com/HtmlUnit/htmlunit-rhino-fork Commit: 09434e7ceb7426424762340bee7d3a73d2837cc5 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/09434e7ceb7426424762340bee7d3a73d2837cc5 Author: Dimitar Nestorov <dim...@us...> Date: 2019-01-03 (Thu, 03 Jan 2019) Changed paths: M README.md Log Message: ----------- Update README.md Commit: cb8fd9af6f4c626f2db6ac347c9a91f37f10aa52 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/cb8fd9af6f4c626f2db6ac347c9a91f37f10aa52 Author: rbri <rb...@rb...> Date: 2019-01-07 (Mon, 07 Jan 2019) Changed paths: M src/org/mozilla/javascript/typedarrays/NativeDataView.java M testsrc/jstests/harmony/dataview-accessors.js M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/test262.properties Log Message: ----------- fixes for DataView, including enabling more test cases. Commit: 02df8b13c86985d778f1673229221c34ac4397f2 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/02df8b13c86985d778f1673229221c34ac4397f2 Author: Nedelcho Delchev <del...@gm...> Date: 2019-01-07 (Mon, 07 Jan 2019) Changed paths: M README.md Log Message: ----------- Update README.md Commit: a359136b53858175edda033d2cf27a9044529fe8 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/a359136b53858175edda033d2cf27a9044529fe8 Author: rbri <rb...@rb...> Date: 2019-01-07 (Mon, 07 Jan 2019) Changed paths: M README.md M src/org/mozilla/javascript/typedarrays/NativeDataView.java M testsrc/jstests/harmony/dataview-accessors.js M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/test262.properties Log Message: ----------- Merge remote-tracking branch 'upstream/master' Compare: https://github.com/HtmlUnit/htmlunit-rhino-fork/compare/bab27e11b076...a359136b5385 **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019. |
From: RBRi <rb...@us...> - 2019-01-06 19:03:03
|
- **status**: open --> accepted - **assigned_to**: RBRi - **Comment**: I think i can fix this, readAsArrayBuffer(Object) and readAsDataURL(Object) are already implemented. --- ** [bugs:#2007] Cannot find function readAsText in object [object FileReader]** **Status:** accepted **Group:** 2.33 **Created:** Wed Jan 02, 2019 12:50 PM UTC by Jedrzej **Last Updated:** Wed Jan 02, 2019 12:50 PM UTC **Owner:** RBRi Greetings, While calling JavaScript function that uses FileReader(https://developer.mozilla.org/en-US/docs/Web/API/FileReader) and readAsText() method(https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText), HtmlUnit throws the following exception: com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function readAsText in object [object FileReader]. at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) [htmlunit-2.33.jar:2.33] at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) [htmlunit-core-js-2.33.jar:na] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) [htmlunit-core-js-2.33.jar:na] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:821) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:793) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2518) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2511) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeEventListeners(EventListenersContainer.java:344) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.host.event.EventListenersContainer.executeAtTargetListeners(EventListenersContainer.java:381) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.javascript.host.event.EventTarget.fireEvent(EventTarget.java:174) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.DomElement.lambda$fireEvent$0(DomElement.java:1410) [htmlunit-2.33.jar:2.33] at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:616) [htmlunit-core-js-2.33.jar:na] at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:534) [htmlunit-core-js-2.33.jar:na] at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1410) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.DomElement.fireEvent(DomElement.java:1384) [htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlFileInput.setFiles(HtmlFileInput.java:166) ~[htmlunit-2.33.jar:2.33] at com.gargoylesoftware.htmlunit.html.HtmlFileInput.setValueAttribute(HtmlFileInput.java:148) ~[htmlunit-2.33.jar:2.33] looks like com.gargoylesoftware.htmlunit.javascript.host.file.FileReader doesn't provide such a method, are there any plans to 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...> - 2018-12-10 19:40:32
|
> Sorry, English is not my native language. I have the same problem ;-) > Is there something to do to solve my problem or I will have to look for another API in order to do what I want ? 1. Follow HtmlUnit on twitter to be always informed (https://twitter.com/HtmlUnit) :-) 2. Use the latest snapshot build to get my last fixes ~~~ dependencies { implementation 'net.sourceforge.htmlunit:htmlunit:2.34.SNAPSHOT' } ~~~ 3. If you still have problem post the new stacktrace; will try to help --- ** [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:** Fri Dec 07, 2018 12:44 AM UTC **Owner:** nobody Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2018-12-10 19:33:50
|
- **status**: open --> pending - **assigned_to**: RBRi - **Comment**: Hi Manikandan, you are (more or less) right, the animation support was not there so far. But with the current snapshot build i have * added animation support * have implemented many more canvas functions. Now chart.js is basically supported. Because HtmlUnit does not redraw the page like real browsers, you have to force (and you can control) the animation from your code. ~~~ final HtmlPage page = webClient.getPage(url); webClient.waitForBackgroundJavaScript(4000); Window window = page.getEnclosingWindow().getScriptableObject(); int i = 0; do { System.out.println("start animation " + i); i = window.animateAnimationsFrames(); System.out.println("end animation"); } while (i > 0); HtmlCanvas pic = (HtmlCanvas) page.getElementById("canvas"); HTMLCanvasElement picelem = (HTMLCanvasElement) pic.getScriptableObject(); String png = picelem.toDataURL("image/png"); ~~~ Hope that helps. Of course the implementation of CanvasRenderingContext2D is far from perfect/complete. It will be great if you can make some more improvements and share your stuff as Github pull request(s). --- ** [bugs:#2004] HtmlUnit 2.33 not processes chart js ** **Status:** pending **Group:** 2.33 **Created:** Fri Dec 07, 2018 03:15 PM UTC by Manikandan Kabali **Last Updated:** Fri Dec 07, 2018 03:15 PM UTC **Owner:** RBRi Hi all, I am using chart.js library to create chart in my code. Chart.js renders chart in the canvas dynamically. When I process the html using HtmlUnit, it is not rendering the chart in the canvas. I think HtmlUnit is not processing animation. It results in empty canvas. Please suggest some solutions to process chart.js code. Thanks, Manikandan Kabali --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2018-12-06 20:28:00
|
Ah ok, looks like you are on android. Have done some checks, the class you are missing is an artifact left over from the try to switch from Rhino to Nashorn. Have removed that. Please check at twitter https://twitter.com/HtmlUnit; will inform if a new snapshot is available. --- ** [feature-requests:#257] Getting the issue Failed resolution of: Ljavax/script/SimpleScriptContext when trying to use HTMLUnit methods** **Status:** open **Group:** Latest SVN **Created:** Sun Dec 02, 2018 08:06 PM UTC by Cédrick JACOBS **Last Updated:** Tue Dec 04, 2018 07:21 PM UTC **Owner:** nobody Hello, I'm trying to use HTMLUnit to get some information automatically from a website. I imported all the .jar files from the 2.33 Version in my project. This is my code : {String lien=""; try (final WebClient webClient = new WebClient()) { // Get the first page final HtmlPage page1 = webClient.getPage(url); // Get the form that we are dealing with and within that form, // find the submit button and the field that we want to change. final HtmlForm form = page1.getForms().get(0); final HtmlSubmitInput boutonAjouterGroupe = form.getInputByName("ctl00$ColumnLeft$ADD_BTN_ID"); final HtmlSubmitInput boutonObtenirFlux = form.getInputByName("ctl00$ColumnLeft$GET_BTN_ID"); final HtmlTextInput TexteGroupe = form.getInputByName("ctl00$ColumnLeft$RES_TB_ID"); // Change the value of the text field TexteGroupe.type("L3 INFO s1 TPA12"); // Now submit the form by clicking the button and get back the second page. final HtmlPage page2 = boutonAjouterGroupe.click(); // Now submit the form by clicking the button and get back the third page. final HtmlPage page3 = boutonObtenirFlux.click(); final HtmlForm form2 = page1.getForms().get(0); final HtmlTextInput TexteUrlICS = form2.getInputByName("ctl00$ColumnLeft$FEED_URL_TB_ID"); lien = TexteUrlICS.getValueAttribute(); } When I use this method, I get this error : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/script/SimpleScriptContext;" I tried to import this library "jsr223.jar" which contains the SimpleScriptMethod". I don't have the previous error but I got a new one : "W/System.err: java.util.concurrent.ExecutionException: java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; in class Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier; or its superclasses (declaration of 'org.apache.http.conn.ssl.AllowAllHostnameVerifier' appears in /system/framework/framework.jar:classes3.dex)". I don't know what to do. If someone can help me, I'd appreciate it. Thank you for your time. Regards. --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2018-12-05 19:38:14
|
If you like to contact me without using the sourceforge crap, my mail is on the htmlunit web site; look for developers. --- ** [bugs:#2001] Insufficient validation of input elements** **Status:** open **Group:** 2.33 **Created:** Mon Nov 19, 2018 12:29 PM UTC by Anton **Last Updated:** Wed Dec 05, 2018 07:37 PM UTC **Owner:** nobody Hi All, It seems that current implementation supports only required attribute validation for input element (attribute required and value is not empty). But html specify more options: - maxlength - min - max - pattern So it would be nice to use them to calculate input validity before form submission. If it would be necessary I could provide patch for this feature a bit later. Best regards --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: RBRi <rb...@us...> - 2018-12-05 19:37:12
|
Because reaching you by mail failed.... There is a class RegExpToJavaConverter that converts JS regex to java regex. Maybe you can use this and than work with the java regex. --- ** [bugs:#2001] Insufficient validation of input elements** **Status:** open **Group:** 2.33 **Created:** Mon Nov 19, 2018 12:29 PM UTC by Anton **Last Updated:** Mon Nov 19, 2018 06:21 PM UTC **Owner:** nobody Hi All, It seems that current implementation supports only required attribute validation for input element (attribute required and value is not empty). But html specify more options: - maxlength - min - max - pattern So it would be nice to use them to calculate input validity before form submission. If it would be necessary I could provide patch for this feature a bit later. Best regards --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |
From: rbri <rb...@rb...> - 2018-12-04 19:22:00
|
Branch: refs/heads/master Home: https://github.com/HtmlUnit/htmlunit-core-js Commit: da4adb914d422aad4cae9865070f50469b923833 https://github.com/HtmlUnit/htmlunit-core-js/commit/da4adb914d422aad4cae9865070f50469b923833 Author: rbri <rb...@rb...> Date: 2018-12-04 (Tue, 04 Dec 2018) Changed paths: M build.gradle Log Message: ----------- work on the next version **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019. |
From: rbri <rb...@rb...> - 2018-12-04 19:20:38
|
Branch: refs/heads/master Home: https://github.com/HtmlUnit/htmlunit-rhino-fork Commit: a9520588e13e3770d611fea96a73c01b2b0e25c3 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/a9520588e13e3770d611fea96a73c01b2b0e25c3 Author: Gregory Brail <gre...@go...> Date: 2018-11-15 (Thu, 15 Nov 2018) Changed paths: M build.gradle Log Message: ----------- Upgrade max heap for Gradle tests to 1 GB. We are now running more than 80,000 tests, so it doesn't seem like a problem if we need a larger heap on some platforms. Commit: 492f1ea4f7b9057c9c3b7e4c7ecf503a83e1bbf9 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/492f1ea4f7b9057c9c3b7e4c7ecf503a83e1bbf9 Author: rbri <rb...@rb...> Date: 2018-11-15 (Thu, 15 Nov 2018) Changed paths: M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/test262.properties Log Message: ----------- more detailed tests hack to dump already passing tests exclude one more class of tests more tests are passing Commit: c18e3b4e09b70ebca1c9d7a3b9467658295a7847 https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/c18e3b4e09b70ebca1c9d7a3b9467658295a7847 Author: rbri <rb...@rb...> Date: 2018-11-15 (Thu, 15 Nov 2018) Changed paths: M .travis.yml Log Message: ----------- next try to make the travis build pass Commit: c75750e9e6ca1781a90e6c065959cc085ca843cd https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/c75750e9e6ca1781a90e6c065959cc085ca843cd Author: rbri <rb...@rb...> Date: 2018-12-01 (Sat, 01 Dec 2018) Changed paths: M src/org/mozilla/javascript/NativeArray.java M src/org/mozilla/javascript/ScriptRuntime.java M testsrc/test262.properties Log Message: ----------- array.fill Commit: 833133ca7df1fb6ba85b4d8e47b62e63216f183d https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/833133ca7df1fb6ba85b4d8e47b62e63216f183d Author: rbri <rb...@rb...> Date: 2018-12-04 (Tue, 04 Dec 2018) Changed paths: M src/org/mozilla/javascript/Arguments.java M src/org/mozilla/javascript/NativeArray.java M src/org/mozilla/javascript/NativeArrayIterator.java M src/org/mozilla/javascript/typedarrays/NativeTypedArrayView.java M testsrc/org/mozilla/javascript/tests/es6/NativeArrayIteratorTest.java M testsrc/test262.properties Log Message: ----------- array.keys, array.entries, array.values Commit: bab27e11b0763701370e01613b009ce9acd3868a https://github.com/HtmlUnit/htmlunit-rhino-fork/commit/bab27e11b0763701370e01613b009ce9acd3868a Author: rbri <rb...@rb...> Date: 2018-12-04 (Tue, 04 Dec 2018) Changed paths: M .travis.yml M build.gradle M src/org/mozilla/javascript/Arguments.java M src/org/mozilla/javascript/NativeArray.java M src/org/mozilla/javascript/NativeArrayIterator.java M src/org/mozilla/javascript/ScriptRuntime.java M src/org/mozilla/javascript/typedarrays/NativeTypedArrayView.java M testsrc/org/mozilla/javascript/tests/Test262SuiteTest.java M testsrc/org/mozilla/javascript/tests/es6/NativeArrayIteratorTest.java M testsrc/test262.properties Log Message: ----------- Merge remote-tracking branch 'upstream/master' Compare: https://github.com/HtmlUnit/htmlunit-rhino-fork/compare/94d9af3043b0...bab27e11b076 **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019. |