简体   繁体   中英

Exception in thread “Thread-3” java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultRedirectStrategy.<init>([Ljava/lang/String;)V

I am using the JDK 1.8 and Twilio 8.17.0 and HttpClient 4.5.12 and I am still experiencing the same issue. Please help me.

Exception in thread "Thread-3" java.lang.NoSuchMethodError: org.apache.http.impl.client.DefaultRedirectStrategy.([Ljava/lang/String;)V

If you look at the Javadoc for that constructor ( https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/impl/client/DefaultRedirectStrategy.html#DefaultRedirectStrategy(java.lang.String[]) ) it says Since 4.5.10 .

While you compiled against 4.5.12, I suspect that you are running with a different version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question Caused by: java.lang.NoSuchMethodError: org.apache.solr.client.solrj.impl.HttpSolrClient.<init>(Ljava/lang/String;)V Exception in thread “AWT-EventQueue-0” java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.put(Ljava/lang/Object;)V Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.getPassword(Ljava/lang/String;)[C java.lang.NoSuchMethodError: org.apache.xerces.impl.xpath.regex.RegularExpression.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale; Exception in thread “main” java.lang.NoSuchMethodError: org.jboss.resteasy.util.CaseInsensitiveMap.add(Ljava/lang/String;Ljava/lang/Object;)V java.lang.NoSuchMethodError: org.apache.zookeeper.ZooKeeper.<init>(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)V java.lang.NoSuchMethodError: org/apache/http/conn/scheme/Scheme.<init>(Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V Exception in thread “AWT-EventQueue-0” java.lang.NoSuchMethodError: org.apache.poi.util.POILogger.log(I[Ljava/lang/Object;)V java.lang.NoSuchMethodError: org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(Ljava/io/InputStream;)V Exception in thread “main” java.lang.NoSuchMethodError: org.hibernate.cfg.Environment.verifyProperties(Ljava/util/Map;)V
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM