This is somewhat of a stab, but it's possible the Jasper changed so that the generated 
code for your page is slightly more verbose, bumping it into some restrictions of the 
Java language spec.  The magic number seems to be 64k.  From the Java Specialists 
(http://www.javaspecialists.co.za/archive/Issue059.html), this sounds likely related:
"2. The amount of code per non-native, non-abstract method is limited to 65536 bytes 
by the sizes of the indices in the exception_table of the Code attribute, in the 
LineNumberTable attribute, and in the LocalVariableTable attribute."

As does this thread at IBM developerWorks: 
http://www-106.ibm.com/developerworks/forums/dw_thread.jsp?message=52566&cat=10&thread=12882&forum=177#52566

Google is your friend.  And if you have 5000 lines in a single JSP, perhaps Martin 
Fowler should be, too.

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-----Original Message-----
From: nong nong [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 19, 2004 9:37 PM
To: [EMAIL PROTECTED]
Subject: how to configure tomcat5.0 to remove the limitation of jsp code length?


hi all
  
 I develop a Jsp application, some Jsps' code exceed 5000 rows. In 
tomcat4.0, it work correctly, but in tomcat5.0, it report an error:'code 
too large for try statement'. Whether are there any limitations of jsp code 
length?  how to configure tomcat5.0 to remove the limitation of jsp code 
length?

thanks

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to