Attempt to clear a buffer that's already been flushed.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vic_nkonga
Posted On:   Thursday, July 19, 2001 07:54 AM

I am writting an application in javabeans and jsp. When i run the application I have some output and the internal servlet error: "attempt to clear a buffer that is already been flushed". my application is running in tomcat 3.2.2.
Could someone help me here, i will appreciate that.

Re: Attempt to clear a buffer that's already been flushed.

Posted By:   AlessandroA_Garbagnati  
Posted On:   Thursday, July 19, 2001 08:40 AM

Hi,

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.

About | Sitemap | Contact