This question already has answers here:
android An established connection was aborted by the software in your host machine

(2个答案)


去年关闭。




我对远程服务器执行一个servlet调用时,经常会收到此错误。

运行Java application1,用很少的数据调用servlet对application2的调用。应用程序2必须返回一些数据。但是我经常在返回响应作为ObjectOutputStream时遇到application2中的错误,有时它可以正常工作。我正在使用tomcat 8。
org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
15:45:44:776 PM     at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:393)
15:45:44:776 PM     at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426)
15:45:44:776 PM     at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:339)
15:45:44:776 PM     at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:418)
15:45:44:776 PM     at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:406)
15:45:44:776 PM     at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:97)
15:45:44:776 PM     at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
15:45:44:776 PM     at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source)
15:45:44:776 PM     at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
15:45:44:776 PM     at java.io.ObjectOutputStream.writeObject(Unknown Source)
15:45:44:776 PM     at com.me.opmanager.extranet.remote.communication.fw.fe.RegionalListener.doPost(RegionalListener.java:87)
15:45:44:776 PM     at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
15:45:44:776 PM     at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:45:44:776 PM     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:45:44:776 PM     at com.adventnet.netflow.filters.NFACredentialFilter.doFilter(NFACredentialFilter.java:29)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:45:44:776 PM     at com.adventnet.authentication.filter.AssociateCredential.doFilter(AssociateCredential.java:43)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:45:44:776 PM     at com.adventnet.nms.webclient.login.NTLMV2CredentialAssociationFilter.doFilter(NTLMV2CredentialAssociationFilter.java:37)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:45:44:776 PM     at com.adventnet.nms.webclient.login.NTLMV2Filter.doFilter(NTLMV2Filter.java:108)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
15:45:44:776 PM     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:45:44:776 PM     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
15:45:44:776 PM     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
15:45:44:776 PM     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
15:45:44:776 PM     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
15:45:44:776 PM     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
15:45:44:776 PM     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
15:45:44:776 PM     at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:240)
15:45:44:776 PM     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
15:45:44:776 PM     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
15:45:44:776 PM     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
15:45:44:776 PM     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
15:45:44:776 PM     at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
15:45:44:776 PM     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
15:45:44:776 PM     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
15:45:44:776 PM     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
15:45:44:776 PM     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
15:45:44:776 PM     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
15:45:44:776 PM     at java.lang.Thread.run(Unknown Source)
15:45:44:776 PM Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
15:45:44:776 PM     at sun.nio.ch.SocketDispatcher.write0(Native Method)
15:45:44:776 PM     at sun.nio.ch.SocketDispatcher.write(Unknown Source)
15:45:44:776 PM     at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
15:45:44:776 PM     at sun.nio.ch.IOUtil.write(Unknown Source)
15:45:44:776 PM     at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
15:45:44:776 PM     at org.apache.tomcat.util.net.NioChannel.write(NioChannel.java:127)
15:45:44:776 PM     at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:101)
15:45:44:776 PM     at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:173)
15:45:44:776 PM     at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:139)
15:45:44:776 PM     at org.apache.coyote.http11.InternalNioOutputBuffer.flushBuffer(InternalNioOutputBuffer.java:244)
15:45:44:776 PM     at org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:189)
15:45:44:776 PM     at org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
15:45:44:776 PM     at org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:320)
15:45:44:776 PM     at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:116)
15:45:44:776 PM     at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:256)
15:45:44:776 PM     at org.apache.coyote.Response.doWrite(Response.java:503)
15:45:44:776 PM     at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:388)
15:45:44:776 PM     ... 47 more

最佳答案

问题似乎出在运行“application2”的服务器上。

我能想到的最好原因是防火墙/防病毒软件(暂时禁用以进行测试)正在干扰。

一些搜索似乎建议将多个应用程序绑定到该端口(特别是两个IDE),检查您的进程和/或重新启动服务器(Web服务器或主机)。但是,我不确定这怎么可能,除非他们使用UDP而不是TCP。

10-04 11:00