Thursday, July 19, 2001 08:40 AM
The error it's easy to explain. The servlet (or jsp that's the same thing) uses a buffer to write the output that will be sent to the client.
Once the buffer it's full, the servlet container sends it out, and then clears it allowing the servlet to go on in writing.
That error message comes out when the code encounter a clearBuffer() method. If the buffer has been already flushed, you will get that error (or an IllegalStateException).
The easiest solution of the problem is to change the size of the buffer. This can be done using a <%@ page ... > directive or, through the setBufferSize() in a servlet code.