java.net.SocketTimeoutException: Read timed out

Home

XML & Web services: java.net.SocketTimeoutException: Read timed out

  1. java.net.SocketTimeoutException: Read timed out (2 messages)

    I have a webapp on WebLogic 8.1 SP1 and I get the following exception (Has anyone seen thsi before?):

    <Sep 27, 2004 4:37:22 AM EDT> <Error> <HTTP Session> <BEA-100060> <An unexpected error occurred while retrieving the session for Web application: ServletContext(id=20858451,name=myWebApp,context-path=/myWebApp).
    java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at java.net.SocketInputStream.read(SocketInputStream.java:182)
    at weblogic.utils.io.ChunkedInputStream.read(ChunkedInputStream.java:122)
    at com.certicom.tls.record.Util.readUInt8(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.read(Unknown Source)
    at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:170)
    at weblogic.servlet.internal.ServletInputStreamImpl$1.read(ServletInputStreamImpl.java:115)
    at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:180)
    at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletRequestImpl.java:1246)
    at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(ServletRequestImpl.java:1113)
    at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:1324)
    at weblogic.servlet.internal.ServletRequestImpl.initSessionInfo(ServletRequestImpl.java:2408)
    at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:2127)
    at weblogic.servlet.security.internal.SecurityModule$SessionRetrievalAction.run(SecurityModule.java:633)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:608)
    at weblogic.servlet.security.internal.SecurityModule.beginCheck(SecurityModule.java:153)
    at weblogic.servlet.security.internal.BasicSecurityModule.checkA(BasicSecurityModule.java:46)
    at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:145)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3525)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/myWebApp/index.jsp' - with nested exception:
    [java.net.SocketTimeoutException: Read timed out]
    at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletRequestImpl.java:1277)
    at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(ServletRequestImpl.java:1113)
    at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:1324)
    at weblogic.servlet.internal.ServletRequestImpl.initSessionInfo(ServletRequestImpl.java:2408)
    at weblogic.servlet.internal.ServletRequestImpl.getSession(ServletRequestImpl.java:2127)
    at weblogic.servlet.security.internal.SecurityModule$SessionRetrievalAction.run(SecurityModule.java:633)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:608)
    at weblogic.servlet.security.internal.SecurityModule.beginCheck(SecurityModule.java:153)
    at weblogic.servlet.security.internal.BasicSecurityModule.checkA(BasicSecurityModule.java:46)
    at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:145)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3525)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    <Sep 27, 2004 4:37:22 AM EDT> <Error> <HTTP> <BEA-101020> <[ServletContext(id=20858451,name=myWebApp,context-path=/webDTI)] Servlet failed with Exception
    java.lang.IllegalStateException: Failed to retrieve session
    at weblogic.servlet.security.internal.SecurityModule.getUserSession(SecurityModule.java:612)
    at weblogic.servlet.security.internal.SecurityModule.beginCheck(SecurityModule.java:153)
    at weblogic.servlet.security.internal.BasicSecurityModule.checkA(BasicSecurityModule.java:46)
    at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:145)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3525)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
  2. I'm seeing something similar to this. Are you mixing GET parameters and POST parameters? That is, are you submitting a form using the POST method and appending additional parameters within the action attribute of the form?

     <form action="../test?action=doThis" method="POST">
       <!-- input fields here -->
     </form>
  3. Caused by Double-Submit[ Go to top ]

    Never mind what I was asking about in my last post; I found in my case that I was submitting the form twice using JavaScript.