Hi Zohar, I've just tested this issue. Without the fix to
TemplateRepresentation (removing the extra close() method call), I do get
the Simple exception at each request. With the fix, everything works
perfectly.

Hi AJ, I suggest that you take a second look at your Stax representation to
see if there isn't other (hidden?) close attempts on the stream. If you have
a sample code, I'll be happy to help testing it.

Best regards,
Jerome  

> -----Message d'origine-----
> De : A.J. Barnes [mailto:[EMAIL PROTECTED] 
> Envoyé : samedi 21 octobre 2006 19:25
> À : [email protected]
> Objet : RE: Bug in TemplateRepresentation?
> 
> The issue I'm having with Simple continues with the latest 
> release. Of 
> interest, it seems to be when I'm pulling the informaion from 
> the server 
> using IE that I'm getting the expection - if pulling it off 
> the server 
> with my own code (using the restlet client there is not a problem). I 
> remove the Staxmate statement that closes the stream, but I'm 
> stilling 
> getting the same problem. 
> 
> Here's the stack trace if its any help. 
> 
> 22/10/2006 06:19:10 com.noelios.restlet.impl.http.HttpServerConverter 
> commit 
> INFO: Exception intercepted 
> java.io.IOException: Stream closed 
>         at simple.http.ResponseStream.ensureOpen(Unknown Source) 
>         at simple.http.ResponseStream.flushBuffer(Unknown Source) 
>         at simple.http.ResponseStream.flush(Unknown Source) 
>         at 
> com.noelios.restlet.impl.http.HttpServerCall.sendResponse(Http
> ServerCall.java:228) 
>         at 
> com.noelios.restlet.ext.simple.SimpleCall.sendResponse(SimpleC
> all.java:164) 
>         at 
> com.noelios.restlet.impl.http.HttpServerConverter.commit(HttpS
> erverConverter.java:84) 
>         at 
> com.noelios.restlet.impl.http.HttpServerHelper.handle(HttpServ
> erHelper.java:79) 
>         at 
> com.noelios.restlet.ext.simple.SimpleServerHelper.handle(Simpl
> eServerHelper.java:122) 
>         at simple.http.Dispatcher.run(Unknown Source) 
>         at simple.util.process.Daemon.execute(Unknown Source) 
>         at simple.util.process.Daemon.run(Unknown Source) 
> 
> AJ 
> 
> Quoting Jerome Louvel <[EMAIL PROTECTED]>: 
> 
> > 
> > Hi all, 
> > 
> > I've solved it by removing the first "close". The fix will 
> be part of 
> > the 
> > next beta 19 snapshot due today. 
> > 
> > Zohar, AJ, could you test this fix and let me know if it 
> work fine with 
> > STaX 
> > and FreeMarker? 
> > 
> 
> 

Reply via email to