My name is Veera. I'm a full stack web developer. I have founded http://www.timethetask.com and currently working on my next product. Veera is a DZone MVB and is not an employee of DZone and has posted 33 posts at DZone. You can read more from them at their website. View Full User Profile

Java.lang.VerifyError: Expecting a stackmap frame at branch target – JDK 7

02.06.2012
| 16040 views |
  • submit to reddit

Right now, when I try to persist an object in Google App Engine, I’m facing the error “Java.lang.VerifyError: Expecting a stackmap frame at branch target“. I’m using JDK 7 and it seems like the problem lies with this JDK.

After googling a bit, I found that there seems to be two solutions to fix this problem.

Solution 1: Change to JDK 6

As simple as is, change your JDK to version 6 and you won’t be bugged by this exception anymore. Well, in my case, I have to use JDK 7. So, moving on to the solution 2.

Solution 2: Configure JVM

Go to Windows -> Preferences -> Installed JREs. Select the default JVM and click edit. Then add this parameter as VM argument “-XX:-UseSplitVerifier” as seen below.

This should solve the issue.

 

From http://veerasundar.com/blog/2012/01/java-lang-verifyerror-expecting-a-stackmap-frame-at-branch-target-jdk-7/

Published at DZone with permission of Veera Sundar, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:

Comments

Christopher Deckers replied on Mon, 2012/02/06 - 7:31am

Hi,

If I am not mistaken, you are hitting an Eclipse bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362591

A patch exists in the bug report. I have applied the patch on the relevant JAR file of my Eclipse 3.7.1 and so far everything seems to work fine.

Hope this helps,
-Christopher

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.