Java7 ClassFormatError: Illegal local variable table length while creating the object

半腔热情 提交于 2020-01-09 11:08:30

问题


I am getting this strange error while executing the following code.

EncoderRequest encoderRequest = new EncoderRequest(sid,appTxnId,pfid,transactionType,"",isUpdatetype9,true);

I have checked all the parameter values are valid. I am using java7 plateform. can any one have come across this situation, please help.

following is the part of stacktrace i am getting.

Caused by: java.lang.ClassFormatError: Illegal local variable table length 48 in method com.cmc.facts.encoder.EncoderRequest.<init>(JLjava/lang/String;Ljava/lang/Long;Lcom/cmc/facts/enums/TransactionType;Ljava/lang/String;ZZ)V at com.cmc.facts.nist.NistReaderModel.preprossingOfNistFile(NistReaderModel.java:180) at com.cmc.facts.action.interstate.InterStateAction.uploadFIIF(InterStateAction.java:645) ... 115 more


回答1:


There have been previous reports of the same error, on Junit tests and similar..

For them, adding the JVM arg -XX:-UseSplitVerifier seemed to work

Have a look at this article




回答2:


You can also do this config : Add -noverify in your jvg args

For ant config you can do : <jvmarg value="-noverify"/>

You can follow the link for more details on why we need to do this.



来源:https://stackoverflow.com/questions/17993041/java7-classformaterror-illegal-local-variable-table-length-while-creating-the-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!