You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rossen Raykov <Ro...@CognicaseUSA.com> on 2002/06/03 19:07:35 UTC
RE: request.getReader() hanging
Can you reproduce it?
Does it utilize the whole available CPU?
Rossen
> -----Original Message-----
> From: chris.karema@omiris.net [mailto:chris.karema@omiris.net]
> Sent: Friday, May 31, 2002 1:21 PM
> To: tomcat-user@jakarta.apache.org
> Subject: request.getReader() hanging
>
>
> hi all
> recently upgraded, or attempted to upgrade, to tomcat 4.0.3,
> but have hit a
> brick wall.i had a servlet with the following code snippet
> running perfectly
> fine in 3.2.3 but it's not having any of it with tomcat 4.0.3
>
> BufferedReader br = request.getReader();
> String line = null;
> StringBuffer envelope = new StringBuffer();
> while ((line = br.readLine()) != null) {
> envelope.append(line);
> }
> br.close();
>
> I'm basically sending through a stream of xml data and trying
> to read it in
> the servlet's post method. What happens is when it gets to
> the readLine()
> method above, it just hangs forever.
> Trying to read just one character with a simple read()
> produces the same
> behaviour.
> I've checked the request.content-length and it indicates the
> data is there.
> No exceptions are thrown or anything. I'm not reading any
> parameters from
> the request object beforehand either.
>
> Running Apache 1.3, Tomcat 4.0.3, Solaris 8, with mod_jk
>
> I've read and adhered to the Servlet API Specification,
> version 2.2, section
> 5.1, as a previous post about a similar problem suggested,
> but still no joy
>
> please help
> cheers
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> postmaster@omiris.net.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> **********************************************************************
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>