1 Reply Latest reply on Dec 30, 2010 3:32 AM by Jean-Frederic Clere

    java.net.SocketTimeoutException: Read timed out in servlet -> cause ?

    Jurgen Van Bouchaute Newbie

      2010-12-21 00:09:41,731 INFO  [STDOUT] java.net.SocketTimeoutException: Read timed out
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.net.SocketInputStream.socketRead0(Native Method)
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.coyote.Request.doRead(Request.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.io.BufferedInputStream.fill(BufferedInputStream.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.io.BufferedInputStream.read(BufferedInputStream.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.util.zip.CheckedInputStream.read(CheckedInputStream.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java(Inlined Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at com.amadeus.ace.messenger.Messenger.unCompress(Unknown Source)
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at com.amadeus.ace.messenger.Messenger.doPost(Unknown Source)
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java(Compiled Code))
      2010-12-21 00:09:41,731 INFO  [STDOUT]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java(Compiled Code))
      2010-12-21 00:09:41,732 INFO  [STDOUT]      at java.lang.Thread.run(Thread.java:571)

      Hi,

       

      we are facing following error sometimes in our servlet implementation when consuming post requests with content-encoding="gzip"

      JBOSS 4.0.3SP1 on AIX 6.1 , JDK 1.4.2

       

      We can consume the HTTP header, but when accessing the HttpServletRequest.getInputStream() method : it fails...

      What elements could I check to troubleshoot this error ?

      Tomcat timeout is set to 20sec.

      Is this a pure network error or could this be related to our implementation / JBOSS or tomcat config or bug ?

       

      2010-12-21 00:09:41,731 INFO  [STDOUT] java.net.SocketTimeoutException: Read timed out

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.net.SocketInputStream.socketRead0(Native Method)

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.net.SocketInputStream.read(SocketInputStream.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.coyote.Request.doRead(Request.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.io.BufferedInputStream.fill(BufferedInputStream.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.io.BufferedInputStream.read(BufferedInputStream.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.util.zip.CheckedInputStream.read(CheckedInputStream.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java(Inlined Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at com.myapp.ace.messenger.Messenger.unCompress(Unknown Source)

      2010-12-21 00:09:41,731 INFO  [STDOUT] at com.myapp.ace.messenger.Messenger.doPost(Unknown Source)

      2010-12-21 00:09:41,731 INFO  [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java(Compiled Code))

      2010-12-21 00:09:41,731 INFO  [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java(Compiled Code))

      2010-12-21 00:09:41,732 INFO  [STDOUT] at java.lang.Thread.run(Thread.java:571)

       

      Thx.

       

      Jurgen.