Scott Ferguson wrote (2010-11-12 18:01): > 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? If we were, we should be able to reproduce it and it would turn up a lot more often in production. We've only seen it logged six times in three weeks.
> That exception is required by the spec if you call getOutputStream() > followed by getWriter(). Could it be related to flushing somehow? Such as if an exception was thrown after flushing...? </Mattias> > 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 > _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
