org.apache.catalina.connector.ClientAbortException: java.io.IOException: 您的 主机中的软件中止了一个已建立的连接。

解决办法请直接看最下面。

org.apache.catalina.connector.ClientAbortException: java.io.IOException: 您的

主机中的软件中止了一个已建立的连接。
at org.apache.catalina.connector.OutputBuffer.realWriteBytes

(OutputBuffer.java:396)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer

(ByteChunk.java:426)
at org.apache.catalina.connector.OutputBuffer.doFlush

(OutputBuffer.java:345)
at org.apache.catalina.connector.OutputBuffer.flush

(OutputBuffer.java:320)
at org.apache.catalina.connector.CoyoteOutputStream.flush

(CoyoteOutputStream.java:110)
at javax.imageio.stream.MemoryCacheImageOutputStream.flushBefore

(MemoryCacheImageOutputStream.java:194)
at javax.imageio.stream.MemoryCacheImageOutputStream.close

(MemoryCacheImageOutputStream.java:180)
at javax.imageio.ImageIO.write(ImageIO.java:1580)
at com.google.code.kaptcha.servlet.KaptchaServlet.doGet

(KaptchaServlet.java:100)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter

(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter

(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter

(ApplicationFilterChain.java:207)
at com.ultrapower.sensor.common.security.XSSSecurityFilter.doFilter

(XSSSecurityFilter.java:124)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter

(ApplicationFilterChain.java:207)
at com.ultrapower.iam.common.web.cryption.CryptionFilter.doFilter

(CryptionFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter

(ApplicationFilterChain.java:207)
at com.ultrapower.sensor.common.filter.EncodingFilter.doFilter

(EncodingFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter

(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter

(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke

(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke

(StandardContextValve.java:94)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke

(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke

(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke

(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke

(AbstractAccessLogValve.java:620)
at org.apache.catalina.core.StandardEngineValve.invoke

(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service

(CoyoteAdapter.java:502)
at org.apache.coyote.http11.AbstractHttp11Processor.process

(AbstractHttp11Processor.java:1132)
at org.apache.coyote.AbstractProtocol

AbstractConnectionHandler.process(AbstractProtocol.java:684)atorg.apache.tomcat.util.net.NioEndpoint SocketProcessor.doRun

(NioEndpoint.java:1539)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run

(NioEndpoint.java:1495)
at java.util.concurrent.ThreadPoolExecutor.runWorker

(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run

(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run

(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: 您的主机中的软件中止了一个已建立的连接。
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:487)
at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:124)
at org.apache.tomcat.util.net.NioBlockingSelector.write

(NioBlockingSelector.java:101)
at org.apache.tomcat.util.net.NioSelectorPool.write

(NioSelectorPool.java:172)
at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

(InternalNioOutputBuffer.java:140)
at org.apache.coyote.http11.InternalNioOutputBuffer.flushBuffer

(InternalNioOutputBuffer.java:245)
at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB

(InternalNioOutputBuffer.java:190)
at org.apache.coyote.http11.InternalNioOutputBuffer.access$000

(InternalNioOutputBuffer.java:42)
at org.apache.coyote.http11.InternalNioOutputBuffer

$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:321)
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite

(ChunkedOutputFilter.java:116)
at org.apache.coyote.http11.AbstractOutputBuffer.doWrite

(AbstractOutputBuffer.java:256)
at org.apache.coyote.Response.doWrite(Response.java:491)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes

(OutputBuffer.java:391)
… 40 more

解决办法:
是tomcat版本问题。
我用的是8.0.47 改成 8.5.23 就好了。
百度了好久好久 都没有解决 。 没想到是版本的问题。。。。

你可能感兴趣的:(总结)