cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <>
Subject Re: IOException closing stream in Cocoon Servlet
Date Wed, 21 Jan 2004 03:37:21 GMT
Hunsberger, Peter dijo:
> It appears that if you attempt to close an already closed stream you get
> an IO exception.  This means that if Cocoon gets stopped and restarted
> it is possible, in at least some circumstances, for Cocoon to throw an
> IOException in at line 1205
> (the current v 2.1.3 code).  I think that the code should probably
> swallow the IOException in this case? Probably something like:
>             } catch (IOException ie) {
>                 if ( !"The stream has been closed".equals(
> ie.getMessage() ) )
>                     getLogger().error("Cocoon got an Exception while
> trying to close stream.", ie);
> If only to keep the logs clean and not hide any real exception; in our
> case we're throwing our own BadSessionException just prior to this.

Hi Peter:

+1. This error is related to a client that closed the socket. In fact this
is not a Cocoon error. So in this way, maybe we can log it in a lower
logger category, maybe INFO will be OK.


Best Regards,

Antonio Gallardo

View raw message