Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anybody got this error before?

Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the following error when compiling a JSP page...
JSPG0059E: Unable to compile class for JSP .... java:21: Branch is too large, Internal restriction.
Managed(in a nutshell) to get this info, but I'm still not sure of what's happening.
It's really a limitation of the .class file
format itself. Sun still hasn't changed the VM spec to fix the 32k limitation
for branches. The real solution is to pull code out of the JSP and put it
into different methods in the JSP or better yet to put it in separate classes.
The page is also STRUTS-centric, which makes it even more confusing... Could the use of the STRUTS taglibs push the memory bounds?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic