You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Willy Lin <Wi...@apexlearning.com> on 2003/03/29 02:23:53 UTC

Tomcat buffer size problem?

Hi:

	I have an application in a WAR file.  I have no problem with it
running under Tomcat 4.0.6.  However when I deployed it to Tomcat 4.1.21, I
got the following error:
	
org.apache.jasper.JasperException: /home/top_nav.jsp(0,0) Invalid buffer
size
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428
)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:140
)
	at
org.apache.jasper.compiler.Validator$PageDirectiveVisitor.visit(Validator.ja
va:183)
	at
org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:280)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
	at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
	at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
	at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
	at org.apache.jasper.compiler.Validator.validate(Validator.java:581)
	at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:228)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	
	
	I tracked the problem to the following line
	
<%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*"
buffer="16k"%>

	The issue is the buffer.  When I take out the buffer setting, then
the page show up without any problem.  I tried my application under Tomcat
4.1.24 and it is having the same issue.
	
	Anyone encountered this?  TIA
	
	
	
Willy

Re: Tomcat buffer size problem?

Posted by Tim Funk <fu...@joedog.org>.
In the copy of the spec I see:

<%@ page page_directive_attr_list %>
page_directive_attr_list ::= { language=” scriptingLanguage” }
{ extends=” className” }
{ import=” importList” }
{ session=”true|false” }
{ buffer=”none| sizekb” }
{ autoFlush=”true| false” }
{ isThreadSafe=”true|false” }
{ info=” info_text” }
{ errorPage=” error_url” }
{ isErrorPage=”true|false” }
{ contentType=”ctinfo” }

So I am *guessing* you need to change:
<%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*" 
buffer="16k"%>
to
<%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*"
  buffer="16kb"%>

I think its odd (probably a typo in the spec) because they use as an 
example in the spec (2.7.1): (notice is k, not kb)
<%@ page language=”java” import=”com.myco.*” buffer=”16k” %>



-Tim

Willy Lin wrote:
> Hi:
> 
> 	I have an application in a WAR file.  I have no problem with it
> running under Tomcat 4.0.6.  However when I deployed it to Tomcat 4.1.21, I
> got the following error:
> 	
> org.apache.jasper.JasperException: /home/top_nav.jsp(0,0) Invalid buffer
> size
> 	at
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
> java:94)
  <SNIP>
> 	
> 	I tracked the problem to the following line
> 	
> <%@ page language="java" import="java.util.*,java.io.*,apex.vs_admin.*"
> buffer="16k"%>
> 
> 	The issue is the buffer.  When I take out the buffer setting, then
> the page show up without any problem.  I tried my application under Tomcat
> 4.1.24 and it is having the same issue.
> 	
> 	Anyone encountered this?  TIA
> 	
> 	
> 	
> Willy
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org