Mantis - Resin
Viewing Issue Advanced Details
2748 minor always 06-23-08 11:41 06-23-08 14:57
ferg  
ferg  
urgent  
closed 3.1.6  
fixed  
none    
none 3.2.0  
0002748: pageContext.forward not stopping output
(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"/>.


Notes
(0003220)
ferg   
06-23-08 14:57   
jsp/15m7