tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandros Kotsiras" <>
Subject RE: IllegalStateException
Date Thu, 20 Jul 2000 16:49:19 GMT
Well yes that's right but this error happens in some bizzare cases where i
am 100% sure that i do not
forward after i obtain a printwriter.

For example with me it happens when there is an error in my JSP file and i
do not get redirected to the error.jsp default page because i did not use  :
<%@ page  errorPage="error.jsp" %>

-----Original Message-----
From: Rob S. []
Sent: Thursday, July 20, 2000 11:34 AM
Subject: RE: IllegalStateException

Hi Aron,

> > Does anyone know what this means?
> >
> > java.lang.IllegalStateException: Response has already been committed
> >         at

When your page is "running," output gets sent to a buffer.  When that buffer
becomes full (default size is 8k I believe), or you explicitly choose to
flush it (out.flush() i think?), it's sent to your web server.  You've
already "committed" to displaying that page to a user, so you're being told
that you have to finish what you've started =)

Are you trying to do a redirect after a flush or after a large amount of
content has been generated?

There's another thing... I can't quite remember what it is, but it's a
common cause of that message also.  Maybe someone could chime in? =)

- r

View raw message