I am getting the following after processing the put method in my resource class:

Nov 20, 2007 2:30:41 PM com.noelios.restlet.LogFilter afterHandle
INFO: 2007-11-20        14:30:41        144.212.217.191 -       -       3000    
PUT
/v1/entitlements/6901.xml       -       204     0       6281    1078    
http://amatt:3000       -       -
Nov 20, 2007 2:30:41 PM com.noelios.restlet.ext.simple.SimpleProtocolHandler 
handle
INFO: Exception while closing the Simple response's output stream
java.io.IOException: Stream closed
        at 
simple.http.MonitoredInputStream.ensureOpen(MonitoredInputStream.java:184)
        at simple.http.MonitoredInputStream.read(MonitoredInputStream.java:83)
        at java.io.FilterInputStream.read(FilterInputStream.java:66)
        at
com.noelios.restlet.ext.simple.SimpleProtocolHandler.handle(SimpleProtocol
Handler.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 put method is is as follows:
    @Override
    public void put(Representation entity) {
      System.out.println("here1: " + entity.getMediaType());
      System.out.println("web representation: ");
      try  {
        System.out.println(entity.getText());
      }  catch (Exception e)  {
        e.printStackTrace();
      }
      getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
    }

I some some posts that could potentially have been related, but they alluded to
a fix that was implemented.  Is this the same bug?  Can I solve it (correctly)
by simply removing the call to close in SimpleProtocolHandler?  Any feedback
would be appreciated.

Thank you,
Matt

Reply via email to