Hi Freya, This is probably related to the Message#finalize() which is called at GC time and closes the underlying entity streams. The problem with Tomcat and probably Jetty as well is that those streams might have been reused for other call, thus provoking some side-effects.
I've just removed Message#finalize() method in SVN trunk to remove this potential side effet. Could you try again with a recent snapshot and let us know if it helps? Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Thierry Boileau [mailto:[email protected]] Envoyé : vendredi 27 août 2010 11:56 À : [email protected] Objet : RE: stream closed errors Hello Freya, I have no answer yet, just some thoughts. >From what I notice in the code source of Jetty, this exception happens when >the output stream is actually closed (but I can't see in the source code why >this would happen), and when the writing operation is blocked for a too long >time (for example the client take time to read the already sent bytes). I read >also in the javadocs that instances of the HttpOutput class can be reused (I >can't imagine this happens before the writing has been fullfilled). What kind of clients consume the responses? Best regards, Thierry Boileau ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2652015 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2652435

