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" org.apache.hadoop.security.AccessControlException: Permission deniedUseExceptionthreadAIApacheHadoop
- Exception in thread “main” 終極解決方案ExceptionthreadAI
- Exception in thread "main" java.lang.NullPointerException: Cannot invokeExceptionthreadAIJavaNull
- jmeter報錯“Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]“JMeterExceptionthreadAI
- Java報錯:Exception in thread "main" java.lang.UnsupportedClassVersionErrorJavaExceptionthreadAIError
- 報錯:nested exception is java.lang.NoClassDefFoundError: org/fusesource/hawtbuf/UTF8BufferExceptionJavaError
- Appcrawler 執行報錯 Exception in thread "main" java.lang.NullPointerExceptionAPPExceptionthreadAIJavaNull
- { “code”: “-1”, “msg”: “nested exception is org.apache.ibatis.exceptions.TooManyResultsException: ExExceptionApacheBATOOM
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">報錯HTTPMavenApache
- spark讀取hive異常,java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunningSparkHiveJavaErrorApacheAPISession
- 解決:Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.ExceptionthreadAIJavaElasticsearch
- Exception in thread “main“ java.lang.ArrayStoreException解決方案(記錄一下)ExceptionthreadAIJava
- 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
- is java.lang.NoClassDefFoundError: org/springframework/dao/support/DaoSupport錯誤原因JavaErrorSpringFramework
- fabric sdk : org.hyperledger.fabric.sdk.exception.ProposalExceptionException
- org.apache.shiro.authc.UsernamePasswordTokenApache
- Exception in thread “main” com.sun.xml.internal.ws.model.RuntimeModelerException: 必須在沒有程式包的類上指定 @WebService.targetNamespace。ExceptionthreadAIXMLWebnamespace
- HTTP、Socket與TCPHTTPTCP
- org.hibernate.exception.SQLGrammarException: could not extract ResultSet解決方案ExceptionSQL
- Maven-org.apache.ibatis.binding.BindingExceptionMavenApacheBATException
- lscpu中的 socket、core、thread的意義thread
- org.apache.jasper.JasperException: Unable to compile class for JSPApacheExceptionCompileJS
- TCP/IP、HTTP和Socket總結TCPHTTP
- Socket連線和Http連線HTTP
- java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileItemFactoryJavaExceptionApache
- org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found.ApacheBATException
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)ApacheBATException
- 解決org.apache.ibatis.binding.BindingException: Invalid boundApacheBATException
- java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilterJavaExceptionApacheWebXMLFilter
- 2020-10-29 org.apache.commons.lang3.StringUtilsApache
- No serializer found for class org.apache.ibatis.executor.loader.javassist.JavassistProxyFactory...ApacheBATJava
- org.apache.coyote.AbstractProtocol.destroy Failed to destroy end point associated with ProtocolHandlApacheProtocolAI
- org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipeApacheclientExceptionJava
- IgniteFAQ-8-org.apache.ignite.IgniteException: Failed to unmarshal discovery custom messageApacheExceptionAI
- Java:org.apache.commons.beanutils.BeanUtils拷貝物件屬性JavaApacheBean物件
- WebSocket於HTTP 、WebSocket與Socket的區別WebHTTP
- go socket、http網路程式設計demoGoHTTP程式設計