idea2017中关闭tomcat出现Failed to destroy component错误

  今天刚开始写一个spring mvc的入门程序,一个显示hello world的页面,写完后,启动Tomcat正常,访问正常,各方面都很完美,然而。。。当我关闭Tomcat时却提示错了

21-Aug-2019 11:02:23.659 严重 [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to destroy component [Connector[HTTP/1.1-8080]]
	org.apache.catalina.LifecycleException: Protocol handler destroy failed
		at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1042)
		at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
		at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:546)
		at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
		at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:1067)
		at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:321)
		at org.apache.catalina.startup.Catalina.stop(Catalina.java:707)
		at org.apache.catalina.startup.Catalina.start(Catalina.java:668)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:498)
		at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
	Caused by: java.io.IOException: Thread signal failed
		at sun.nio.ch.NativeThread.signal(Native Method)
		at sun.nio.ch.ServerSocketChannelImpl.implCloseSelectableChannel(ServerSocketChannelImpl.java:292)
		at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234)
		at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)
		at org.apache.tomcat.util.net.NioEndpoint.doCloseServerSocket(NioEndpoint.java:355)
		at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:337)
		at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:1261)
		at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:684)
		at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1038)
		... 13 more
21-Aug-2019 11:02:23.661 信息 [main] org.apache.coyote.AbstractProtocol.destroy 正在摧毁协议处理器 ["ajp-nio-8009"]

首先我先查看idea配置的tomcat有没有问题,甚至还去看了start.sh和catalina.sh文件的内容,然而都没找到跟这个错误相关的内容,就一直google都没找到。

再然后就跑到stackoverflow里找,终于被我找到一个一模一样的错误:
https://stackoverflow.com/questions/55100193/tomcat-in-eclipse-when-shutdown-there-is-a-mistake
里面有提到另一个解决这个错误的页面:
在这里插入图片描述
ok,再点开这个页面,在页面的最后看到一句话:
在这里插入图片描述
法克!!!原来是我把VPN设置成全局模式了,当我把VPN修改为PAC自动模式时,Tomcat就可以正常关闭了!!!

找了好几个错误,竟是这个原因,写下来纪念一下吧。

  目前在运营一个个人公众号, 感兴趣的扫码关注吧, 一起成长.

你可能感兴趣的:(错误记录)