You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "Lynn, James" <jl...@e-medsoft.com> on 2000/05/24 18:42:30 UTC
RE: java.lang.IllegalStateException: Response has already been co
mmitted
> 'Sorry to ask such a remedial question.
>
> I've scoured faq-o-matic and couldn't find the answer
> as well as JSP spec.
>
> Where can I find documentation on the exceptions that
> Tomcat throws. If it's not documented what causes the
> above exception to be thrown?
This is an exception provided by the java servlet specification. I don't
know this one off hand, but you may want to look through the servlet
spec/documentation on java.sun.com for what this is. My guess is that you
called some functions out of the order that the spec provides (like getting
the output stream and then doing a sendRedirect, for example. Or closing the
stream and getting it again). The order that you call response methods is
fairly controlled by the internal servlet state, and it will throw
IllegalStateExceptions if a method is called in the wrong state.
James