In our case, increasing the JVM's heap size didn't fix the problem. The only
thing that fixed it was reducing the number of tags on the page, so I'm
leaning towards believing that a method size limit in a class file (someone
mentioned 64KB) is the most likely cause. Nasty. Now I'm having to write
custom tags just to reduce the total number of tags on a page!

--
Martin Cooper
Tumbleweed Communications


----- Original Message -----
From: "Dan Connelly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 8:26 AM
Subject: Re: Strange Error with <html:select>


This one came up earlier this month.   Nothing to do with <html:select>
per se.  A large number of tags on a page can cause this.

Check the archive at http://marc.theaimsgroup.com/
<http://marc.theaimsgroup.com/>

Search struts-user for the topic "Illegal target of branch or jump"

The last post on that topic says that the cure is to give yourself more
heap in the JVM with -mx and -ms

(I wonder if its really more stack space per thread that on needs for a
large number of tags on a JSP (??).  I haven't looked into it, but
stack(s) are usually more fragile than heap in multi-threaded system.)

----- Original Message -----
From: "Neal Kaiser" <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>
To: <  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 9:45 AM
Subject: Strange Error with <html:select>


> I am using Orion 1.4.7. I don't know if this is an Orion bug, or
possibly
> Struts?  I have a jsp which uses the include directive to read in a
list of
> countries:
>
>
> The jsp looks like this:
>
> <html:select property="addressBook_country" size="1" >
> <%@ include file="../util/countries.jsp" %>
> </html:select>
>
>
> And the countries.jsp is something like this:
> ..
> <html:option value="TV">Tuvalu</html:option>
> <html:option value="VI">U.S. Virgin Islands </html:option>
> <html:option value="UG">Uganda</html:option>
>
> If I have 223 lines in my countries.jsp file, it works, no problem.
However,
> if I go over 223 lines (no matter what line it is) I get this error:
>
> Error parsing JSP page /galacy/register/layout.jsp
>
> Error creating jsp-page instance: java.lang.VerifyError: (class:
> __jspPage28_register_regstep2_jsp, method: _jspService signature:
>
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletR
espo
> nse;)V) Illegal target of jump or branch
>
> I just tried putting the select list in the .jsp rather than using an
> include -- same error.
>
> I am leaning towards this being a container bug, not a Struts one. But
I
> just wanted to verify and make sure this wasn't know with Struts
first...
>
> Thanks, Neal
>



Reply via email to