Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004290 [Resin] minor always 11-12-10 08:58 02-04-11 14:09
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.10
Summary 0004290: Writer/OutputStream mixup
Description (rep by Mattias Jiderhamn)

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(
    at com.caucho.server.http.ToCharResponseAdapter$ToCharResponseStreamWrapper.writeNext(
    at com.caucho.server.http.ToCharResponseStream.flushCharBuffer(
    at com.caucho.server.http.ToCharResponseStream.flushBuffer(
    at com.caucho.server.http.ResponseAdapter.finish(
    at com.caucho.jsp.PageContextImpl.release(
    at com.caucho.jsp.PageManager.freePageContext(
    at _jsp._html._orders._invoices._invoiceStatisticsList__jsp._jspService(

Additional Information
Attached Files

- Relationships

- Notes
11-17-10 09:47

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.
01-01-11 00:31

Any news on this? It's still happening a couple of times each week in production.
Just now another team member saw it on the console of his dev environment.
01-01-11 10:33

Haven't been able to reproduce this yet.

Any more detail on the scenario that triggers this would be very helpful: (forwards, filters, JSP/non-JSP, getOutputStream() vs JSP output, caching, etc.)
02-01-11 00:22

This happens both with "pure" JSPs and JSPs forwarded to from servlets. There are a couple of filters.
What kind of caching are you thinking about?

I'll mail you some details on a specific case.
02-04-11 14:09


The fixed case is with a JSP with a large buffer size and a sendRedirect.

- Issue History
Date Modified Username Field Change
11-12-10 08:58 ferg New Issue
11-17-10 09:47 ferg Note Added: 0004850
01-01-11 00:28 mate Issue Monitored: mate
01-01-11 00:31 mate Note Added: 0005010
01-01-11 10:33 ferg Note Added: 0005011
02-01-11 00:22 mate Note Added: 0005012
02-04-11 14:09 ferg Note Added: 0005023
02-04-11 14:09 ferg Assigned To  => ferg
02-04-11 14:09 ferg Status new => closed
02-04-11 14:09 ferg Resolution open => fixed
02-04-11 14:09 ferg Fixed in Version  => 4.0.15

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
38 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker