[英]java.lang.VerifyError: Stack shape inconsistent
The following code was working fine on java 1.6
and maven 2.2.1
: 以下代码在
java 1.6
和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: 升级到
IBM Webspehere 8.5.5.3
Java 1.7
和Maven 3.3.3
,出现以下错误:
java.lang.VerifyError: JVMVRFY012 stack shape inconsistent
Java 7 changed the format of the stack frame and introduced format checks in JSR 202: Java Class File Specification Update . Java 7更改了堆栈框架的格式,并在JSR 202:Java类文件规范更新中引入了格式检查。 The most likely cause of this error is a 3rd party library that generates bytecode in older, Java 6 format eg ASM or CGLIB .
导致此错误的最可能原因是第三方库,该库以较旧的Java 6格式(例如ASM或CGLIB)生成字节码。
You need to inspect your project dependencies and ensure that all of them are supporting Java 7. 您需要检查项目依赖项,并确保它们都支持Java 7。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.