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

今天是周一,刚到公司启动心爱的IDEA,,突然启动到一半,就抛异常了,直接弹窗,报如下的异常:

Java代码  

  1. java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing ‘com.intellij.psi.stubs.StubIndex‘
  2. at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:158)
  3. at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:58)
  4. at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
  5. at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
  6. at java.awt.EventQueue.access$200(EventQueue.java:103)
  7. at java.awt.EventQueue$3.run(EventQueue.java:694)
  8. at java.awt.EventQueue$3.run(EventQueue.java:692)
  9. at java.security.AccessController.doPrivileged(Native Method)
  10. at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
  11. at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
  12. at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
  13. at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
  14. at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
  15. at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
  16. at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
  17. at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
  18. at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
  19. at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
  20. at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
  21. Caused by: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing ‘com.intellij.psi.stubs.StubIndex‘
  22. at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:239)
  23. at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:39)
  24. at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:570)
  25. at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
  26. at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
  27. at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
  28. at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
  29. at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
  30. at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
  31. at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:372)
  32. at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:112)
  33. at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
  34. at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
  35. at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:509)
  36. at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:150)
  37. ... 18 more
  38. Caused by: java.lang.IndexOutOfBoundsException
  39. at java.nio.Buffer.checkIndex(Buffer.java:538)
  40. at java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:675)
  41. at com.intellij.util.io.IntToIntBtree$BtreePage.syncWithStore(IntToIntBtree.java:307)
  42. at com.intellij.util.io.IntToIntBtree$BtreePage.setAddress(IntToIntBtree.java:299)
  43. at com.intellij.util.io.IntToIntBtree.persistVars(IntToIntBtree.java:133)
  44. at com.intellij.util.io.PersistentBTreeEnumerator.storeBTreeVars(PersistentBTreeEnumerator.java:137)
  45. at com.intellij.util.io.PersistentBTreeEnumerator.<init>(PersistentBTreeEnumerator.java:100)
  46. at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:38)
  47. at com.intellij.util.io.PersistentEnumeratorDelegate.<init>(PersistentEnumeratorDelegate.java:31)
  48. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:110)
  49. at com.intellij.util.io.PersistentHashMap.<init>(PersistentHashMap.java:106)
  50. at com.intellij.util.indexing.ValueContainerMap.<init>(ValueContainerMap.java:23)
  51. at com.intellij.util.indexing.MapIndexStorage.a(MapIndexStorage.java:105)
  52. at com.intellij.util.indexing.MapIndexStorage.<init>(MapIndexStorage.java:101)
  53. at com.intellij.psi.stubs.StubIndexImpl.a(StubIndexImpl.java:141)
  54. at com.intellij.psi.stubs.StubIndexImpl.<init>(StubIndexImpl.java:87)
  55. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  56. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  57. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  58. at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  59. at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
  60. at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
  61. at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
  62. at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
  63. at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
  64. at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
  65. at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:530)
  66. ... 30 more

如何解决?

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

Java代码  

  1. 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

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-11-13 09:06:53

Intellj IDEA14.0.2启动异常之3分钟修复的相关文章

有内核造成的nginx启动异常

CentOS5.4之nginx启动异常 ###安装Nginx### [[email protected]_Mysql ~]#yum -y install nginx ###启动Nginx### [[email protected]_Mysql ~]#service nginx start -->无任何启动输出信息,当时可郁闷 ###查看端口###  [[email protected]_Mysql ~]# ss -tanlp | grep nginx   -->端口正常,郁闷消除 0     

hadoop namenode启动异常,死活失败

2014-05-12注定是春光灿烂猪八戒的一天,历史595无故障的hadoop服务器,终于还是出了问题,事前无人登陆操作服务器,此故障属于自发行为,目前未知发生原因. 细节描述: namenode无法启动. 先贴出错误信息 2014-05-12 07:17:39,447 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: STARTUP_MSG: /**********************************************

Mac下Mysql启动异常[&quot;ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket &#39;/tmp/mysql.sock&#39; (2)&quot;]

在mac下使用brew安装mysql,之前没有使用过,今天启动的时候发现启动不了 huijundeMacBook-Pro:bin huijunzhang$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 查看mysql的安装位置: huijundeMacBook-Pro:bin huijunzhang$ which mysql /usr/local

项目启动异常java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space 解决办法: Eclipse-->window-->Tomcat -->JVM setting  -->Append To JVM Parameters -->add 弹出框填写: -Xmx256M -Xms256M -XX:MaxPermSize=256m struts 项目启动时,在E:\apache-tomcat-6.0.26\conf\Catalina\localhost路径下必须制定项

Spring启动异常: cvc-elt.1: Cannot find the declaration of element &#39;beans&#39;(转)

Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans' 2008-09-07 22:41 今天把在线聊天室代码改了下, 想启动应用测试. 结果抛出一大堆异常: -------------------------------------------------------------------------------------------- org.springframework.beans.factory.x

Cocos2d-x 3.0的启动流程

Cocos2d-x 3.0变动很大,包括启动的方式,我看了下对android的启动总结如下: Java方面: AppActivity继承Cocos2dxActivity Cocos2dxActivity的onCreate函数中加载本地.so 加载.so的时候会统一到javaactivity.cpp里面寻找JNI_OnLoad等本地接口,来运行本地文件 其中Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit会cocos2d::Application:

Java AOP nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice || Error creating bean with name &#39;org.springframework.aop.aspectj.AspectJPointcutAdvisor#0&#39; 两个异常解决办法

贴出applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://ww

Zookeep启动异常:Error contacting service. It is probably not running.

Zookeep安装启动异常    异常提示: [[email protected] bin]# ./zkServer.sh status JMX enabled by default Using config: /usr/local/zk/bin/../conf/zoo.cfg Error contacting service. It is probably not running 解决方案: 网上问题答案有许多种,一一归纳: 1. zoo.cfg配置文件中指定目录却没有创建! 创建相应目录即可

pg启动异常could not open lock file &quot;/tmp/.s.PGSQL.5432.lock&quot;:

今天安装postgres,启动异常:could not open lock file "/tmp/.s.PGSQL.5432.lock": 修改tmp权限,chown -R postgres:postgres /tmp 启动成功.