I think this is due to hitting the 64kb limit in a class file (a 16bit
offset for the byte code in a method). I had similar problems using Jasper.
I managed to refactor the page so that the number of actual tags was
reduced (put a loop in it, so the tags were called multiple times). Using
scriptlets (!) can also help significantly... or if you can afford the
flush, use jsp:include (roll on JSP 1.2).
[EMAIL PROTECTED] on 07/02/2001 06:59:08
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Ken X Horn)
Subject: Re: "Illegal target of jump or branch" Error
Interesting. A colleague of mine started seeing exactly the same problem
today, but with Resin instead of WebLogic. I had never seen it before.
It seems, on the face of it, to have something to do with the complexity of
the page. The page we were having problems with has a boatload of custom
tags on it (some Struts, others our own). When we commented out a sizeable
number of those tags, it started working again. Which particular chunk of
tags we removed did not make a difference, which is what led me to believe
it was related to page complexity. However, that's as far as I've got.
I'd be very interested in hearing the "real" reason behind this error, as
well as what we might be able to do about it.
--
Martin Cooper
Tumbleweed Communications
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 8:00 AM
Subject: HELP: "Illegal target of jump or branch" Error
> I receive the following error when accessing my JSP in WebLogic 5.1
(sp8):
>
> Tue Feb 06 10:56:07 EST 2001:<E> <WebAppServletContext-smartforms>
Servlet
> failed with Exception
> java.lang.VerifyError: (class: jsp_servlet/_test, method: _jspService
> signature: (Ljavax/servlet/htt
> p/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Illegal
> target of jump or branch
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java, Compiled Code)
> at
>
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:431)
> at
>
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va,
>
> Compiled
> Code)
> at
>
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:404)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
> at
>
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:16
4)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:101)
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:907)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:851)
> at
>
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:
> 252)
> at
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
> at
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
> Code)
>
>
>
> The same call in Tomcat is successful. Does anyone know what causes this
> error?
>