Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat: Exception thrown whilst processing POSTed parameters

Reply
Thread Tools

Tomcat: Exception thrown whilst processing POSTed parameters

 
 
govus
Guest
Posts: n/a
 
      07-25-2007
Hi folks,
I'm having a heck of a time trying to figure this out. I'm getting
the following exception frequently in my Tomcat logs. The exception
always seems to be thrown when I'm processing an AJAX request.

Could I be forgetting to do something on the client side? Is this a
problem with Tomcat? Could it be a problem with my code (unlikely as
that is... :-\ )? Any hints would be appreciated! Thanks!

Jeff

Windows Server 2003
Apache Tomcat 5.5.23
JRE 1.5, Update 12

=========================
WARNING: Exception thrown whilst processing POSTed parameters
java.io.IOException: Exception filling buffer with data from
underlying input stream: not an EAGAIN status, so perhaps disconnected
client?
at
org.apache.coyote.http11.InternalAprInputBuffer.fi ll(InternalAprInputBuffer.java:
825)
at org.apache.coyote.http11.InternalAprInputBuffer
$SocketInputBuffer.doRead(InternalAprInputBuffer.j ava:853)
at
org.apache.coyote.http11.filters.IdentityInputFilt er.doRead(IdentityInputFilter.java:
116)
at
org.apache.coyote.http11.InternalAprInputBuffer.do Read(InternalAprInputBuffer.java:
772)
at org.apache.coyote.Request.doRead(Request.java:419)
at
org.apache.catalina.connector.InputBuffer.realRead Bytes(InputBuffer.java:
265)
at org.apache.tomcat.util.buf.ByteChunk.substract(Byt eChunk.java:403)
at org.apache.catalina.connector.InputBuffer.read(Inp utBuffer.java:
280)
at
org.apache.catalina.connector.CoyoteInputStream.re ad(CoyoteInputStream.java:
193)
at org.apache.catalina.connector.Request.readPostBody (Request.java:
2400)
at org.apache.catalina.connector.Request.parseParamet ers(Request.java:
2379)
at org.apache.catalina.connector.Request.getParameter (Request.java:
1005)
at
org.apache.catalina.connector.RequestFacade.getPar ameter(RequestFacade.java:
353)
....
=========================

 
Reply With Quote
 
 
 
 
Manish Pandit
Guest
Posts: n/a
 
      07-26-2007
On Jul 25, 1:29 pm, govus <(E-Mail Removed)> wrote:
> Hi folks,
> I'm having a heck of a time trying to figure this out. I'm getting
> the following exception frequently in my Tomcat logs. The exception
> always seems to be thrown when I'm processing an AJAX request.
>
> Could I be forgetting to do something on the client side? Is this a
> problem with Tomcat? Could it be a problem with my code (unlikely as
> that is... :-\ )? Any hints would be appreciated! Thanks!
>
> Jeff
>
> Windows Server 2003
> Apache Tomcat 5.5.23
> JRE 1.5, Update 12
>
> =========================
> WARNING: Exception thrown whilst processing POSTed parameters
> java.io.IOException: Exception filling buffer with data from
> underlying input stream: not an EAGAIN status, so perhaps disconnected
> client?
> at
> org.apache.coyote.http11.InternalAprInputBuffer.fi ll(InternalAprInputBuffer*.java:
> 825)
> at org.apache.coyote.http11.InternalAprInputBuffer
> $SocketInputBuffer.doRead(InternalAprInputBuffer.j ava:853)
> at
> org.apache.coyote.http11.filters.IdentityInputFilt er.doRead(IdentityInputFi*lter.java:
> 116)
> at
> org.apache.coyote.http11.InternalAprInputBuffer.do Read(InternalAprInputBuff*er.java:
> 772)
> at org.apache.coyote.Request.doRead(Request.java:419)
> at
> org.apache.catalina.connector.InputBuffer.realRead Bytes(InputBuffer.java:
> 265)
> at org.apache.tomcat.util.buf.ByteChunk.substract(Byt eChunk.java:403)
> at org.apache.catalina.connector.InputBuffer.read(Inp utBuffer.java:
> 280)
> at
> org.apache.catalina.connector.CoyoteInputStream.re ad(CoyoteInputStream.java*:
> 193)
> at org.apache.catalina.connector.Request.readPostBody (Request.java:
> 2400)
> at org.apache.catalina.connector.Request.parseParamet ers(Request.java:
> 2379)
> at org.apache.catalina.connector.Request.getParameter (Request.java:
> 1005)
> at
> org.apache.catalina.connector.RequestFacade.getPar ameter(RequestFacade.java*:
> 353)
> ...
> =========================


It is a disconnect - something fails between the browser->apache-
>tomcat. The class throwing exception is basically an inputstream

wrapper in tomcat to parse HTTP requests. Are you using something like
Scriptaculous or any standard Ajax framework for the communication, or
have you written something of your own? If latter, you might want to
try using Scriptaculous/Prototype and see if the error goes away.

-cheers,
Manish

 
Reply With Quote
 
 
 
 
govus
Guest
Posts: n/a
 
      07-27-2007
Hi Manish,
Thanks for your response. After much additional searching, I've
discovered that this is a bug with Tomcat 5.5.23. (http://
issues.apache.org/bugzilla/show_bug.cgi?id=40960). I upgraded to
Tomcat 6.0.13 and that solved the problem. Hope that helps someone.

Jeff

 
Reply With Quote
 
alexkrish@gmail.com
Guest
Posts: n/a
 
      07-31-2007
Hi Jeff,

Thanks for the response. I have a webapp which throws a similar
exception which is pasted below. I am using Tomcat 5.5.23.

WARNING: Exception thrown whilst processing POSTed parameters
java.io.IOException: Socket read failed
at org.apache.coyote.ajp.AjpAprProcessor.read(AjpAprP rocessor.java:
1035)
at
org.apache.coyote.ajp.AjpAprProcessor.readMessage( AjpAprProcessor.java:
1156)
at org.apache.coyote.ajp.AjpAprProcessor.receive(AjpA prProcessor.java:
108
at org.apache.coyote.ajp.AjpAprProcessor
$SocketInputBuffer.doRead(AjpAprProcessor.java:122 6)
at org.apache.coyote.Request.doRead(Request.java:419)
at
org.apache.catalina.connector.InputBuffer.realRead Bytes(InputBuffer.java:
265)
at org.apache.tomcat.util.buf.ByteChunk.substract(Byt eChunk.java:403)
at org.apache.catalina.connector.InputBuffer.read(Inp utBuffer.java:
280)
at
org.apache.catalina.connector.CoyoteInputStream.re ad(CoyoteInputStream.java:
193)
at org.apache.catalina.connector.Request.readPostBody (Request.java:
2400)
at org.apache.catalina.connector.Request.parseParamet ers(Request.java:
2379)
at org.apache.catalina.connector.Request.getParameter (Request.java:
1005)
at
org.apache.catalina.connector.RequestFacade.getPar ameter(RequestFacade.java:
353)
at
com.ea.zoho.server.action.forms.TemplateMgr.execut e(TemplateMgr.java:
2
at
org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:
484)
at
org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:
274)
at org.apache.struts.action.ActionServlet.process(Act ionServlet.java:
1482)
at org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:
525)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
at
org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:
269)
at
org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:
18
at
org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:
210)
at
org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:
174)
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.invok e(StandardEngineValve.java:
10
at
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:
151)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpA prProcessor.java:
444)
at org.apache.coyote.ajp.AjpAprProtocol
$AjpConnectionHandler.process(AjpAprProtocol.java: 472)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run( AprEndpoint.java:
1286)
at java.lang.Thread.run(Thread.java:619)

When exactly is this "socket read failed" thrown ? I have even tried
changing the maxPostSize to a maximum value, but in vain.
This exception seems to be thrown for each of the post request.

Please help me with some pointers to overcome this issue.

Thanks,
Alex

 
Reply With Quote
 
govus
Guest
Posts: n/a
 
      08-08-2007
Hi Alex,
Sorry it took me so long to get back to you. As best as I can figure
(and I'm no expert), the exception occurs when APR is parsing the
POSTed parameters. Did you install the Tomcat native library (\bin
\tcnative-1.dll)? I think not using the native library will solve the
problem. Something in there (I think) is causing the parse of the
POSTed parameters to fail. I'm not sure if you have to reinstall
Tomcat to get rid of the DLL or if you can just remove the file.

I have two servers, one running with the native library and one
without it. The one with the native library still has this exception
thrown (even after upgrading to Tomcat 6). I have not observed this
issue with the server running without the native library. That's my
best guess.

Jeff
P.S. - I just assumed you were using Windows. I don't think the
Tomcat native library is supplied for any other OS. If you're not
using Windows, then you can probably ignore everything I just said.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception of type 'System.Web.HttpUnhandledException' wasthrown.Exception has been thrown by the target of an invocation.System.WebSystem.Exception jobs ASP .Net 1 11-16-2007 05:57 PM
Exception processing message c0000013 parameters 75b6bf9c =?Utf-8?B?bGFycnk=?= Windows 64bit 0 05-26-2007 06:59 PM
Exception has been thrown by the target of invocation exception =?Utf-8?B?VmFs?= ASP .Net 0 06-08-2005 05:11 PM
Exception has been thrown by the target of invocation exception Val ASP .Net Security 0 06-08-2005 05:10 PM
Exception of type System.Exception was thrown Selen ASP .Net 0 05-28-2004 07:19 AM



Advertisments