JasperException: 18: Branch is too large, internal restriction ???
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tobias_Nehmer
Posted On:   Monday, February 4, 2002 02:38 AM

Hi all,

when Tomcat 3.2.1 tries to compile one of my JSPs, I get an error:

org.apache.jasper.JasperException: Unable to compile class for JSP/.....detail.java:18:
Branch is too large, internal restriction.


Does anyone know what exactly that means? How can I get around that problem?

I checked the syntax of my JSP, everything is correct.

When I comment out some codeblock it works fine,

add some lines of code and this exception occurs.

I'm using some version of Struts with Tomcat 3.2.1.
Desperately need some help, please!!!!

Re: JasperException: 18: Branch is too large, internal restriction ???

Posted By:   Benoit_Quintin  
Posted On:   Monday, February 4, 2002 05:47 AM

We are experiencing the same problem with WebSphere 3.5.3, so this isn't a Tomcat problem. What we have found out so far, is that this _seems_ to be a restriction of the JSP compiler. It looks like it limits the size of sub-branches to 32 KB. If it so happens that your Jsp is big (100k+), there's a decent chance that one of the compiling subbranches within your code is going to exceed that size. I don't know if there is any workaround. I also don't know if what I said before really is the problem. Any clues, anyone???
About | Sitemap | Contact