From: Ahmed A. <asa...@ya...> - 2017-04-22 12:54:02
|
Hi Wayne, Thanks for reporting. It seems the bundle-plugin needs special maven configurations, which were locally applied. Please use the updated file and report back if you have an issue, with the full java code, since I had two ClassNotFoundException for: try (WebClient wc = new WebClient()) { wc.getPage("http://www.realestateatkochi.com/js/game/page/step1.html"); } Yours,Ahmed From: Wayne <way...@ho...> To: "Htm...@li..." <htm...@li...> Sent: Friday, April 21, 2017 12:31 AM Subject: [Htmlunit-user] NoSuchMethodError from htmlunit 2.26 (htmlunit-2.26-OSGi.jar) - packaging issue? <!--#yiv1657653571 _filtered #yiv1657653571 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv1657653571 {font-family:DengXian;panose-1:2 1 6 0 3 1 1 1 1 1;} _filtered #yiv1657653571 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv1657653571 #yiv1657653571 p.yiv1657653571MsoNormal, #yiv1657653571 li.yiv1657653571MsoNormal, #yiv1657653571 div.yiv1657653571MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}#yiv1657653571 a:link, #yiv1657653571 span.yiv1657653571MsoHyperlink {color:blue;text-decoration:underline;}#yiv1657653571 a:visited, #yiv1657653571 span.yiv1657653571MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv1657653571 p.yiv1657653571msonormal, #yiv1657653571 li.yiv1657653571msonormal, #yiv1657653571 div.yiv1657653571msonormal {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}#yiv1657653571 p.yiv1657653571msochpdefault, #yiv1657653571 li.yiv1657653571msochpdefault, #yiv1657653571 div.yiv1657653571msochpdefault {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times New Roman";}#yiv1657653571 span.yiv1657653571msohyperlink {}#yiv1657653571 span.yiv1657653571msohyperlinkfollowed {}#yiv1657653571 span.yiv1657653571emailstyle17 {}#yiv1657653571 span.yiv1657653571msoins {}#yiv1657653571 p.yiv1657653571msonormal1, #yiv1657653571 li.yiv1657653571msonormal1, #yiv1657653571 div.yiv1657653571msonormal1 {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}#yiv1657653571 span.yiv1657653571msohyperlink1 {color:blue;text-decoration:underline;}#yiv1657653571 span.yiv1657653571msohyperlinkfollowed1 {color:purple;text-decoration:underline;}#yiv1657653571 span.yiv1657653571emailstyle171 {font-family:Calibri;color:windowtext;}#yiv1657653571 span.yiv1657653571msoins1 {color:teal;text-decoration:underline;}#yiv1657653571 p.yiv1657653571msochpdefault1, #yiv1657653571 li.yiv1657653571msochpdefault1, #yiv1657653571 div.yiv1657653571msochpdefault1 {margin-right:0in;margin-left:0in;font-size:10.0pt;font-family:"Times New Roman";}#yiv1657653571 span.yiv1657653571EmailStyle29 {font-family:Calibri;color:windowtext;}#yiv1657653571 span.yiv1657653571msoIns {text-decoration:underline;color:teal;}#yiv1657653571 .yiv1657653571MsoChpDefault {font-size:10.0pt;} _filtered #yiv1657653571 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv1657653571 div.yiv1657653571WordSection1 {}-->Hi all, I’m wonder if I’m the only person who’s experiencing the following error. I googled online and it seems to be an old HC package that could cause this problem. I wonder if 2.26 OSGi was using an old http conn package? By the way, WebClient.getPage() on URL 'http://www.realestateatkochi.com/js/game/page/step1.html' would give IllegalStateError “Connection pool shut down” with ThreadedRefereshHandler on htmlunit-2.26-OSGi.jar. That’s why I’m trying 2.26. Thanks. -Wayne java.lang.NoSuchMethodError: org.apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:182) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.<init>(PoolingHttpClientConnectionManager.java:164) at com.gargoylesoftware.htmlunit.HttpWebConnection.createConnectionManager(HttpWebConnection.java:1045) at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:176) at com.pan.utils.PandoraWebConnection.getResponse(PandoraWebConnection.java:36) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1372) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1291) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:390) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:311) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:459) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:444) at com.pan.utils.SingleCrawler$HtmlunitCrawl.call(SingleCrawler.java:1087) at com.pan.utils.SingleCrawler$HtmlunitCrawl.call(SingleCrawler.java:1007) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) NoSuchMethodError for 'http://www.realestateatkochi.com/js/game/page/step1.html' :org.apache.http.impl.conn.CPool.setValidateAfterInactivity(I)V ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |