code4craft / webmagic

A scalable web crawler framework for Java.
http://webmagic.io/
Apache License 2.0
11.44k stars 4.18k forks source link

Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE #1165

Open fuli66 opened 5 months ago

fuli66 commented 5 months ago

Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:146) at us.codecraft.webmagic.downloader.HttpClientGenerator.buildSSLConnectionSocketFactory(HttpClientGenerator.java:52) at us.codecraft.webmagic.downloader.HttpClientGenerator.<init>(HttpClientGenerator.java:44) at us.codecraft.webmagic.downloader.HttpClientDownloader.<init>(HttpClientDownloader.java:40) at us.codecraft.webmagic.Spider.initComponent(Spider.java:280) at us.codecraft.webmagic.Spider.run(Spider.java:305) at com.mufeng.spider.GithubRepoPageProcessor.main(GithubRepoPageProcessor.java:30)

sutra commented 5 months ago

Could you provide the output of mvn dependency:tree.