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.java: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(SimpleProtocolHandler.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=2436859