W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

Re: "BUG found !?" or "a question..." / was: Re: jigsaw 2.0.2 bug in servlet API !?

From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
Date: Tue, 06 Apr 1999 10:50:36 +0200
Message-Id: <3709CADB.49DF68EE@informatik.med.uni-giessen.de>
To: W3 Jigsaw Mailinglist <www-jigsaw@w3.org>

Hi !

----

Benoit Mahe wrote:

> flushStream is called only by ServletWrapper after the service method call,
> so the get method is done at this time.
>
> But, may be there could be a problem in some case, please add the line:
> out.flush();
> just before the reply.setContentLength(out.size());
>
> Could you try this and tell me if the bug is still there? If not could you
> check (by adding some trace) if out.size() is equals to the Content Length
> you specified in your servlet?

Tested, and the size printed in the debugging output looks ok.

Example:

-- snip --
JigsawHttpServletResponse: init
DownloadServlet: access from null@spiderman.informatik.med.uni-giessen.de
(141.50.227.118)
DownloadServlet: file requested: 'saxjava-1.0.zip'
DownloadServlet: sending '/home/gisburn/download/xml-stuff/saxjava-1.0.zip'
(application/octet-stream)
DownloadServlet: transfer of /home/gisburn/download/xml-stuff/saxjava-1.0.zip
(120250/120250) done.
JigsawHttpServletResponse: using serlvet given length: 120250 (sending 120250 bytes).
JigsawHttpServletResponse: sending 120250 bytes.
JigsawHttpServletResponse: state != INCLUDED
-- snip --

I've attachmned "JigsawHttpServletResponse.java" in my "Need help..." message to you;
this version
I make the test with only adds out.flush() (but it seems that there is no differernce
:-(     ), IMHO
the problem sits somewhere much deeper, or my servlet code is simply: WRONG... (or
not...) =:-)

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o)  Roland Mainz                               C programmer
  \__\/\/__/   Roland.Mainz@informatik.med.uni-giessen.de MPEG specialist
  /O /==\ O\   gisburn@w-specht.rhein-ruhr.de             Sun&&Amiga programmer
 (;O/ \/ \O;)  TEL +49 (0) 2426901568  FAX +49 (0) 2426901569
Received on Tuesday, 6 April 1999 04:49:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT