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
- 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
- 解決Tomcat啟動報錯問題:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- SVN報錯“Failed to run the WC DB work queue associated with”解決辦法AI
- end-to-end delay proof
- study critical point and saddle point using Hessian Matrix
- clipboard.destroy報錯
- 如何理解端到端(end-to-end)?
- 淺談 Objective-C Associated ObjectsObject
- cannot access local variable where it is not associated with a value
- TC - front end
- 【坑】Tkinter ‘NoneType‘ object has no attribute ‘destroy‘NoneObject
- 《REBEL Relation Extraction By End-to-end Language generation》閱讀筆記筆記
- 論文閱讀:End to End Chinese Lexical Fusion Recognition with Sememe Knowledge
- 13.there is no action mapped for namespace and action name associated with contAPPnamespace
- 如何理解深度學習領域中的端到端 (end to end)深度學習
- 安裝centOS虛擬機器提示Section %Packages Does Not End With %EndCentOS虛擬機Package
- SampleNet: Differentiable Point Cloud SamplingCloud
- 論文翻譯:Extracting Relational Facts by an End-to-End Neural Model with Copy Mechanism
- Leetcode 2453. Destroy Sequential Targets | rust 實現LeetCodeRust
- Newline required at end of file but not foundUI
- where to start, from where the end
- Sparse R-CNN: End-to-End Object Detection with Learnable Proposals 論文解讀CNNObject
- The_C_Language cpt1_end && Jav_How_2_Program 2.2_end
- 目標檢測 - Sparse R-CNN: End-to-End Object Detection with Learnable ProposalsCNNObject
- CF685C Optimal Point
- OpenCV(logPolar()、Point2f())OpenCV
- RFN-Nest_ An end-to-end residual fusion network for infrared and visible images 論文解讀
- WPF ListBox acted as thumbnail pictures container and associated with another image control and interactAI
- laravel中delete()方法和destroy()方法的區別Laraveldelete
- Terraform入門 – 4. destroy 基礎設施ORM
- Solaris syntax error: unexpected end of fileError
- SQL Server CASE WHEN ... THEN ... ELSE ... ENDSQLServer
- Madden NFL 22: Tight End Ratings
- 論文翻譯:2020_WaveCRN: An efficient convolutional recurrent neural network for end-to-end speech enhancement
- Sparse R-CNN: End-to-End Object Detection with Learnable Proposals - 論文閱讀翻譯CNNObject
- PostgreSQL DBA(19) - REDO point淺析SQL