tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damian Gołda <dam...@iif.pl>
Subject RE: Login Error
Date Wed, 28 Jun 2000 09:59:25 GMT
Try increase page buffer size, for example:
<%@ page buffer="32kb" %>

The reason of message is following: When page has set error page and there
is exception raised during page processing, default action is catch the
exception, clear buffer and forward to error page. But when buffer is small,
it's flushed before catching exception, and buffer clear failed.

---
Damian Golda

Damian@iif.pl


-----Original Message-----
From: tomcat-user-return-5637-damian=iif.pl@jakarta.apache.org
[mailto:tomcat-user-return-5637-damian=iif.pl@jakarta.apache.org]On
Behalf Of Darren Lee Deliang
Sent: Wednesday, June 28, 2000 6:50 PM
To: tomcat-user@jakarta.apache.org
Subject: Login Error


Hi,

     I have a simple login screen and when i click submit i get this:
//----------------------------------------------------------------------
javax.servlet.ServletException: Error: Attempt to clear a buffer that's
already been flushed
	at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:386)
	at
jsp.RetrainingWebApp._0002fjsp_0002fRetrainingWebApp_0002fmain_0002ejspmain_
jsp_64._jspService(_0002fjsp_0002fRetrainingWebApp_0002fmain_0002ejspmain_js
p_64.java:168)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:174)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
	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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)

Root cause:
java.io.IOException: Error: Attempt to clear a buffer that's already been
flushed
	at org.apache.jasper.runtime.JspWriterImpl.clear(JspWriterImpl.java:166)
	at
jsp.RetrainingWebApp._0002fjsp_0002fRetrainingWebApp_0002fmain_0002ejspmain_
jsp_64._jspService(_0002fjsp_0002fRetrainingWebApp_0002fmain_0002ejspmain_js
p_64.java:140)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:174)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
	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.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Unknown Source)

//----------------------------------------------------------------------

What does it means by i am trying to clear a buffer that has adi been
flushed?

Thanks
DArren
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message