获取错误java.lang.NoSuchMethodError:org.apache.http.impl.client.AbstractHttpClient.execute

时间:2014-09-17 09:38:28

标签: java maven

我是maven的新手,我在运行maven项目时遇到错误。 我正在使用maven版本3。

Exception in thread "pool-1-thread-1" java.lang.NoSuchMethodError: org.apache.http.impl.client.AbstractHttpClient.execute(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/methods/CloseableHttpResponse;
at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:167)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1281)
at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1198)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:307)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:376)
at org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:477)
at org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:466)
at com.qburst.saleschannel.core.driver.Driver.loadUrl(Driver.java:86)
at com.qburst.saleschannel.core.page.Page.fetchPage(Page.java:63)!! Scraping Gumtree for .NET !! - 2:53:21 PM

at com.qburst.saleschannel.core.page.Page.getRootElement(Page.java:138)
at com.qburst.saleschannel.core.script.WebPage.addOperation(WebPage.java:30)
at com.qburst.saleschannel.core.crawlers.FreelancerCrawler.login(FreelancerCrawler.java:50)
at com.qburst.saleschannel.core.crawlers.FreelancerCrawler.crawl(FreelancerCrawler.java:75)
at com.qburst.saleschannel.core.crawlers.BaseCrawler.run(BaseCrawler.java:33)
at java.lang.Thread.run(Thread.java:745)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

提前致谢

0 个答案:

没有答案