httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent de Menditte" <ldeme...@webtiss.com>
Subject [users@httpd] Problem with sendRedirect
Date Wed, 18 Jun 2003 09:02:06 GMT
Hi,

For a professionnel application, we've juste upgraded from Apache 1.3.23 to Apache 2.0.45
on a Windows 2000 Server, and when accessing some of our JSP pages (we also use Resin 2.1.9),
we have now this error which often occurs: 

[2003/06/13 08:56:54] Can't sendRedirect() after data has committed to the client.
java.lang.IllegalStateException: Can't sendRedirect() after data has committed to the client.
 at com.caucho.server.http.Response.sendRedirect(Response.java:613)
 at _wap._csacqcol__jsp._jspService(_csacqcol__jsp.java:264)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
 at com.caucho.jsp.Page.subservice(Page.java:506)
 at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
 at com.caucho.server.http.Invocation.service(Invocation.java:315)
 at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344)
 at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
 at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
 at java.lang.Thread.run(Thread.java:536)

We added this line in the JSP pages:

<%@ page buffer="10kb" %>

we also suppressed all unnecessary whitespaces but we still have the same problem.
How can we estimate the buffer size which we must use? Why did this problem never happen with
Apache 1.3?

Thanks for your help,

Laurent
Mime
View raw message