Thursday, August 16, 2012

Getting error “Illegal local variable table length 5 in method” while running Junit using Java version 7

I was facing a strange issue while running Junit test cases using Java 1.7 + ant.

I debug a lot but not able to find a solution using ant+ junit.

I made changes to my Junit target and added in jvm args "-XX:-UseSplitVerifier

 I was able to get rid of the problem.

Issue was mainly due to Java Byte code.


  1. Is this issue related to weblogic configuration or applications?

  2. It was just related to Java Byte code nothing related to weblogic.