org.apache.coyote.AbstractProtocol.destroy Failed to destroy end point associated with ProtocolHandl
IDEA+maven+Tomcat
今天打包的war包,作為第二個版本,就把war包的名字換了以下,然後放在Tomcat上測試,結果就報了下面的錯誤
org.apache.coyote.AbstractProtocol.destroy Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:315)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:491)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:896)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:551)
at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:589)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:879)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
at org.apache.catalina.startup.Catalina.start(Catalina.java:645)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:349)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:483)
NullPointerException這個在Java中確實見的比較多,程式碼在打包之前是完全正常的,但是打包之後報了個空指標異常,很奇怪。
下面是我遇到的情況,博主也在網上找了一些,發現每個人的解決方式都不一樣,如果我們有緣,遇到的問題相同,歡迎解決問題之後點個贊!
問題在於tomcat目錄下的conf資料夾下的server.xml檔案中的配置
docBase="war包名"這裡由於我的版本迭代,包名自然發生了改變,而且為了防止衝突,0.0.1版本的war包已經被我刪了,所以才會報空指標異常,這裡修改成自己現在的war版本即可解決。
在tomcat8.0的版本上報的是空指標異常,但是在9.0的版本上是這樣
java.lang.IllegalArgumentException: 指定的主資源集 [E:\javaWeb\tomcat\apache-tomcat-9.0.33\webapps\miniapp-0.0.1-SNAPSHOT] 無效
at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:752)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:709)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
相關文章
- 嚴重: Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"] java.lang.NullPointAIProtocolJavaNull
- 解決啟動報錯:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]AIProtocol
- tomcat啟動出現錯誤:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- 解決啟動Tomcat報錯:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- tomocat 執行jsp檔案提示"Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]"JSAIProtocol
- 解決Tomcat啟動報錯問題:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- 關於Tomcat啟動報錯:Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]TomcatAIProtocolHTTP
- Failed to run the WC DB work queue associated with 錯誤的解決AI
- SVN報錯“Failed to run the WC DB work queue associated with”解決辦法AI
- OGG Replicat Failed Due To Check_point Table beingTruncatedAI
- 淺談Associated ObjectsObject
- end-to-end delay proof
- clipboard.destroy報錯
- 如何理解端到端(end-to-end)?
- RESTORE POINTREST
- jQuery end()jQuery
- HDU 4940 Destroy Transportation system(圖論)圖論
- 淺談 Objective-C Associated ObjectsObject
- PGA memory statistics associated view (103)View
- cannot access local variable where it is not associated with a value
- JavaScript some pointJavaScript
- study critical point and saddle point using Hessian Matrix
- Google釋出Chrome加密擴充套件End-To-EndGoChrome加密套件
- 如何實現 iOS 中的 Associated ObjectiOSObject
- Get the item a SharePoint workflow task is associated with
- 《REBEL Relation Extraction By End-to-end Language generation》閱讀筆記筆記
- 【坑】Tkinter ‘NoneType‘ object has no attribute ‘destroy‘NoneObject
- 安裝centOS虛擬機器提示Section %Packages Does Not End With %EndCentOS虛擬機Package
- 如何理解深度學習領域中的端到端 (end to end)深度學習
- Objective-C Associated Objects 的實現原理Object
- 論文閱讀:End to End Chinese Lexical Fusion Recognition with Sememe Knowledge
- Windows Embedded for Point of Service概述Windows
- laravel中delete()方法和destroy()方法的區別Laraveldelete
- Terraform入門 – 4. destroy 基礎設施ORM
- rbegin 和 end 區別
- AT NEW 和AT END OF的用法
- do |r| Ruby & Rails endAI
- AT NEW 和AT END OF的用法。