Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 2084 invoked from network); 23 May 2003 18:17:42 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 23 May 2003 18:17:42 -0000 Received: (qmail 6373 invoked by uid 97); 23 May 2003 18:19:54 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 6366 invoked from network); 23 May 2003 18:19:54 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 23 May 2003 18:19:54 -0000 Received: (qmail 647 invoked by uid 500); 23 May 2003 18:17:25 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 636 invoked from network); 23 May 2003 18:17:25 -0000 Received: from mail2.tenethealth.com (199.222.14.8) by daedalus.apache.org with SMTP; 23 May 2003 18:17:25 -0000 Received: from tenhdcscan01.tenethealth.com ([172.18.167.50]) by mail2.tenethealth.com (8.11.6/8.11.6) with SMTP id h4NIKFI16230 for ; Fri, 23 May 2003 13:20:15 -0500 Received: from tenhdcthemx53.tenethealth.net ([172.18.167.214]) by tenhdcscan01.tenethealth.com (NAVGW 2.5.1.15) with SMTP id M2003052312565411630 for ; Fri, 23 May 2003 12:56:54 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: code too large for try statement Date: Fri, 23 May 2003 13:11:49 -0500 Message-ID: <51CC7CC1DA98D411AEE200508B62EC89019343F7@TEN_PH0_EMX_02> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: code too large for try statement Thread-Index: AcMhUxOeLWEJOGoPTpWlbSMcZwscjQAAyLhg From: "Turoff, Steve" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yes, my code is definitely producing gigantic java files - on the order = of 260K. I didn't realize there was a limit. In looking at the code more = thoroughly, I see that the same file is being included multiple times: _jspx_includes.add("/templates/leftNav/default.jsp"); _jspx_includes.add("/templates/leftNav/default.jsp"); _jspx_includes.add("/templates/leftNav/about.jsp"); I think the best short term option is to refactor so that each file that = needs to be included is only included once. Long term, it's probably = better to use taglibs , , etc. Steve >-----Original Message----- >From: Tim Funk [mailto:funkman@joedog.org] >Sent: Friday, May 23, 2003 12:45 PM >To: Tomcat Users List >Subject: Re: code too large for try statement > > >For the sake of sanity in debugging, can you refactor to do this: ><% if (someVariable.equals("someValue")) { %> > > > ><% } %> > >I beleive, your code is creating one GIGANTIC java file which=20 >is over some=20 >limits of the java language. It has nothing to do with bufferSize. > >-Tim > >Turoff, Steve wrote: >> Greetings, >>=20 >> I am running Tomcat 4.1.24 and Apache/1.3.19 (Unix) on=20 >Redhat 7.1. I recently made some modifications to a JSP page=20 >and am now getting the following error: >>=20 >> Generated servlet error: >> [javac] Since fork is true, ignoring compiler setting. >> [javac] Compiling 1 source file >> [javac] Since fork is true, ignoring compiler setting. >> [javac]=20 >/var/jakarta-tomcat-4.1.24/work/Standalone/localhost/_/index_js p.java:7265: code too large for try statement >> [javac] } catch (Throwable t) { >> [javac] ^ >> [javac]=20 >/var/jakarta-tomcat-4.1.24/work/Standalone/localhost/_/index_js p.java:131: code too large for try statement >> [javac] try { >> [javac] ^ >> [javac] 2 errors >>=20 >> The jsp in question contains many blocks such as: >>=20 >> <% if (someVariable.equals("someValue")) { %> >> <%@ include file=3D"/some/file.jsp" %> >> <%@ include file=3D"/some/otherfile.jsp" %> >> <%@ include file=3D"/some/otherotherfile.jsp" %> >> <% } %> >>=20 >> If I remove a few of the included files, the page works=20 >fine. It doesn't matter which included files I remove. Is=20 >there a limit to the size of a jsp page? >>=20 >> In=20 >/var/jakarta-tomcat-4.1.24/work/Standalone/localhost/_/index_js p.java:134, I see=20 >>=20 >> pageContext =3D _jspxFactory.getPageContext(this, request, response, >> null, true, 8192, true); >>=20 >> Am I getting this error because the buffer (8192) is too=20 >small? If so, how do I increase it? >>=20 >> Stacktrace is below. >>=20 >> Thanks, >>=20 >> Steve >> =20 > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org