Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnec
問題:
Exception in thread "main" java.lang.NoClassDefFoundError:org/apache/http/conn/socket/LayeredConnectionSocketFactory
at com.gsww.customer.OrderConsumer.main(OrderConsumer.java:134)
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.socket.LayeredConnectionSocketFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
**解決:1**
![在這裡插入圖片描述](https://img-blog.csdnimg.cn/20201104152932997.png#pic_center)
解決:2
降低springboot版本
具體還沒分析,先記錄一下
相關文章
- Exception in thread "main" java.lang.NoClassDefFoundErrorExceptionthreadAIJavaError
- Exception in thread "main" org.apache.hadoop.security.AccessControlException: Permission deniedUseExceptionthreadAIApacheHadoop
- Exception in thread "main" java.lang.NoClassDefFoundError錯誤資訊(轉帖)ExceptionthreadAIJavaError
- oracle dbca報Exception in thread mainOracleExceptionthreadAI
- Exception in thread "main" java.lang.UnsupportedClassVersionError:ExceptionthreadAIJavaError
- Exception in thread “main” 終極解決方案ExceptionthreadAI
- 遭遇java.lang.NoClassDefFoundError:org/apache/tomcat/PeriodicEventListenerJavaErrorApacheTomcat
- java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSessionFactoryJavaErrorApacheBATSessionSQL
- Exception in thread "main" java.lang.NullPointerException: Cannot invokeExceptionthreadAIJavaNull
- 【原】MyEclipse8.5整合Tomcat7時啟動錯誤:Exception in thread “main” java.lang.NoClassDefFoundErrorEclipseTomcatExceptionthreadAIJavaError
- 請問錯誤提示Exception in thread "main" java.lang.NoClassDefFoundError是否是環境變數的配置問題ExceptionthreadAIJavaError變數
- Java報錯:Exception in thread "main" java.lang.UnsupportedClassVersionErrorJavaExceptionthreadAIError
- Exception in thread "main" java.lang.ClassCastException: $Proxy13ExceptionthreadAIJavaAST
- jmeter報錯“Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]“JMeterExceptionthreadAI
- myeclipse中傳送郵件出現Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStreamEclipseExceptionthreadAIJavaError
- 報錯:nested exception is java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8BufferExceptionJavaError
- Http11: org.apache.coyote.http11HTTPApache
- Coyote for Http11: org.apache.coyote.http11HTTPApache
- Appcrawler 執行報錯 Exception in thread "main" java.lang.NullPointerExceptionAPPExceptionthreadAIJavaNull
- oracle dbca報Exception in thread main 問題解決一例OracleExceptionthreadAI
- Exception in thread “main“ java.lang.ArrayStoreException解決方案(記錄一下)ExceptionthreadAIJava
- Oracle 11g 安裝RAC時報錯'Exception in thread "main" java.lang'OracleExceptionthreadAIJava
- Exception in thread "main" java.lang.UnsatisfiedLinkError: i386/libawt.soExceptionthreadAIJavaError
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">報錯HTTPMavenApache
- { “code”: “-1”, “msg”: “nested exception is org.apache.ibatis.exceptions.TooManyResultsException: ExExceptionApacheBATOOM
- spark讀取hive異常,java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunningSparkHiveJavaErrorApacheAPISession
- Java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解決方案JavaErrorApache
- 解決:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.ExceptionthreadAIJavaElasticsearch
- Exception in thread "main" ,設定Oracle9i,10g環境變數ExceptionthreadAIOracle變數
- Exception from container-launch: org.apache.hadoop.util.Shell$ExitCodeExceptionExceptionAIApacheHadoop
- java.lang.NoClassDefFoundError: org/json/JSONObjectJavaErrorJSONObject
- 匯出Excel過程中遇到的問題java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlExceptionExcelJavaErrorApacheXMLBeanException
- myeclipse執行tomcat報錯Exception in thread "main" java.lang.OutOfMemoryError: PermGen space...EclipseTomcatExceptionthreadAIJavaError
- HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGramHTTPAIExceptionSpringFrameworkJDBCSQL
- org.apache.commons.lang.exception包的ExceptionUtils工具類獲取getFullStackTraceApacheException
- http://responsiveimages.org/HTTP
- 為何在JBoss中釋出Message-Driven Bean總出Exception in thread "main" javax.naming.NamBeanExceptionthreadAIJava
- fabric sdk : org.hyperledger.fabric.sdk.exception.ProposalExceptionException