You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ken X Horn <ho...@jpmorgan.com> on 2000/07/24 18:40:24 UTC

VerifyError - ... method: _jspService

I've recently got the following error when my servlet container is trying to
instantiate a Jasper generated servlet..

java.lang.VerifyError: (class: com/foo/bar/SearchForm,
     method: _jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V)
     Illegal target of jump or branch
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:580)
 ....

The JSP page itself is quite large (about 500 lines) but it makes heavy use of
custom tags (some of my own, some from struts),
the compiled JSP, ie Java source file is just over 400k, and the class file is
72k. Since most of the code ends up in the _jspService
method I think this may be blowing the 64k limit on a method size...

I've tried to break the code up by using <jsp:include />'s but, can't do much
since there is an enclosing <struts:form> tag that stops the include
working... (can't flush inside a custom tag).

ideas?

One solution may be to implement my own version of jsp:include to avoid the
flushing issue.

Thanks,

Ken.

PS Looking at the byte code (not very familiar with it though) , there are some
jsr opcodes with negative values is this okay?



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.