Reputation: 11
The following code was working fine on java 1.6
and maven 2.2.1
:
public class GTMEnrollmentOutputRecord extends com.ibm.ivj.eab.record.cobol.CobolRecord implements java.io.Serializable
{
public GTMEnrollmentOutputRecord() throws RecordException
{
try {
//Getting error at the below line
GTMEnrollmentOutputRecordType dynRecType = new GTMEnrollmentOutputRecordType();
After upgrading to Java 1.7
and Maven 3.3.3
for IBM Webspehere 8.5.5.3
I am getting the following error:
java.lang.VerifyError: JVMVRFY012 stack shape inconsistent
Upvotes: 1
Views: 1116
Reputation: 44932
Java 7 changed the format of the stack frame and introduced format checks in JSR 202: Java Class File Specification Update. The most likely cause of this error is a 3rd party library that generates bytecode in older, Java 6 format e.g. ASM or CGLIB.
You need to inspect your project dependencies and ensure that all of them are supporting Java 7.
Upvotes: 2