The Servlet spec says that you can not call HttpServletResponse.sendError() once output has been committed to the browser. If you do so, you get the IllegalStateException you are seeing. With content already sent, it is too late to do a redirection.
Content will automatically be committed once the buffer becomes full (I think the default is 8K). If the amount of content written to the buffer before the error occurs varies, it can cause the appearance of this error to be variable too. Increasing the size of the buffer would delay the automatic committing of content and perhaps help avoid this error. Cheers, Larry > -----Original Message----- > From: Justin Rowles [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 19, 2001 11:27 AM > To: 'Tomcat Users List' > Subject: RE: Illegal State Exception - Further information. > > > > At intervals I get this error (or very similar). I have > > previously got rid of it by removing what I last did! > > I have commented out all my recent additions, and the system > worked again. > > I then uncommented all my comments, one by one, and guess > what? It still > works. > > Anyone got any ideas? > > J. > -- > You're only jealous cos the little penguins are talking to me. > > > > *************************************************************** > For more information on Ordnance Survey products and services, > visit our web site at http://www.ordnancesurvey.co.uk > *************************************************************** > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>