You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Dyson <pa...@waveset.com> on 2001/12/10 17:39:41 UTC

no such method error on ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();

I am getting this error when I hit my first JSP page hosted on a tomcat 3.3
server, Win2k, JDK 1.3.0_1. The examples and admin pages work fine with this
installation. The compile error is coming from the wrapper around my jsp,
not anything in my jsp.

The contents of the page look like:

Error: 500
Location: /lighthouse/login.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
C:\jakarta-tomcat-3.3\work\DEFAULT\lighthouse\login_1.java:2883: No method
matching flushBuffer() found in class
org.apache.jasper.runtime.JspWriterImpl.
              ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();

That code fragment in the generated java looks like:

              // end
              // HTML // begin
[file="C:\\jakarta-tomcat-3.3\\webapps\\bob\\login.jsp";from=(65,42);to=(66,
0)]
                  out.write("\r\n");

              // end

          } catch (Exception ex) {
              if (out != null && out.getBufferSize() != 0)
                  out.clearBuffer();
              if (pageContext != null) pageContext.handlePageException(ex);
          } catch (Error error) {
              throw error;
          } catch (Throwable throwable) {
              throw new ServletException(throwable);
          }
      } finally {
          if (out instanceof org.apache.jasper.runtime.JspWriterImpl) {
              ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
          }
          if (_jspxFactory != null)
_jspxFactory.releasePageContext(pageContext);
      }



My server is setup with a custom context, but I get the same error with a
standard entry in the webapps directory. I searched the mailing list and
newsgroups and found this post, but not replies, and the author has not
heard from anyone. I apologize if this has been covered, I cannot find any
mention of it.

Any help is appreciated.

Patrick

http://groups.google.com/groups?q=tomcat+JspWriterImpl+no+method+matching+fl
ushBuffer()&hl=en&rnum=2&selm=AW1P7.1958%24_3.8295%40news.iol.ie

Hello,

I'm running Tomcat3.3 as a service on Win2k with IIS.

I can get the example jsp's to run perfectly, however when I request one of
my own I get the following error:

Error: 500
Location: /knowware/jsp/ScormWizard.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
C:\tomcat3.3\work\DEFAULT\knowware\jsp\ScormWizard_1.java:182: No method
matching flushBuffer() found in class
org.apache.jasper.runtime.JspWriterImpl.

((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
                                                                          ^
Has anybody seen this before and do they know the cause.I'm positive I've
got Tomcat set up correctly and have the appropriate xml files configured
right.
Any help would be appreciated.
Thanks.



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>