roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <nore...@atlassian.com>
Subject [Roller-JIRA] Commented: (ROL-1119) IllegalStateException on 404 page
Date Sat, 15 Sep 2007 20:39:29 GMT

    [ http://opensource.atlassian.com/projects/roller/browse/ROL-1119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14129
] 

David Johnson commented on ROL-1119:
------------------------------------

The CompressionFilter also interferes with proper error handling because it calls response.getOutputStream().


We really don't need to provide our own compression filter anymore because servlet containers
provide it out -of-the-box, e.g. see the Connector "compression" option in Tomcat's config.

> IllegalStateException on 404 page
> ---------------------------------
>
>                 Key: ROL-1119
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1119
>             Project: Roller
>          Issue Type: Bug
>          Components: User Interface - General
>            Reporter: Allen Gilliland
>            Assignee: David Johnson
>            Priority: Minor
>             Fix For: 4.0
>
>
> There errors come up pretty regularly in the tomcat log files and indicate that something
is inappropriately triggering a 404 response after already writing some output.  We need to
find where this is happening and make sure that the response code is set before anything is
written.
> 2006-04-24 00:08:31 org.apache.catalina.core.StandardHostValve@c707c1: Exception Processing
ErrorPage[errorCode=404, location=/WEB-INF/jsps/404.jsp]
> java.lang.IllegalStateException: getOutputStream() has already been called for this response
>         at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:600)
>         at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:164)
>         at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
>         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
>         at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:172)    
   at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:887)
>         at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)    
   at org.apache.jsp.WEB_002dINF.jsps._404_jsp._jspx_meth_tiles_insert_0(_404_jsp.java:254)
>         at org.apache.jsp.WEB_002dINF.jsps._404_jsp._jspService(_404_jsp.java:146)
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message