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