samples/plugin broken -- plus: how to get rid of it!

hi,

of out curiosity i opened the samples/plugin project and run it. it seems it doesn't work any more with current IDEA 10. this is the errors i get when i launch it:

/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Xbootclasspath/a:/Applications/IntelliJ IDEA 10 CE.app/lib/boot.jar -Didea.config.path=/Users/hhrutz/Library/Caches/IntelliJIdea10CE/plugins-sandbox/config -Didea.system.path=/Users/hhrutz/Library/Caches/IntelliJIdea10CE/plugins-sandbox/system -Didea.plugins.path=/Users/hhrutz/Library/Caches/IntelliJIdea10CE/plugins-sandbox/plugins -Didea.smooth.progress=false -Dapple.laf.useScreenMenuBar=true -Dfile.encoding=MacRoman -classpath /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/tools.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/idea.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/bootstrap.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/extensions.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/util.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/openapi.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/jdom.jar:/Applications/IntelliJ IDEA 10 CE.app/lib/log4j.jar com.intellij.idea.Main
[   2814]  ERROR - ij.components.ComponentManager - Error while registering component: com.intellij.openapi.components.ComponentConfig@3b2601c
com.intellij.diagnostic.PluginException: com.intellij.openapi.samples.SampleApplicationPlugin [Plugin: Sample]
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:492)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:466)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$100(ComponentManagerImpl.java:452)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:119)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:383)
    at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:461)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:102)
    at com.intellij.idea.MainImpl$2.run(MainImpl.java:96)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:652)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:505)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:404)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: com.intellij.openapi.samples.SampleApplicationPlugin
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:70)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:476)
    ... 20 more
[   2817]  ERROR - ij.components.ComponentManager - JDK: 1.6.0_20
[   2817]  ERROR - ij.components.ComponentManager - VM: Java HotSpot(TM) 64-Bit Server VM
[   2817]  ERROR - ij.components.ComponentManager - Vendor: Apple Inc.
[   2817]  ERROR - ij.components.ComponentManager - OS: Mac OS X
[   2817]  ERROR - ij.components.ComponentManager - Original exception:  
java.lang.ClassNotFoundException: com.intellij.openapi.samples.SampleApplicationPlugin
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:70)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:476)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:466)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$100(ComponentManagerImpl.java:452)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:119)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:383)
    at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:461)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:102)
    at com.intellij.idea.MainImpl$2.run(MainImpl.java:96)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:652)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:505)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:404)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

This wouldn't be so bad, if not IDEA somehow had permanently registered it. Now when i try to run my own plugin, whenever the sandbox IDEA starts up, the above exception is thrown. so the question is: how did that damn sample plugin registered, and how can i get rid of it again?

thanks, -sciss-

1 comment
Comment actions Permalink

rm -r ~/Library/Caches/IntelliJIdea10CE/plugins-sandbox/

success!

0

Please sign in to leave a comment.