java.lang.VerifyError: Mismatched stack types

February 21, 2006

All of a sudden obfuscated/optimized applets started to throw up a verification error.

java.lang.VerifyError: (class: am, method: a signature: (I)Ljava/lang/Object;) Mismatched stack types
	at ae.(Unknown Source)
	at n.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.radinks.dnd.DNDAppletPlus.(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at java.lang.Class.newInstance0(Class.java:350)
	at java.lang.Class.newInstance(Class.java:303)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:721)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1757)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:650)
	at sun.applet.AppletPanel.run(AppletPanel.java:324)
	at java.lang.Thread.run(Thread.java:595)

Usually such errors are seen when there is a java version conflicts. The last time I saw this error was due to a bug in the JVM. So I naturally assumed that is the reason this time around as well and upgraded to Java SDK 1.5 update 6. The problem did not go away.

Then I remembered that on a previous occain when I had such a problem, it was caused by an incompatibility between the Java version and Proguard.

Fortunately there was a new version of proguard available and it did turn out to be the solution once again.


Posted by raditha at February 21, 2006 3:08 PM
Your Ad Here

 

Jabber  |  Linux  |  mySQL  |  PHP  |  Java  |  Site Map  |  Wiki

Downloads  |  About  |  Links  |  Contact  |  Home

 

Copyright © Raditha Dissanayake 2003 - 2007

Terms of Use  |  Privacy

 

 

February 2006
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28