• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Code too large for try statement

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a JSP which includes many JSP pages. I am using @include for including the pages. Now at run time I get the error:-
'code too large for try statement', because the code within try/catch exceeds 64 kb.
I know jsp:include would be a solution for this, but I do not want to use that, because if I do I would have to import many files separately in all the pages and pass lot of request parameters to each jsp.

Is there another solution for this problem?
I also tried

'<jsp-param>
<param-name>noTryBlocks</param-name>
<param-value>true</param-value>
</jsp-param>'

in the deployment descriptor, but this doesn't seem to work.

Thanks
Mini
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The solution would be to refactor your JSP to modern standards in which the majority of processing is done in a servlet controller prior to forwarding to a much smaller JSP.
reply
    Bookmark Topic Watch Topic
  • New Topic