Hello World Plugin - ClassFormatError : StackMapTable format error: bad class index

Hello,
    I am using Intellij 9.0.3 Ultimate Edition to develop my first intellij plugin which just shows up a item in the Windows menu & clicking it displays "Hello World". I followed the steps mentioned in the tutorial here. When I run the plugin I get the below error

Exception in thread "main" java.lang.ClassFormatError: StackMapTable format error: bad class index
 at com.intellij.openapi.application.PathManager.isIdeaHome(PathManager.java:99)
 at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:81)
 at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:309)
 at com.intellij.ide.ClassloaderUtil.initClassloader(ClassloaderUtil.java:88)
 at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)
 at com.intellij.ide.Bootstrap.main(Bootstrap.java:35)
 at com.intellij.idea.Main.main(Main.java:54)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)



Has anyone faced such an issue ? I think my Intellij Plugin SDK configuration is an issue but I am not able to figure out. I have added three jar files named "openapi.jar, annotations.jar and rt.jar" in the SDK's classpath.

Any help would be appreciated.

Thanks in advance.
2 comments
Comment actions Permalink

Hello Amit,

Your IntelliJ IDEA installation seems to be corrupt. Please try reinstalling.

Hello,
I am using Intellij 9.0.3 Ultimate Edition to develop my first
intellij plugin which just shows up a item in the Windows menu &
clicking it displays "Hello World". I followed the steps mentioned in
the tutorial
http://www.jetbrains.com/idea/documentation/howto_03.html#Where to
Begin?. When I run the plugin I get the below error
Exception in thread "main" java.lang.ClassFormatError: StackMapTable
format error: bad class index
at
com.intellij.openapi.application.PathManager.isIdeaHome(PathManager.ja
va:99)
at
com.intellij.openapi.application.PathManager.getHomePath(PathManager.j
ava:81)
at
com.intellij.openapi.application.PathManager.loadProperties(PathManage
r.java:309)
at
com.intellij.ide.ClassloaderUtil.initClassloader(ClassloaderUtil.java:
88)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:39)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:35)
at com.intellij.idea.Main.main(Main.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
Has anyone faced such an issue ? I think my Intellij Plugin SDK
configuration is an issue but I am not able to figure out. I have
added three jar files named "openapi.jar, annotations.jar and rt.jar"
in the SDK's classpath.

Any help would be appreciated.

Thanks in advance.

---
Original message URL:
http://devnet.jetbrains.net/message/5271724#5271724

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks for the reply. The issue is with the jdk version I was using. I was compiling and running with "jdk1.6.0_ea". After upgrading to jdk 1.6.21 the below issue got resolved. Thanks to Mihai-Claudiu Toader who helped me to resolve the issue.

Regards,
Amit.

0

Please sign in to leave a comment.