Hi Sanjay, What kind of representation are you writing when this occurs?
Are you sure that the representation isn't closing the output stream when the write(OutputStream) method is called on it? Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Sanjay Acharya [mailto:[email protected]] Envoyé : mardi 12 janvier 2010 22:25 À : [email protected] Objet : Stream closed Exception I have noticed the following issue when using Simple framework being mentioned on other discussions on the Restlet thread. I am however not exactly sure as to the correct direction for the same. When using Restlet without a Servlet Container, we see the following exception, An exception occured writing the response entity java.io.IOException: Stream closed at simple.http.ResponseStream.ensureOpen(ResponseStream.java:286) at simple.http.ResponseStream.flushBuffer(ResponseStream.java:204) at simple.http.ResponseStream.flush(ResponseStream.java:190) at com.noelios.restlet.http.HttpServerCall.writeResponseBody(HttpServerCall.jav a:493) at com.noelios.restlet.http.HttpServerCall.sendResponse(HttpServerCall.java:428 ) at com.noelios.restlet.http.HttpServerConverter.commit(HttpServerConverter.java :391) at com.noelios.restlet.http.HttpServerHelper.handle(HttpServerHelper.java:148) at com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocolHa ndler.java:75) at simple.http.Dispatcher.run(Dispatcher.java:83) at simple.util.process.Daemon.execute(Daemon.java:121) at simple.util.process.Daemon.run(Daemon.java:106) The client is not aborting the connection so I am not sure why the above occurs. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24368 59 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2449638

