This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "reason for this exception" Watch "reason for this exception" New topic

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.
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?


So much trouble in the world -- Bob Marley
Peter den Haan
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: reason for this exception
jQuery in Action, 3rd edition