Eclipse崩溃了,不会重启。我不明白堆栈跟踪

时间:2012-01-24 20:33:46

标签: eclipse

Eclipse崩溃了,不会重启。 有人可以帮我理解问题所在吗?日志中的消息如下。 我在Win7上使用Android SDK进行开发,最近我安装了subclipse svn 非常感谢你

    !ENTRY org.eclipse.core.resources 4 566 2012-01-24 15:15:54.500
!MESSAGE Cannot set lower sequence number for root (previous: 178, new: 177). Ignoring the new value.
!STACK 0
java.lang.IllegalArgumentException: Cannot set lower sequence number for root (previous: 178, new: 177). Ignoring the new value.
at org.eclipse.core.internal.resources.SaveManager$MasterTable.put(SaveManager.java:50)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.eclipse.core.internal.resources.SaveManager.restoreMasterTable(SaveManager.java:829)
at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:684)
at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1527)
at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:2503)
at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:2251)
at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:439)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at     org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

5 个答案:

答案 0 :(得分:28)

删除文件.metadata / .plugins / org.eclipse.core.resources / .snap

答案 1 :(得分:12)

我通常移动我的.metadata文件夹,重新启动eclipse(将重新创建.metadata文件夹),导入现有项目,然后关闭eclipse并将以下文件夹从旧的.metadata恢复到新文件夹:

.metadata位于\ .plugins \:

  • org.eclipse.core.runtime
  • org.eclipse.debug.core
  • org.eclipse.debug.ui
  • org.eclipse.search
  • org.eclipse.ui.workbench
  • org.eclipse.ui.workbench.texteditor
  • org.tigris.subversion.subclipse.ui

这将恢复您之前的许多设置,并节省您重置它们的时间。 此列表并非详尽无遗,还有更多可以恢复的设置文件夹,但对我来说这些是最有用的。

答案 2 :(得分:2)

尝试从工作区中删除(或移动).metadata文件夹,看看是否能解决此问题。

答案 3 :(得分:1)

对于任何有兴趣的人,我都有完全相同的问题并删除文件.metadata / .plugins / org.eclipse.core.resources / .snap为我做了诀窍。

答案 4 :(得分:0)

我的方法如下:

  1. 备份整个.plugin文件夹

  2. 查看日志中堆栈跟踪中受影响的插件。在第一个地方,在你的情况下它是“org.eclipse.core.internal.resources.SaveManager ...”。

  3. 在.plugin文件夹中搜索与此插件匹配的文件夹

  4. 如果存在,请将其删除

  5. 尝试再次启动eclipse,如果它不起作用,请转到步骤2,但选择堆栈跟踪中的下一个插件,例如。 “org.eclipse.core.internal.resources.Workspace”