tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken X Horn" <horn_...@jpmorgan.com>
Subject VerifyError - ... method: _jspService
Date Mon, 24 Jul 2000 16:40:24 GMT

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.


Mime
View raw message