File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes reason for this exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "reason for this exception" Watch "reason for this exception" New topic
Author

reason for this exception

sanj singh
Ranch Hand

Joined: Jun 30, 2001
Posts: 129
Hi All
I am getting an exception in the servlet
"code too large for try statement"
Can anybody please tell me the reason for this.
regards
sanj
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Never heard of this one. Is the coe in the try block really that large?

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Stack trace please...
- Peter
sanj singh
Ranch Hand

Joined: Jun 30, 2001
Posts: 129
Thanks Peter and Bosun for your replies.
The problem was that the code in the doGet method exceede 65536 bytes.I had to break down code into different methods.
regards
sanj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reason for this exception