tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rossen Raykov <Rossen.Ray...@CognicaseUSA.com>
Subject RE: request.getReader() hanging
Date Mon, 03 Jun 2002 17:07:35 GMT
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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message