Re: Illegal target of jump or branch

2003-06-05 Thread mmolinar
Ok! you're right! Thank you a lot! Marco

Scrive [EMAIL PROTECTED]:

> Hi, I'm  using a b3 version of Struts everything works fine my problem occurs
> 
> when I try to use a lot of tags in the same page,about 120 ( many of them are
> 
> img tag...)
> The page that generetes the error is included with tiles in another page.
> BTW I'm coding all with Pramati Studio.
> 
> Thanks a lot.
> Marco.
> 
> This is how the error looks like:
> 
>  java.lang.VerifyError: (class: 
> com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
> _jspService signature: 
> 
(Ljavax/servlet/http/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:232)
>   at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
> (PramatiServletFactory.java:220)
>   at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
> (PramatiServletFactory.java:317)
>   at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
> (PramatiRequestDispatcher.java:169)
>   at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
> (TilesUtilStrutsModulesImpl.java:124)
> Unhandled Error/ exception thrown from service method 
> of "org.apache.struts.action.ActionServlet". Error is: (class: 
> com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
> _jspService signature: 
> 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
> ;)V) Illegal target of jump or branch
>   at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
>   at org.apache.struts.taglib.tiles.InsertTag.doInclude
> (InsertTag.java:703)
>   at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
> (InsertTag.java:818)
>   at org.apache.struts.taglib.tiles.InsertTag.doEndTag
> (InsertTag.java:467)
>   at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
> (layout_eLeafLayout_pmt_0.java:662)
>   at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
> (PramatiRequestDispatcher.java:172)
>   at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
> (TilesUtilStrutsModulesImpl.java:124)
>   at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
>   at org.apache.struts.taglib.tiles.InsertTag.doInclude
> (InsertTag.java:703)
>   at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
> (InsertTag.java:818)
>   at org.apache.struts.taglib.tiles.InsertTag.doEndTag
> (InsertTag.java:467)
>   at 
> com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
> (webboard_message_page_message_pmt_0.java:76)
>   at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
> (PramatiRequestDispatcher.java:105)
>   at org.apache.struts.action.RequestProcessor.doForward
> (RequestProcessor.java:1033)
>   at org.apache.struts.tiles.TilesRequestProcessor.doForward
> (TilesRequestProcessor.java:269)
>   at org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:436)
>   at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
> (TilesRequestProcessor.java:312)
>   at org.apache.struts.action.RequestProcessor.processActionForward
> (RequestProcessor.java:401)
>   at org.apache.struts.action.RequestProcessor.process
> (RequestProcessor.java:279)
>   at org.apache.struts.action.ActionServlet.process
> (ActionServlet.java:1422)
>   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
> (ServiceInterceptor.java:294)
>   at com.pramati.security.util.JAASSecurityHelper.doAs
> (JAASSecurityHelper.java:145)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at com.pramati.services.security.spi.SecurityHelper.doAs
> (SecurityHelper.java:130)
>   at com.pramati.web.interceptors.ServiceInterceptor.preProcess
> (ServiceInterceptor.java:141)
>   at com.pramati.web.interceptors.core.DefaultInterceptor.process
> (DefaultInterceptor.java:47)
>   at com.pramati.web.

Re: Illegal target of jump or branch

2003-06-05 Thread James Mitchell
Please search the archives, this is discussed at least once a month here.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 7:55 AM
Subject: Illegal target of jump or branch


> Hi, I'm  using a b3 version of Struts everything works fine my problem
occurs
> when I try to use a lot of tags in the same page,about 120 ( many of them
are
> img tag...)
> The page that generetes the error is included with tiles in another page.
> BTW I'm coding all with Pramati Studio.
>
> Thanks a lot.
> Marco.
>
> This is how the error looks like:
>
>  java.lang.VerifyError: (class:
> com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method:
> _jspService signature:
>
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse
> ;)V) Illegal target of jump or branch
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:232)
> at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
> (PramatiServletFactory.java:220)
> at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
> (PramatiServletFactory.java:317)
> at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
> (PramatiRequestDispatcher.java:169)
> at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
> (TilesUtilStrutsModulesImpl.java:124)
> Unhandled Error/ exception thrown from service method
> of "org.apache.struts.action.ActionServlet". Error is: (class:
> com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method:
> _jspService signature:
>
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse
> ;)V) Illegal target of jump or branch
> at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
> at org.apache.struts.taglib.tiles.InsertTag.doInclude
> (InsertTag.java:703)
> at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
> (InsertTag.java:818)
> at org.apache.struts.taglib.tiles.InsertTag.doEndTag
> (InsertTag.java:467)
> at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
> (layout_eLeafLayout_pmt_0.java:662)
> at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
> (PramatiRequestDispatcher.java:172)
> at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
> (TilesUtilStrutsModulesImpl.java:124)
> at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
> at org.apache.struts.taglib.tiles.InsertTag.doInclude
> (InsertTag.java:703)
> at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
> (InsertTag.java:818)
> at org.apache.struts.taglib.tiles.InsertTag.doEndTag
> (InsertTag.java:467)
> at
> com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
> (webboard_message_page_message_pmt_0.java:76)
> at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
> (PramatiRequestDispatcher.java:105)
> at org.apache.struts.action.RequestProcessor.doForward
> (RequestProcessor.java:1033)
> at org.apache.struts.tiles.TilesRequestProcessor.doForward
> (TilesRequestProcessor.java:269)
> at org.apache.struts.action.RequestProcessor.processForwardConfig
> (RequestProcessor.java:436)
> at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
> (TilesRequestProcessor.java:312)
> at org.apache.struts.action.RequestProcessor.processActionForward
> (RequestProcessor.java:401)
> at org.apache.struts.action.RequestProcessor.process
> (RequestProcessor.java:279)
> at org.apache.struts.action.ActionServlet.process
> (ActionServlet.java:1422)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
> (ServiceInterceptor.java:294)
> at com.pramati.security.util.JAASSecurityHelper.doAs
> (JAASSecurityHelper.java:145)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.pramati.services.security.spi.SecurityHelper.doAs
> (SecurityHelper.java:130)
> at com.pramati.web.interceptors.ServiceInterceptor.preProcess
> (ServiceInterceptor.java:141)
> at com.pramati.web.interceptors.core.DefaultInterceptor.process
> (DefaultInterceptor.java:47)
> 

RE: Illegal target of jump or branch

2003-06-04 Thread Rajesh P
Try to split the JSP page and use  in the 
main jsp.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 5:25 PM
To: [EMAIL PROTECTED]
Subject: Illegal target of jump or branch


Hi, I'm  using a b3 version of Struts everything works fine my problem occurs 
when I try to use a lot of tags in the same page,about 120 ( many of them are 
img tag...)
The page that generetes the error is included with tiles in another page.
BTW I'm coding all with Pramati Studio.

Thanks a lot.
Marco.

This is how the error looks like:

 java.lang.VerifyError: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/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:232)
at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
(PramatiServletFactory.java:220)
at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
(PramatiServletFactory.java:317)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:169)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
Unhandled Error/ exception thrown from service method 
of "org.apache.struts.action.ActionServlet". Error is: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude
(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
(layout_eLeafLayout_pmt_0.java:662)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:172)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude
(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at 
com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
(webboard_message_page_message_pmt_0.java:76)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
(PramatiRequestDispatcher.java:105)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:269)
at org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:436)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:312)
at org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
(ServiceInterceptor.java:294)
at com.pramati.security.util.JAASSecurityHelper.doAs
(JAASSecurityHelper.java:145)
at java.lang.reflect.Method.invoke(Native Method)
at com.pramati.services.security.spi.SecurityHelper.doAs
(SecurityHelper.java:130)
at com.pramati.web.interceptors.ServiceInterceptor.preProcess
(ServiceInterceptor.java:141)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:47)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.FilterInterceptor.process
(FilterInterceptor.java:92)
at com.pramati.web.interceptors.core.InterceptorC

Illegal target of jump or branch

2003-06-04 Thread mmolinar
Hi, I'm  using a b3 version of Struts everything works fine my problem occurs 
when I try to use a lot of tags in the same page,about 120 ( many of them are 
img tag...)
The page that generetes the error is included with tiles in another page.
BTW I'm coding all with Pramati Studio.

Thanks a lot.
Marco.

This is how the error looks like:

 java.lang.VerifyError: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/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:232)
at com.pramati.web.servlet.core.PramatiServletFactory.loadServlet
(PramatiServletFactory.java:220)
at com.pramati.web.servlet.core.PramatiServletFactory.getServlet
(PramatiServletFactory.java:317)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:169)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
Unhandled Error/ exception thrown from service method 
of "org.apache.struts.action.ActionServlet". Error is: (class: 
com/pramati/jsp/generated/webboard_message_body_messageBody_pmt_1, method: 
_jspService signature: 
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse
;)V) Illegal target of jump or branch
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude
(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at com.pramati.jsp.generated.layout_eLeafLayout_pmt_0._jspService
(layout_eLeafLayout_pmt_0.java:662)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.include
(PramatiRequestDispatcher.java:172)
at org.apache.struts.tiles.TilesUtilStrutsModulesImpl.doInclude
(TilesUtilStrutsModulesImpl.java:124)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:161)
at org.apache.struts.taglib.tiles.InsertTag.doInclude
(InsertTag.java:703)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag
(InsertTag.java:818)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag
(InsertTag.java:467)
at 
com.pramati.jsp.generated.webboard_message_page_message_pmt_0._jspService
(webboard_message_page_message_pmt_0.java:76)
at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.servlet.core.PramatiRequestDispatcher.forward
(PramatiRequestDispatcher.java:105)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:1033)
at org.apache.struts.tiles.TilesRequestProcessor.doForward
(TilesRequestProcessor.java:269)
at org.apache.struts.action.RequestProcessor.processForwardConfig
(RequestProcessor.java:436)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig
(TilesRequestProcessor.java:312)
at org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:401)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.pramati.web.interceptors.ServiceInterceptor$ServiceAction.run
(ServiceInterceptor.java:294)
at com.pramati.security.util.JAASSecurityHelper.doAs
(JAASSecurityHelper.java:145)
at java.lang.reflect.Method.invoke(Native Method)
at com.pramati.services.security.spi.SecurityHelper.doAs
(SecurityHelper.java:130)
at com.pramati.web.interceptors.ServiceInterceptor.preProcess
(ServiceInterceptor.java:141)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:47)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.FilterInterceptor.process
(FilterInterceptor.java:92)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(InterceptorChainImpl.java:48)
at com.pramati.web.interceptors.core.DefaultInterceptor.process
(DefaultInterceptor.java:48)
at com.pramati.web.interceptors.core.InterceptorChainImpl.processNext
(Intercep

RE: Illegal target of jump or branch w/Tomcat

2002-11-21 Thread Emmanuel Bridonneau
Good stuff to all of you regarding overcoming the 64kb limitation in a single method.
JBoss 3.0.4 uses Tomcat 4.1.12, though we may want to try the version with integrated 
Jetty (JBossWeb) first.
Thanks a lot.



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 2:04 PM
To: Struts Users Mailing List
Subject: Re: Illegal target of jump or branch w/Tomcat




On Wed, 20 Nov 2002, Emmanuel Bridonneau wrote:

> Date: Wed, 20 Nov 2002 12:30:27 -0800
> From: Emmanuel Bridonneau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List' (E-mail)"
>     <[EMAIL PROTECTED]>
> Subject: Illegal target of jump or branch w/Tomcat
>
> Some double talk,
> so I ran into this JVM exeption after switching from the "oh you're too expensive 
>for me" Weblogic to "you're great for a free software" JBoss.
> Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
>generating the servlet code from a JSP.
> I intend to follow some suggestion I read and reduce the size of the .class files by:
>  - reducing the number of tags used by merging some functionalities at the expense 
>of a clean code
>  - putting some code outside of the jsp and including these snippets at run time
>
> It's a rather nasty and long undertaking.
> If anyone has encountered this type of exeption can you confirm this assumption and 
>what were the steps you took to overcome this limitation?
> Heard of a future Tomcat release that'll increase the 64kb limit?
> Thanks
>
> Configuration details:
> JBoss 2.4.4 bundle w/Tomcat 4.0.1
> Struts 1.0.2
>

Recent Tomcat 4.1.x releases include a completely rewritten "Jasper 2" JSP
Page Compiler.  Besides running custom tags a ***lot*** faster (very
visible on a page with lots of Struts tags), this compiler tries to work
around the 64k limit on method size by factoring out some nested chunks of
code into separate methods, thus arbitrarily increasing the maximum size
of a page.  This works, however, only if you have zero scriptlets -- but
that should not be a problem for well-designed JSP pages.

You'd have to check with the JBoss folks when they plan to integrate with
a 4.1 release of Tomcat.

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread Craig R. McClanahan


On Wed, 20 Nov 2002, Emmanuel Bridonneau wrote:

> Date: Wed, 20 Nov 2002 12:30:27 -0800
> From: Emmanuel Bridonneau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List' (E-mail)"
>     <[EMAIL PROTECTED]>
> Subject: Illegal target of jump or branch w/Tomcat
>
> Some double talk,
> so I ran into this JVM exeption after switching from the "oh you're too expensive 
>for me" Weblogic to "you're great for a free software" JBoss.
> Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
>generating the servlet code from a JSP.
> I intend to follow some suggestion I read and reduce the size of the .class files by:
>  - reducing the number of tags used by merging some functionalities at the expense 
>of a clean code
>  - putting some code outside of the jsp and including these snippets at run time
>
> It's a rather nasty and long undertaking.
> If anyone has encountered this type of exeption can you confirm this assumption and 
>what were the steps you took to overcome this limitation?
> Heard of a future Tomcat release that'll increase the 64kb limit?
> Thanks
>
> Configuration details:
> JBoss 2.4.4 bundle w/Tomcat 4.0.1
> Struts 1.0.2
>

Recent Tomcat 4.1.x releases include a completely rewritten "Jasper 2" JSP
Page Compiler.  Besides running custom tags a ***lot*** faster (very
visible on a page with lots of Struts tags), this compiler tries to work
around the 64k limit on method size by factoring out some nested chunks of
code into separate methods, thus arbitrarily increasing the maximum size
of a page.  This works, however, only if you have zero scriptlets -- but
that should not be a problem for well-designed JSP pages.

You'd have to check with the JBoss folks when they plan to integrate with
a 4.1 release of Tomcat.

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread Martin Cooper


On Wed, 20 Nov 2002, Martin Cooper wrote:

>
>
> On Wed, 20 Nov 2002, Emmanuel Bridonneau wrote:
>
> > Some double talk,
> > so I ran into this JVM exeption after switching from the "oh you're too expensive 
>for me" Weblogic to "you're great for a free software" JBoss.
> > Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
>generating the servlet code from a JSP.
> > I intend to follow some suggestion I read and reduce the size of the .class files 
>by:
> >  - reducing the number of tags used by merging some functionalities at the expense 
>of a clean code
> >  - putting some code outside of the jsp and including these snippets at run time
> >
> > It's a rather nasty and long undertaking.
> > If anyone has encountered this type of exeption can you confirm this assumption 
>and what were the steps you took to overcome this limitation?
> > Heard of a future Tomcat release that'll increase the 64kb limit?
>
> The latest versions of Tomcat use Jasper2 to compile JSP pages. Jasper2
> apparently breaks up the generated code to avoid hitting the limit you are
> encountering. If you can move to a later Tomcat, that would probably be
> the best way to go.
>
> If you can't switch container, one other point to bear in mind is that
> non-body tags generate less code than body tags. If you have your own tag
> library, you might consider changing some of the body tags to non-body
> tags. If you're really desperate, you could created modified versions of
> some of the Struts tags so that they are non-body tags, or create
> composite tags. (This is something I ended up having to do some time ago
> because some of my pages were blowing the limit on a daily basis!)

One other thing I forgot to mention - you can also use  to
break your pages into smaller chunks for the JSP compiler, and put them
back together at run time.

--
Martin Cooper


>
> --
> Martin Cooper
>
>
> > Thanks
> >
> > Configuration details:
> > JBoss 2.4.4 bundle w/Tomcat 4.0.1
> > Struts 1.0.2
> >
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 
> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread Martin Cooper


On Wed, 20 Nov 2002, Emmanuel Bridonneau wrote:

> Some double talk,
> so I ran into this JVM exeption after switching from the "oh you're too expensive 
>for me" Weblogic to "you're great for a free software" JBoss.
> Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
>generating the servlet code from a JSP.
> I intend to follow some suggestion I read and reduce the size of the .class files by:
>  - reducing the number of tags used by merging some functionalities at the expense 
>of a clean code
>  - putting some code outside of the jsp and including these snippets at run time
>
> It's a rather nasty and long undertaking.
> If anyone has encountered this type of exeption can you confirm this assumption and 
>what were the steps you took to overcome this limitation?
> Heard of a future Tomcat release that'll increase the 64kb limit?

The latest versions of Tomcat use Jasper2 to compile JSP pages. Jasper2
apparently breaks up the generated code to avoid hitting the limit you are
encountering. If you can move to a later Tomcat, that would probably be
the best way to go.

If you can't switch container, one other point to bear in mind is that
non-body tags generate less code than body tags. If you have your own tag
library, you might consider changing some of the body tags to non-body
tags. If you're really desperate, you could created modified versions of
some of the Struts tags so that they are non-body tags, or create
composite tags. (This is something I ended up having to do some time ago
because some of my pages were blowing the limit on a daily basis!)

--
Martin Cooper


> Thanks
>
> Configuration details:
> JBoss 2.4.4 bundle w/Tomcat 4.0.1
> Struts 1.0.2
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread James Childers
We ran across this exact same problem recently, and it has to do with the way 
that the servlet container does the JSP --> Java translation. You are likely to
encounter this problem if the container puts everything  -- scriptlets, custom 
tags, etc. -- into a single monolithic _jspService method, which is what most 
containers do. I asked the Jikes-dev list about this, and this was the response:

"It is a fundamental flaw in the .class file format.  You currently can't 
have a method with more than 64K bytecodes.  (Well, technically you can, 
but it cannot have any exception handlers after the 64K limit, and it 
relies on the mercy of the VM to not crash).  See JVMS 4.10.  Sun is 
considering extending the .class file format in JDK 1.5, to allow up to 
4GB bytecodes in a method, at the expense of requiring such .class files 
to be run on a 1.5 compatible VM, but that doesn't help you now."

We saw this problem when we started using 400+ custom tags in a single page. The 
newer versions of Tomcat do not suffer from this problem because they are smart 
enough to put the custom tag logic into separate private methods within the 
generated .java file. (At least when I tested it on Tomcat 4.1.12 the problem
disappeared for me. YMMV.)

-= James

> Some double talk,
> so I ran into this JVM exeption after switching from the "oh 
> you're too expensive for me" Weblogic to "you're great for a 
> free software" JBoss.
> Turns out that Tomcat (used in conjunction w/JBoss) has a 
> 64kb limitation whilst generating the servlet code from a JSP.
> I intend to follow some suggestion I read and reduce the size 
> of the .class files by:
>  - reducing the number of tags used by merging some 
> functionalities at the expense of a clean code
>  - putting some code outside of the jsp and including these 
> snippets at run time
> 
> It's a rather nasty and long undertaking.
> If anyone has encountered this type of exeption can you 
> confirm this assumption and what were the steps you took to 
> overcome this limitation?
> Heard of a future Tomcat release that'll increase the 64kb limit?
> Thanks
> 
> Configuration details:
> JBoss 2.4.4 bundle w/Tomcat 4.0.1
> Struts 1.0.2

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Illegal target of jump or branch w/Tomcat

2002-11-20 Thread edgar
I believe the simplest way of dealing with this is just to use nested
classes.  Dr. Kabutz has an interesting discussion of Java limitations
(attached).

I.E. if you have a class

class A {
m1
m2
...
mn
}

Use instead

class A1 {
m1
m2
...
m (n/2)
}

class A2 extends A1 {
m (n/2+1)
...
mn
}

Let me know if this solves your problem.

Edgar

-Original Message-
From: Emmanuel Bridonneau [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 20, 2002 3:30 PM
To: ''Struts Users Mailing List' (E-mail)'
Subject: Illegal target of jump or branch w/Tomcat


Some double talk,
so I ran into this JVM exeption after switching from the "oh you're too
expensive for me" Weblogic to "you're great for a free software" JBoss.
Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb
limitation whilst generating the servlet code from a JSP. I intend to
follow some suggestion I read and reduce the size of the .class files
by:
 - reducing the number of tags used by merging some functionalities at
the expense of a clean code
 - putting some code outside of the jsp and including these snippets at
run time

It's a rather nasty and long undertaking.
If anyone has encountered this type of exeption can you confirm this
assumption and what were the steps you took to overcome this limitation?
Heard of a future Tomcat release that'll increase the 64kb limit? Thanks

Configuration details:
JBoss 2.4.4 bundle w/Tomcat 4.0.1
Struts 1.0.2


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--- Begin Message ---
Title: 2002-10-29 The Java Specialists' Newsletter [Issue 059] - Verry long Strings and other things





2002-10-29 The Java Specialists' Newsletter [Issue 059] - Verry long Strings and other things
Author: 
  Dr. Heinz M. Kabutz

  If you are not already subscribed to this newsletter, please send an email to
  [EMAIL PROTECTED].
  Be warned that if you are a beginner in Java, you will at times struggle to keep up.
  The archive of past newsletters is kept at http://www.javaspecialists.co.za



Welcome to the 59th edition of The Java(tm) Specialists' Newsletter sent to 5008 Java
Specialists in 89
countries.  We have broken through the 5000 mark, I am
very grateful to all of you for "spreading the word" about this
newsletter.



A few monts ago, my daugter pulled off one of my keys from
my Asus notebook.  Te irritating part is tat te company from wom I
bougt te notebook went bankrupt, and it is now really ard to get
spare parts in Sout Africa.  I would tell you wic key it is
if I could ... ;-)



I started typing this newsletter whilst sitting in a coach, speeding
across the English country-side.  I spent three days in October
at a large company in London, presenting my Design
Patterns Course and followed that up with a quick visit to mom-in-law
in Sidmouth.  Whilst in London, I met up with a number of
my newsletter subscribers from the company, and they gave me a
memorable introduction to English beverages.  Thanks especially
to Joe for organising it.  That Design Patterns Course was the
best I've had so far, gauged by the discussions we had around
the various subtleties of the patterns.  I am also looking at
running a Design Patterns Course in Munich, Germany
some time at the end of December 2002 or January 2003.  We have
already identified a very
nice hotel where we would like to run the course.  Please
email 
me if you would like to attend.



The British Broadcast Corporation (BBC) lists
50 Places to See Before
You Die.  Cape Town, the city in which I live, is listed as
number 5, after The Grand Canyon, Great Barrier Reef, Florida and South Island.
 I hope that you have been convinced that you should come for a visit :-)  And while you pack your suitcase, pop me an email
and let me know when you're arriving.  My father-in-law is a
very reliable taxi-driver who will take you all around Cape
Town and will not rip you off.  Of course, I also love meeting with my subscribers
as time permits.  And lastly, if you want to use the trip as a
tax break, why not throw in some training with "The Java Specialists"?
If you seriously want to do that, please send me an email.


Verry long Strings and other things


One of the things I enjoy doing, is seeing how far I can take things.
For example, the rev counter of my Alfa Romeo is limited to 6000
revolutions per minute (revs).  The question is, for each of the gears,
what is the km/h equivalent of 6000 revs?  I found out the hard way
on the first day when I had just gotten the car.  I was sitting next
to a Mercedes at a traffic light, waiting for it t

Illegal target of jump or branch w/Tomcat

2002-11-20 Thread Emmanuel Bridonneau
Some double talk,
so I ran into this JVM exeption after switching from the "oh you're too expensive for 
me" Weblogic to "you're great for a free software" JBoss.
Turns out that Tomcat (used in conjunction w/JBoss) has a 64kb limitation whilst 
generating the servlet code from a JSP.
I intend to follow some suggestion I read and reduce the size of the .class files by:
 - reducing the number of tags used by merging some functionalities at the expense of 
a clean code
 - putting some code outside of the jsp and including these snippets at run time

It's a rather nasty and long undertaking.
If anyone has encountered this type of exeption can you confirm this assumption and 
what were the steps you took to overcome this limitation?
Heard of a future Tomcat release that'll increase the 64kb limit?
Thanks

Configuration details:
JBoss 2.4.4 bundle w/Tomcat 4.0.1
Struts 1.0.2


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: HELP - "Illegal target of jump or branch"

2001-03-20 Thread Martin Cooper

As I mentioned in an earlier post on this topic, using <%@include%> does 
not help, since it's a compile time include (similar to #include in C++). 
Using  can help, though.

--
Martin Cooper


At 01:44 PM 3/20/01, Maya Muchnik wrote:
>Several guys suggested to replace a lot of tags in one JSP to several 
>JSPs, and
>make the first one with <@ include file=.../>
>
>Marc Ellison wrote:
>
> > Hi,
> >
> > I have been getting a very interesting error folks ;-)
> >
> > I have constructed a jsp file that uses ALOT of struts-defined tags, and
> > which I have running with Tomcat.  Initially the page would not work so I
> > commented out a lot of the code.  The page now works to an extent, but as
> > soon as I try to uncomment any of the other struts tags it throws this 
> error
> > message.
> >
> > javax.servlet.ServletException: (class:
> > _0002fdemographicDetails_0002ejspdemographicDetails_jsp_73, method:
> > _jspService signature:
> > 
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
> > nse;)V)
> >
> > I have looked in the mail archive and one guy suggested changing the values
> > of the stack/memory allocation pools to a higher value as it couldn't cope
> > with the number of tags.  However, I still get the same error. Has anybody
> > encountered a similar problemif so please HELP!!
> > Kind regards
> > Marc





Re: HELP - "Illegal target of jump or branch"

2001-03-20 Thread Martin Cooper

I am, unfortunately, intimately familiar with this problem.

The problem is that there is a limit on the size of a compiled method in a 
Java class file, and that limit is what we're running up against. Recall 
that a JSP page is compiled into a servlet, and into essentially only one 
method in that servlet. Hence, if your page contains many, many tags, that 
method becomes too big, and up comes the exception that you're seeing.

There are a couple of (partial) solutions.

1) Break your giant page up into multiple smaller pages and bring them 
together at run time using . Note that <%@include> won't work, 
because that's a compile-time include, which will get you straight back to 
the original problem.

2) Look for places to save on tags. For example, the  tag was 
recently extended to allow the specification of the text to display, so 
that you can replace this:



with this:



If you have a lot of cases of this pattern, it can help quite a bit. In 
addition to the  tag, some other Struts tags allow the same 
shortcut to including the text. Also, you might consider replacing 
 sequences with  if you can build an appropriate 
collection up front.

Unfortunately, we can't use solution (1), because our giant page is almost 
entirely one . (Please don't ask... :-} ) Many of the  
tags won't work if they are on a separate page from the  tag 
itself. That means I've spent quite some time on option (2).

We have several of our own tags, too, so that was the next place for me to 
look. I discovered that changing some frequently used tags from extending 
BodyTagSupport to extending TagSupport, and marking them with 
empty in the .tld file, made a significant 
reduction in generated code size. Of course, this is not always feasible, 
but it helped us quite a bit.

One other trick is to create custom tags for frequently used groups of 
related elements. For example, I created a simple DatePickerTag which is a 
Struts-like tag that combines three drop-down boxes for month, day and 
year, with the localized strings obtained from the JVM, and the current 
values pulled from a bean.

That's about all I can think of that I've tried so far. All our pages are 
now within the limit, but one is very close to breaking it. I really want 
to put a "do not touch" notice on that file!

Hope this helps.

--
Martin Cooper


At 12:06 PM 3/20/01, Marc Ellison wrote:
>Hi,
>
>I have been getting a very interesting error folks ;-)
>
>I have constructed a jsp file that uses ALOT of struts-defined tags, and
>which I have running with Tomcat.  Initially the page would not work so I
>commented out a lot of the code.  The page now works to an extent, but as
>soon as I try to uncomment any of the other struts tags it throws this error
>message.
>
>javax.servlet.ServletException: (class:
>_0002fdemographicDetails_0002ejspdemographicDetails_jsp_73, method:
>_jspService signature:
>(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
>nse;)V)
>
>I have looked in the mail archive and one guy suggested changing the values
>of the stack/memory allocation pools to a higher value as it couldn't cope
>with the number of tags.  However, I still get the same error. Has anybody
>encountered a similar problemif so please HELP!!
>Kind regards
>Marc





HELP - "Illegal target of jump or branch"

2001-03-20 Thread Marc Ellison

Hi,

I have been getting a very interesting error folks ;-)

I have constructed a jsp file that uses ALOT of struts-defined tags, and
which I have running with Tomcat.  Initially the page would not work so I
commented out a lot of the code.  The page now works to an extent, but as
soon as I try to uncomment any of the other struts tags it throws this error
message.

javax.servlet.ServletException: (class:
_0002fdemographicDetails_0002ejspdemographicDetails_jsp_73, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V)

I have looked in the mail archive and one guy suggested changing the values
of the stack/memory allocation pools to a higher value as it couldn't cope
with the number of tags.  However, I still get the same error. Has anybody
encountered a similar problemif so please HELP!!
Kind regards
Marc




Re: HELP - "Illegal target of jump or branch"

2001-03-20 Thread DONNIE HALE

I know other folks here have run into the Java (not Tomcat, not Struts) limitation of 
methods being no bigger than 64K (lines? bytecode?). I'm not sure what the resulting 
error is, but that may be your problem.

Donnie


>>> [EMAIL PROTECTED] 03/20/01 03:06PM >>>
Hi,

I have been getting a very interesting error folks ;-)

I have constructed a jsp file that uses ALOT of struts-defined tags, and
which I have running with Tomcat.  Initially the page would not work so I
commented out a lot of the code.  The page now works to an extent, but as
soon as I try to uncomment any of the other struts tags it throws this error
message.

javax.servlet.ServletException: (class:
_0002fdemographicDetails_0002ejspdemographicDetails_jsp_73, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V)

I have looked in the mail archive and one guy suggested changing the values
of the stack/memory allocation pools to a higher value as it couldn't cope
with the number of tags.  However, I still get the same error. Has anybody
encountered a similar problemif so please HELP!!
Kind regards
Marc





Re: HELP - "Illegal target of jump or branch"

2001-03-20 Thread Maya Muchnik

Several guys suggested to replace a lot of tags in one JSP to several JSPs, and
make the first one with <@ include file=.../>

Marc Ellison wrote:

> Hi,
>
> I have been getting a very interesting error folks ;-)
>
> I have constructed a jsp file that uses ALOT of struts-defined tags, and
> which I have running with Tomcat.  Initially the page would not work so I
> commented out a lot of the code.  The page now works to an extent, but as
> soon as I try to uncomment any of the other struts tags it throws this error
> message.
>
> javax.servlet.ServletException: (class:
> _0002fdemographicDetails_0002ejspdemographicDetails_jsp_73, method:
> _jspService signature:
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
> nse;)V)
>
> I have looked in the mail archive and one guy suggested changing the values
> of the stack/memory allocation pools to a higher value as it couldn't cope
> with the number of tags.  However, I still get the same error. Has anybody
> encountered a similar problemif so please HELP!!
> Kind regards
> Marc




RE: HELP - "Illegal target of jump or branch"

2001-03-20 Thread McCay, Larry

Marc,

This may be related to the size of you resulting jspservice method.

If that is the case you need to break it up into multiple includes - as
recommended to someone else earlier today.

lar

-Original Message-
From: Marc Ellison [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 3:07 PM
To: '[EMAIL PROTECTED]'
Cc: Kyle Robinson
Subject: HELP - "Illegal target of jump or branch" 


Hi,

I have been getting a very interesting error folks ;-)

I have constructed a jsp file that uses ALOT of struts-defined tags, and
which I have running with Tomcat.  Initially the page would not work so I
commented out a lot of the code.  The page now works to an extent, but as
soon as I try to uncomment any of the other struts tags it throws this error
message.

javax.servlet.ServletException: (class:
_0002fdemographicDetails_0002ejspdemographicDetails_jsp_73, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V)

I have looked in the mail archive and one guy suggested changing the values
of the stack/memory allocation pools to a higher value as it couldn't cope
with the number of tags.  However, I still get the same error. Has anybody
encountered a similar problemif so please HELP!!
Kind regards
Marc



RE: "Illegal target of jump or branch" Error

2001-02-07 Thread TMalvos


Thank you for your explanations.  As a result I changed the -ms and -mx
options for the Java VM to request 256 MB of heap memory...and it worked.


   
   
"D'Orto,   
   
David"   To: "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>  
             Subject:     RE: "Illegal target of jump or 
branch" Error
   
   
02/07/01   
   
09:05 AM   
   
Please 
   
respond to 
   
struts-user
   
   
   
   
   




I have also seen this problem when a jsp was being compiled that had a lot
of struts tags in it (like 250 or so).  I also believe it has to do with
the
method that is generated when the jsp is compiled being too large.  When I
took the class that was generated by Tomcat for the page and compile it on
the command line, I get the 64kb limit exception.  I do not know why the
"Illegal target of jump or branch" error gets thrown in Tomcat as opposed
to
the 64kb limit exception.

Dave D'Orto
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 5:48 AM
To: [EMAIL PROTECTED]
Subject: Re: "Illegal target of jump or branch" Error



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: 
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)
>

RE: "Illegal target of jump or branch" Error

2001-02-07 Thread D'Orto, David

I have also seen this problem when a jsp was being compiled that had a lot
of struts tags in it (like 250 or so).  I also believe it has to do with the
method that is generated when the jsp is compiled being too large.  When I
took the class that was generated by Tomcat for the page and compile it on
the command line, I get the 64kb limit exception.  I do not know why the
"Illegal target of jump or branch" error gets thrown in Tomcat as opposed to
the 64kb limit exception.

Dave D'Orto
[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 5:48 AM
To: [EMAIL PROTECTED]
Subject: Re: "Illegal target of jump or branch" Error



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: 
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?
>










Re: "Illegal target of jump or branch" Error

2001-02-07 Thread horn_ken


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: 
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?
>











Re: "Illegal target of jump or branch" Error

2001-02-06 Thread Martin Cooper

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:  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?
>





HELP: "Illegal target of jump or branch" Error

2001-02-06 Thread TMalvos

I receive the following error when accessing my JSP in WebLogic 5.1 (sp8):

Tue Feb 06 10:56:07 EST 2001:  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.java,

Compiled
Code)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:404)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:101)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:124)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.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?