Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

code too large for try statement for a JSP to compile

 
Shekhar
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 {
^
 
Umair Nauman
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic