| Author |
code too large for try statement for a JSP to compile
|
Shekhar
Greenhorn
Joined: Apr 27, 2002
Posts: 4
|
|
Hi Java Ranchers , I am facing a typical problem with WAS 4.0.3 The JSP is not getting compiled as it is complaining that the code is too large for the try statement. Is this a bug with WAS . Please let me know if there is some fix pack for this The error in detail is as follows : C:\WebSphere\AppServer\temp\swagh\Default_Server\EP102\cs70_banking.war\common\transact\user\_reorder_5F_checks_jsp_1.java:420: code too large for try statement try { ^
|
S.G.Wagh<br />Porting Developer
|
 |
Umair Nauman
Greenhorn
Joined: Sep 16, 2005
Posts: 1
|
|
This is not a WAS bug rather a java limitation. Try splitting up the try catch statemtnts into multiple smaller blocks of try catch. Details of this limiation can be found on IBM's site below: http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Java_SDK/1177375.html A code too large for try statement error can still be issued while compiling a JSP. The compiler limitation does not allow try/catch blocks to have a start or end location greater than 64 K into the method code. Therefore, compiler limitations are usually caught when a try/catch block overlaps the 64 K boundary.
|
 |
Marc Peabody
pie sneak
Sheriff
Joined: Feb 05, 2003
Posts: 4725
|
|
"Shekhar", we don't have many rules around here but our naming policy is one of them. Not complying with the policy will lead to your account becoming locked. This warning hopefully will prevent that from happening, but some action is required on your part. Please review the policy here and you can change your Publicly Displayed Name here.
|
A good workman is known by his tools.
|
 |
 |
|
|
subject: code too large for try statement for a JSP to compile
|
|
|