tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Pocklington <...@pocko.freeserve.co.uk>
Subject SSL shutdown after socket write error
Date Fri, 21 May 2004 15:09:00 GMT
Hi,

I am developing a couple of web apps and have been getting the following 
exceptions appear in the log file:

java.net.SocketException: Software caused connection abort: socket write 
error

Until recently I have just been ignoring these errors as they didn't 
affect the functionality of the system.  However, I have just added an 
SSL connector to tomcat which works on my development server, but on the 
live  machine every time I get one of these exceptions over a secure 
connection, the SSL connector is apparently shutdown as no further 
requests to https://.... respond.  I have to restart Tomcat and then it's 
up for a very short time until the expection is thrown again.

The exceptions seem to occur when navigating through pages quickly (not 
waiting for them to load entirely).  I'm not worried about stopping the 
exceptions occuring just stopping the secure connection from going down.

Any help would be greatly appreciated.

The error in the log file is:

2004-05-21 10:19:42 ErrorDispatcherValve[localhost]: Exception Processing 
ErrorPage[errorCode=404, location=/error/404.do]

OR 

2004-05-21 15:30:59 StandardWrapperValve[default]: Servlet.service() for 
servlet default threw exception

Followed by the same exception:

javax.net.ssl.SSLException: Connection has been shutdown: 
javax.net.ssl.SSLException: java.net.SocketException: Software caused 
connection abort: socket write error
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.e(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
	at org.apache.coyote.http11.InternalOutputBuffer
$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
	at org.apache.coyote.http11.InternalOutputBuffer.doWrite
(InternalOutputBuffer.java:521)
	at org.apache.coyote.Response.doWrite(Response.java:524)
	at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes
(OutputBuffer.java:384)
	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer
(ByteChunk.java:360)
	at org.apache.coyote.tomcat4.OutputBuffer.flush
(OutputBuffer.java:345)
	at org.apache.coyote.tomcat4.CoyoteResponse.flushBuffer
(CoyoteResponse.java:555)
	at org.apache.coyote.tomcat4.CoyoteResponseFacade.flushBuffer
(CoyoteResponseFacade.java:227)
	at org.apache.catalina.valves.ErrorDispatcherValve.status
(ErrorDispatcherValve.java:307)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:180)
	at org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline
$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:432)
	at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:534)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:534)
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Software 
caused connection abort: socket write error
	at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
	at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
	at org.apache.coyote.http11.InternalOutputBuffer
$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
	at org.apache.coyote.http11.InternalOutputBuffer.doWrite
(InternalOutputBuffer.java:521)
	at org.apache.coyote.Response.doWrite(Response.java:524)
	at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes
(OutputBuffer.java:384)
	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer
(ByteChunk.java:360)
	at org.apache.coyote.tomcat4.OutputBuffer.flush
(OutputBuffer.java:345)
	at org.apache.coyote.tomcat4.CoyoteWriter.flush
(CoyoteWriter.java:119)
	at org.apache.jasper.runtime.JspWriterImpl.flush
(JspWriterImpl.java:209)
	at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:817)
	at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
	at org.apache.jsp.versatileLayout_jsp._jspx_meth_tiles_get_5
(versatileLayout_jsp.java:293)
	at org.apache.jsp.versatileLayout_jsp._jspService
(versatileLayout_jsp.java:107)
	at org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:204)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:684)
	at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:432)
	at org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:356)
	at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1033)
	at org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:269)
	at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition
(TilesRequestProcessor.java:249)
	at 
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForwa
rd(TilesRequestProcessor.java:333)
	at org.apache.struts.action.RequestProcessor.processForward
(RequestProcessor.java:563)
	at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:260)
	at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
	at org.apache.struts.action.ActionServlet.doGet
(ActionServlet.java:505)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:684)
	at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:432)
	at org.apache.catalina.core.ApplicationDispatcher.forward
(ApplicationDispatcher.java:356)
	at org.apache.catalina.valves.ErrorDispatcherValve.custom
(ErrorDispatcherValve.java:391)
	at org.apache.catalina.valves.ErrorDispatcherValve.status
(ErrorDispatcherValve.java:305)
	... 16 more
Caused by: java.net.SocketException: Software caused connection abort: 
socket write error
	at java.net.SocketOutputStream.socketWrite0(Native Method)
	at java.net.SocketOutputStream.socketWrite
(SocketOutputStream.java:92)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
	at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
	... 54 more



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message