W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

jigsaw problem with servlets and ServletException...

From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
Date: Mon, 22 Feb 1999 00:54:08 +0100
Message-Id: <36D09CA0.24313C5@informatik.med.uni-giessen.de>
To: W3 Jigsaw Mailinglist <www-jigsaw@w3.org>

Hi !


I figured out a problem with jigsaw and servlets:

If a servlet does not .close() the output stream, jigsaw seems to run
out of open files
after some - ähm - xxxx service cycles. This problem mainly occurs if a
throws a ServletException (or any other Exception); and some other
servlet examples
simply missing a .close() statement.

Solution: jigsaw's ServletOutputStream should check if the stream was
closed or not
(e.g. a method like out.wasClosed()).
A non-closed stream should be closed, but a warning should be written to
stderr and
servlet log (except a ServletException was thrown; I don't know whether
the servlet
specs saying something  about this case or not...).

Maybe my previous problem with SocketException was caused by this



  __ .  . __
 (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 Sunday, 21 February 1999 18:53:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:33 UTC