Why am I getting the error "Attempt to clear a buffer that is already been flushed"?

swarraj kulkarni

This is related to the buffer overflow error. To solve this error, you can just set the page directive parameter autoflush to true or increase the buffer size by setting the buffer parameter.

By default the buffer size is 8K, and all the HTML output is stored in this buffer before JSPWriter flushes it to the output. If the content size exceeds this default size, then there will be an exception, like the one you are getting.

If the value of "autoflush" parameter is true, then whenever the buffer is full then the contents of this buffer will be automatically flushed.