webmagic运行提示错误
@黄亿华 你好,想跟你请教个问题:您好!我在运行0.5.0后版本源码时,总是出现此错误:
Exception in thread "pool-1-thread-1" java.lang.NoSuchMethodError: com.google.common.collect.Maps.asMapEntryIterator(Ljava/util/Set;Lcom/google/common/base/Function;)Ljava/util/Iterator;
at com.google.common.collect.StandardTable$RowMap$EntrySet.iterator(StandardTable.java:722)
at us.codecraft.webmagic.downloader.HttpClientGenerator.generateCookie(HttpClientGenerator.java:84)
at us.codecraft.webmagic.downloader.HttpClientGenerator.generateClient(HttpClientGenerator.java:73)
at us.codecraft.webmagic.downloader.HttpClientGenerator.getClient(HttpClientGenerator.java:45)
at us.codecraft.webmagic.downloader.HttpClientDownloader.getHttpClient(HttpClientDownloader.java:56)
at us.codecraft.webmagic.downloader.HttpClientDownloader.download(HttpClientDownloader.java:84)
at us.codecraft.webmagic.Spider.processRequest(Spider.java:403)
at us.codecraft.webmagic.Spider$1.run(Spider.java:321)
at us.codecraft.webmagic.selector.thread.CountableThreadPool$1.run(CountableThreadPool.java:74)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你好,是哪个包和哪个包冲突?
已解决,是jar包冲突