cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16264] New: - blank pages <= unhandled IllegalStateException
Date Mon, 20 Jan 2003 17:14:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16264>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16264

blank pages <= unhandled IllegalStateException

           Summary: blank pages <= unhandled IllegalStateException
           Product: Cocoon 2
           Version: 2.0.4
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: m_rolappe@web.de


this bug applies to exceptions caught by CocoonServlet. When an exception is 
caught CocoonServlet is supposed to display an error page via a Notifier.

If any content has already been generated (written to response) this does not 
work. The reason is following code in CocoonServlet (several occurences):

...
if (manageExceptions) {
  res.reset();
                
  HashMap extraDescriptions = new HashMap(3);

  extraDescriptions.put("request-uri", request.getRequestURI());
  extraDescriptions.put("path-info", uri);
...

more specifically, the problem is res.reset(). it's supposed to reset the 
response. but if any content has already been comitted to the response, an 
IllegalStateException is thrown from res.reset(). since this exception is not 
caught CocoonServlet.service() is left at this point and thus the notifying 
part is not executed and no error page displayed.

fix: catch IllegalStateException in respective places

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message