There is a limit in the JVM which is being crossed when the class
file for the JSP page gets too large. Maybe someone who knows
can elaborate. I would guess this limit is something like
"the maximum length of byte code for a code block, or perhaps a
try/catch, is 64K bytes". The class file for your JSP page
is likely greater than 64K.
I have seen both Jikes and javac silently create class files that
exceed this limit, whatever it is. I have seen the result vary
from incorrect behavior, some complaint from the JVM, to JVM crash.
The only work around I'm aware of is to split up the JSP page into
smaller ones and use <jsp:include>, or find a way to use fewer
tags.
Cheers,
Larry
> -----Original Message-----
> From: Alan Ryan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 6:59 AM
> To: [EMAIL PROTECTED]
> Subject: : RE: Using >= 150 CustomTags on a JSP breaks the VM for all
> Tomcats
>
>
> Hi,
>
> I saw this msg in the archives from May '01, has there been any update
> on this. I seem to be having the same problem.
>
> cheers,
> Alan
>
>
> From: "Marc Saegesser"
> Subject: RE: Using >= 150 CustomTags on a JSP breaks the VM for all
> Tomcats (4.0b5/3.2.2b3-b5)
> Date: Wed, 23 May 2001 08:57:27 -0500
>
> I tried your example and got the same result using JDK1.2.2/Hotspot.
> When I
> use a non-hotspot JVM I get an out of memory error.
>
> If you haven't already, please submit a bug report about this at
>
> http://nagoya.apache.org/bugzilla/
>
>
> > -----Original Message-----
> > From: Mueller, Franz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, May 23, 2001 2:17 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Using >= 150 CustomTags on a JSP breaks the VM for
> all Tomcats
> > (4.0b5/3.2.2b3-b5)
> >
> >
> > Hi all,
> >
> > I'm facing a showstopper for further usage of tomcat.
> >
> > Placing a lot (>=150) custom tags on a JSP brings down the
> VM on
> > Win-platforms (Win2k and NT4.0 latest SP)
> >
> > (Tested with JDK1.3 and JDK1.3.1 (beta))
> >
> > The creation of the corresponding java file (from the JSP) and
> the
> > compilation to the class-file seems to work, but the execution
> breaks.
> >
> > The error message is:
> >
> > #
> > # HotSpot Virtual Machine Error, Internal Error
> > # Please report this error at
> > # http://java.sun.com/cgi-bin/bugreport.cgi
> > #
> > # Error ID: 47454E45524154452F4F502D41500E435050084B
> > #
> > # Problematic Thread: prio=5 tid=0x8ebd470 nid=0x54c runnable
> > #
> >
>
>