Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002748 [Resin] minor always 06-23-08 11:41 06-23-08 14:57
Reporter ferg View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.2.0 Product Version 3.1.6
  Product Build
Summary 0002748: pageContext.forward not stopping output
Description (rep by Vinod Mehra)

Reproducer jsp:
<%
  pageContext.forward("/foo");
%>
Content after forward
Any content after forward should be ignored silently. But instead we get this from resin 3.1.6 (which is breaking existing pages):
java.io.IOException: write() forbidden after writer is closed
  at com.caucho.jsp.JspWriterAdapter.write(JspWriterAdapter.java:98)
  at _jsp._foo__jsp._jspService(_foo__jsp.java:33)
  at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
  at com.caucho.jsp.Page.pageservice(Page.java:578)
  at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
  at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:194)
  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
  at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
  at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
  at java.lang.Thread.run(Thread.java:595)
Workaround is to use either RequestDispatcher.forward() or <jsp:forward page="/foo"/>.

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003220)
ferg
06-23-08 14:57

jsp/15m7
 

- Issue History
Date Modified Username Field Change
06-23-08 11:41 ferg New Issue
06-23-08 14:57 ferg Note Added: 0003220
06-23-08 14:57 ferg Assigned To  => ferg
06-23-08 14:57 ferg Status new => closed
06-23-08 14:57 ferg Resolution open => fixed
06-23-08 14:57 ferg Fixed in Version  => 3.2.0


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