You are doing something like  res.getOutputStream().write(data); twice
within the same request. This could be for several reasons and it general
occurs when you include a page in your response and then try to use the
above - you can do a response.isCommited() to check the state of the
response.
 

-----Original Message-----
From: Justin Rowles [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 10:03 AM
To: 'Tomcat Users List'
Subject: Illegal State Exception


At intervals I get this error (or very similar).  I have previously got rid
of it by removing what I last did!

Last time, it appeared to be caused by calling the first() method on a
ResultSet.  This time I have made several changes and have no idea what the
cause is.

How can I pursue it through my code from the information I have below?

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 

Error: 500
Location: /pod_users/justin/jsp/form.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.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
        at java.lang.Thread.run(Thread.java:484)



***************************************************************
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]>

Reply via email to