*
The moose likes Websphere and the fly likes WAS 4.0 Bug Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "WAS 4.0 Bug " Watch "WAS 4.0 Bug " New topic
Author

WAS 4.0 Bug

Shekhar
Greenhorn

Joined: Apr 27, 2002
Posts: 4
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 {
^
I tried JSPBatchCompiler.
Unable to compile class for JSP -- Branch too large errors
Anyone help please .


S.G.Wagh<br />Porting Developer
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Ummm... That's not a bug, that's a well-known issue with Java compilers in general and JSP's in specific.
The only solution is to rewrite your JSP. Try splitting Java code out into separate classes and calling the new classes from your JSP's.
Everyy time I've seen this error it's from a JSP that's in desparate need of refactoring...
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WAS 4.0 Bug
 
Similar Threads
reason for this exception
unable to compile jsp = code too large for try statement
code too large for try statement for a JSP to compile
"code too large for try statement " , While compiling JSP
Code too larger for the try block in Jsp