tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justyna Horwat" <Justyna.Hor...@eng.sun.com>
Subject Re: Question regarding error: Response has already been committed
Date Fri, 21 Jul 2000 23:31:02 GMT
You can get an IllegalStateException when you attempt to grab the output
stream after something else has written to it.

For example if you use jsp:include, the outer jsp has already called
getWriter()
on the response object, the inner jsp will get an IllegalStateException if
it
calls getOutputStream() on the same response object.

Justyna
< horwat@eng.sun.com >

----- Original Message -----
From: "Jason Shaffer" <jason_shaffer@theprairie.com>
To: <taglibs-user@jakarta.apache.org>
Sent: Friday, July 21, 2000 12:46 PM
Subject: Question regarding error: Response has already been committed


> I receive the following error when I attempt to load Apply.jsp of the xsl
> example that comes with the jakarta-taglibs nightly build. The jsp page
> loads fine until it comes to the first taglib tag, and then the error
> occurs. Any suggestions? Thanks.
>
> ~Jason
>
> Error: 500
> Location: /examples/jsp/Apply.jsp
> Internal Servlet Error:
>
> java.lang.IllegalStateException: Response has already been committed
> at
>
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletRespon
> seFacade.java:157)
> at
> org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160)
> at
>
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> )
> at java.lang.Thread.run(Unknown Source)
>
>


Mime
View raw message