这似乎是一个著名的问题。但我找不到谷歌的简短答案。我有许多客户端通过 Apache 代理服务器连接到 Tomcat 服务器。有时,我在 tomcat 的 localhost 日志中看到此错误。我想知道可能的原因是什么。在什么时候,连接被“重置”了?我对环境的访问权限有限,因此无法使用工具检查连接。
java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:126)
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)
at org.apache.coyote.Response.doWrite(Response.java:560)
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:293)
at org.apache.catalina.connector.OutputBuffer.writeByte(OutputBuffer.java:399)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:77)
at com.caucho.hessian.io.HessianOutput.printString(HessianOutput.java:898)
at com.caucho.hessian.io.HessianOutput.writeString(HessianOutput.java:583)
at com.caucho.hessian.io.JavaSerializer$StringFieldSerializer.serialize(JavaSerializer.java:412)
at com.caucho.hessian.io.JavaSerializer.writeObject10(JavaSerializer.java:241)
at com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:221)
at com.caucho.hessian.io.HessianOutput.writeObject(HessianOutput.java:317)
at com.caucho.hessian.io.ArraySerializer.writeObject(ArraySerializer.java:69)
at com.caucho.hessian.io.HessianOutput.writeObject(HessianOutput.java:317)
at com.caucho.hessian.io.JavaSerializer$FieldSerializer.serialize(JavaSerializer.java:315)
at com.caucho.hessian.io.JavaSerializer.writeObject10(JavaSerializer.java:241)
at com.caucho.hessian.io.JavaSerializer.writeObject(JavaSerializer.java:221)
at com.caucho.hessian.io.ThrowableSerializer.writeObject(ThrowableSerializer.java:69)
at com.caucho.hessian.io.HessianOutput.writeObject(HessianOutput.java:317)
at com.caucho.hessian.io.HessianOutput.writeFault(HessianOutput.java:297)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:190)
at com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:109)
at org.springframework.remoting.caucho.Hessian2SkeletonInvoker.invoke(Hessian2SkeletonInvoker.java:94)
at org.springframework.remoting.caucho.HessianExporter.invoke(HessianExporter.java:142)
at org.springframework.remoting.caucho.HessianServiceExporter.handleRequest(HessianServiceExporter.java:70)
at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
谢谢