Mattias Jiderhamn wrote:
> Since upgrading to Resin 4.0.10 this error has turned up now and then in 
> our log files, however we have sofar been unable to reproduce it ourselves.
> Could it be a Resin bug...?
>
> java.lang.IllegalStateException: getWriter() can't be called after 
> getOutputStream().
>       at 
> com.caucho.server.http.HttpServletResponseImpl.getWriter(HttpServletResponseImpl.java:166)
>       at 
> com.caucho.server.http.ToCharResponseAdapter$ToCharResponseStreamWrapper.writeNext(ToCharResponseAdapter.java:140)
>       at 
> com.caucho.server.http.ToCharResponseStream.flushCharBuffer(ToCharResponseStream.java:389)
>       at 
> com.caucho.server.http.ToCharResponseStream.flushBuffer(ToCharResponseStream.java:338)
>       at 
> com.caucho.server.http.ResponseAdapter.finish(ResponseAdapter.java:344)
>       at com.caucho.jsp.PageContextImpl.release(PageContextImpl.java:1444)
>       at com.caucho.jsp.PageManager.freePageContext(PageManager.java:217)
>       at 
> _jsp._html._orders._invoices._invoiceStatisticsList__jsp._jspService(_invoiceStatisticsList__jsp.java:45)
>          ...
>   
I assume you're never calling getOutputStream() in any of the tags or 
included files?

That exception is required by the spec if you call getOutputStream() 
followed by getWriter().

I'm filing this as http://bugs.caucho.com/view.php?id=4290.

-- Scott


_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to