tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47933] New: lost request body while posted parameters occassionly
Date Fri, 02 Oct 2009 08:04:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47933

           Summary: lost request body while posted parameters occassionly
           Product: Tomcat 5
           Version: 5.5.27
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sesfei@gmail.com


hi, all

i have a bug occassionly with tomcat 5.5.27 + linux + Ajax . that is happended
while Client(IE) post request to Tomcat with port 8080, then tomcat lost the
http body while parse the request parameters .

pick the org.apache.catalina.connector.Request.java source that's method of
readPostBody() what gets the length of 0. for the reason , tomcat is hunging
after 20 seconds.

after ajax get errors with json. the error message shows on IE7.
by the way, prototype.js go to Onfilure while parse ie's return-code
beyonds(200 - 299).


following is server.xml in tomcat setting.
================================================================================
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
================================================================================

following is log
================================================================================
2009-10-01 20:25:10,860 WARN  [http-8080-Processor23] [/***]         -
Exception thrown whilst processing POSTed parameters
java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:777)
    at
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:807)
    at
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
    at
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:742)
    at org.apache.coyote.Request.doRead(Request.java:419)
    at
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:270)
    at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
    at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:293)
    at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
    at org.apache.catalina.connector.Request.readPostBody(Request.java:2420)
    at org.apache.catalina.connector.Request.parseParameters(Request.java:2399)
    at
org.apache.catalina.connector.Request.getParameterNames(Request.java:1047)
    at
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:369)
    at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:459)
    at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
    at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at jp.co.tzs.web.action.TzsActionServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at jp.co.tzs.web.common.TzsCharacterEncodingFilter.doFilter(Unknown Source)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
    at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:595)
================================================================================

please help me!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message