[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    request.getReader() hanging
From:       chris.karema () omiris ! net
Date:       2002-05-31 17:20:46
[Download RAW message or body]


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.
**********************************************************************


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic