PRASANTHMV PRASANTHMV - 11 months ago 65
Java Question

What will be reason for Classformat Exception?

[junit] Illegal local variable table length 87 in method
[junit] java.lang.ClassFormatError: Illegal local variable tabl
e length 87 in method com.netspective.axiom.repo.couchbase.CouchBas

I am using Java 1.8 . I have written a junit test case. Test is running through ant task.
Junit is 4.11 and ant is 1.9.1 .

The above error is coming while running the rest. What will be reason. Configuration file supplies all connection properties. Is there any special case with junit under java 8?

Please help me.


Someone has asked (almost) the same question. He solved it by adding the following JVM arguments:


Here you have the question of this user on SO. And the problem is somewhat explained here.