tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duane Morse <>
Subject RE: IllegalStateException: Short Read while trying to do forward( )
Date Tue, 19 Dec 2000 23:17:13 GMT
This is probably the same error I reported a couple of weeks ago, though in
my case
the error was occurring before the servlet container tried compiling a JSP.
My servlet
already processed the POST data, but the servlet container tried to re-read
the data
in preparation to hand the request to the JSP, and there was, of course,
nothing to read.
This is a fundamental problem (since doing the same thing with a GET works),
and I've
not received a response.  I don't have this problem using Allaire's JRun.

-----Original Message-----
From: Jason C Jones []
Sent: Tuesday, December 19, 2000 10:09 AM
Subject: IllegalStateException: Short Read while trying to do forward()

I am running 3.2.1 in standalone mode and when I try to do a forward with a 
RequestDispatcher I get the following error:

going to /patient.jsp
res.isCommitted() = false
res.getBufferSize() = 8192
2000-12-19 04:53:48 - Ctx( /nativeweb ): Exception in: R( /nativeweb +
jsp + null) - java.lang.IllegalArgumentException: Short Read
        at javax.servlet.http.HttpUtils.parsePostData(

Note the two debugging lines above the exception.  According to the specs,
IllegalArgumentException is thrown when the response is already committed, 
which it is not as you can see.

Is this a bug?  The servlet in question uses HttpUtil.parsePostData to read
post data and inflate a bean.  It then puts the bean into the session object

and tries to redirect to a jsp for display.  

Anyone have any ideas?



Jason C. Jones

View raw message