Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 294
Satish Avatar asked Aug 01 '13 11:08

Satish


2 Answers

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.

like image 164
AbhishekAsh Avatar answered Nov 15 '22 18:11

AbhishekAsh


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

like image 35
Cristian Meneses Avatar answered Nov 15 '22 18:11

Cristian Meneses