WASJDK: java.lang.VerifyError under JDK 1.2.2

Technote (FAQ)
Problem
Classes are developed in VAJ on a Windows® machine, then the code is deployed to Websphere® running on a Sun (Solaris™) machine. The following error occurs (various types of messages can follow the java.lang.VerifyError):

java.lang.VerifyError:jobs/n_25_wjobs/_create_jsp_0._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V at pc25731: wrong type on stack (found: r, expected: v)
Solution
There is a problem with the 1.2.2 Sun Solaris Production JDK™ interpreting and/or verifying classes generated by VAJ. The Sun JDK is not following the JDK specifications properly and cannot handle certain fully-spec-compliant code generated by VAJ. This is traced to a some defects in the Sun JDK, which are fixed in the 1.2.2_09 release. There are 2 solutions to the problem:
  1. Recompile the failing class on the Sun (Solaris) machine.
    Note: In some cases, this might require recompiling all application classes, including EJB™s.
  2. Upgrade Websphere® Application Server to 3.5.6, which includes Sun JDK 1.2.2_10.
Cross Reference information
SegmentProductComponentPlatformVersionEdition
Software DevelopmentVisualAge for Java











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Java SDK
Operating system(s): Solaris, Windows 2000, Windows NT
Software version: 3.5
Software edition: Edition Independent
Reference #: 1050391
IBM Group: Software Group
Modified date: 2004-03-10