Intellj IDEA14.0.2启动异常之3分钟修复

今天是周一,刚到公司启动心爱的IDEA,突然启动到一半,就抛异常了,直接弹窗,报如下的异常:
java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.psi.stubs.StubIndex'
 at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:158)
 at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:58)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
 at java.awt.EventQueue.access$200(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:694)
 at java.awt.EventQueue$3.run(EventQueue.java:692)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.psi.stubs.StubIndex'
 at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:239)
 at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:39)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:570)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
 at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
 at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
 at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
 at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
 at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:372)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:112)
 at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
 at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
 at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:509)
 at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:150)
 ... 18 more
Caused by: java.lang.IndexOutOfBoundsException
 at java.nio.Buffer.checkIndex(Buffer.java:538)
 at java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:675)
 at com.intellij.util.io.IntToIntBtree$BtreePage.syncWithStore(IntToIntBtree.java:307)
 at com.intellij.util.io.IntToIntBtree$BtreePage.setAddress(IntToIntBtree.java:299)
 at com.intellij.util.io.IntToIntBtree.persistVars(IntToIntBtree.java:133)
 at com.intellij.util.io.PersistentBTreeEnumerator.storeBTreeVars(PersistentBTreeEnumerator.java:137)
 at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:100)
 at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:38)
 at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:31)
 at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:110)
 at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:106)
 at com.intellij.util.indexing.ValueContainerMap.<init>(ValueContainerMap.java:23)
 at com.intellij.util.indexing.MapIndexStorage.a(MapIndexStorage.java:105)
 at com.intellij.util.indexing.MapIndexStorage.<init>(MapIndexStorage.java:101)
 at com.intellij.psi.stubs.StubIndexImpl.a(StubIndexImpl.java:141)
 at com.intellij.psi.stubs.StubIndexImpl.<init>(StubIndexImpl.java:87)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
 at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
 at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
 at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
 at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
 at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
 at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:530)
 ... 30 more


如何解决?

第一反应,打开Google搜索,输入如下第一行异常进行搜索

Fatal error initializing 'com.intellij.psi.stubs.StubIndex'


Google的搜索的效果就不用我多说了,比百度,360等等根本就不是一个层次上的,它们只配提鞋带,直接在前3条搜索记录中,就找到了解决办法,这都是IDEA官方都release的bug,bug列表,大家可以在https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+14+138.1283.4+Release+Notes能够找到,在IDEA-125750 (Bug)此条bug号里面,记录了解决办法

除了在官方的bug列表能够解决问题,在Google的搜索结果中,还有一个stackoverflow问题的链接,也能解决问题,详情请点击此处

问题原因是:以前装的某些插件有问题,于是散仙就回忆了下,在上周装了一个IDEA的Scala插件,可能是由于这个原因造成的,只要清空windows上c:\Users\<username>\.IntelliJIdea11\config\plugins\这个目录,然后
重启即可


请记住我们码农解决问题的两件法宝神器:

(1)Google
(2)Stackoverflow

神器在手,天下全有,可以放心的早点下班回去追妹子了!



最后欢迎大家扫码关注微信公众号:我是攻城师(woshigcs),我们一起学习,进步和交流!(woshigcs)
本公众号的内容是有关搜索和大数据技术和互联网等方面内容的分享,也是一个温馨的技术互动交流的小家园,有什么问题随时都可以留言,欢迎大家来访!

Intellj IDEA14.0.2启动异常之3分钟修复


你可能感兴趣的:(Google,idea)