You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
刚开始用WebMagic
按照 http://webmagic.io/docs/zh/ 教程上试第一个爬虫的例子
出现错误,但是我在maven中添加了guava 15.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:771) 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:63) at us.codecraft.webmagic.downloader.HttpClientDownloader.download(HttpClientDownloader.java:92) at us.codecraft.webmagic.Spider.processRequest(Spider.java:408) at us.codecraft.webmagic.Spider$1.run(Spider.java:322) at us.codecraft.webmagic.selector.thread.CountableThreadPool$1.run(CountableThreadPool.java:74) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
The text was updated successfully, but these errors were encountered:
刚开始用WebMagic
按照 http://webmagic.io/docs/zh/ 教程上试第一个爬虫的例子
出现错误,但是我在maven中添加了guava 15.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:771) 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:63) at us.codecraft.webmagic.downloader.HttpClientDownloader.download(HttpClientDownloader.java:92) at us.codecraft.webmagic.Spider.processRequest(Spider.java:408) at us.codecraft.webmagic.Spider$1.run(Spider.java:322) at us.codecraft.webmagic.selector.thread.CountableThreadPool$1.run(CountableThreadPool.java:74) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
The text was updated successfully, but these errors were encountered: