web-dev-qa-db-ja.com

Eclipseはワークスペースをロードしません

私はEclipseで働いていましたが、動けなくなり、次に通常のワークスペースフォルダのロードを拒否しました

これはログファイルが示すものです

このフォルダを再度読み込むにはどうすればよいですか?

!SESSION 2013-08-21 14:27:21.896 -----------------------------------------------
Eclipse.buildId=M20130204-1200
Java.version=1.7.0_25
Java.vendor=Oracle Corporation
BootLoader constants: OS=win32, Arch=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.Eclipse.epp.package.Java.product
Command-line arguments:  -os win32 -ws win32 -Arch x86_64 -product org.Eclipse.epp.package.Java.product

This is a continuation of log file C:\Dev\workspace\.metadata\.bak_0.log
Created Time: 2013-08-21 14:27:29.774

!ENTRY org.Eclipse.ui 4 0 2013-08-21 14:27:29.774
!MESSAGE Error occurred during status handling
!STACK 0
Java.lang.NullPointerException
    at org.Eclipse.ui.internal.statushandlers.StatusHandlerRegistry.<init>(StatusHandlerRegistry.Java:72)
    at org.Eclipse.ui.internal.statushandlers.StatusHandlerRegistry.getDefault(StatusHandlerRegistry.Java:91)
    at org.Eclipse.ui.statushandlers.StatusManager.getStatusHandler(StatusManager.Java:135)
    at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:189)
    at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:231)
    at org.Eclipse.ui.statushandlers.StatusManager$StatusManagerLogListener.logging(StatusManager.Java:305)
    at org.Eclipse.core.internal.runtime.RuntimeLog.logToListeners(RuntimeLog.Java:160)
    at org.Eclipse.core.internal.runtime.PlatformLogWriter.logged(PlatformLogWriter.Java:100)
    at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.Java:86)
    at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.Java:205)
    at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.Java:178)
    at org.Eclipse.equinox.log.internal.ExtendedLogServiceFactory.log(ExtendedLogServiceFactory.Java:65)
    at org.Eclipse.equinox.log.internal.ExtendedLogServiceImpl.log(ExtendedLogServiceImpl.Java:87)
    at org.Eclipse.equinox.log.internal.LoggerImpl.log(LoggerImpl.Java:54)
    at org.Eclipse.core.internal.runtime.PlatformLogWriter.logging(PlatformLogWriter.Java:43)
    at org.Eclipse.core.internal.runtime.RuntimeLog.log(RuntimeLog.Java:96)
    at org.Eclipse.core.runtime.SafeRunner.handleException(SafeRunner.Java:71)
    at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:44)
    at org.Eclipse.ui.internal.Workbench$54.run(Workbench.Java:2412)
    at org.Eclipse.core.internal.jobs.Worker.run(Worker.Java:53)

!ENTRY org.Eclipse.ui 4 4 2013-08-21 14:27:29.789
!MESSAGE Unhandled Exception

!ENTRY org.Eclipse.ui 4 4 2013-08-21 14:27:29.789
!MESSAGE Unhandled Exception

!ENTRY org.Eclipse.ui 4 0 2013-08-21 14:27:29.789
!MESSAGE Error occurred during status handling
!STACK 0
Java.lang.NullPointerException
    at org.Eclipse.ui.internal.statushandlers.StatusHandlerRegistry.<init>(StatusHandlerRegistry.Java:72)
    at org.Eclipse.ui.internal.statushandlers.StatusHandlerRegistry.getDefault(StatusHandlerRegistry.Java:91)
    at org.Eclipse.ui.statushandlers.StatusManager.getStatusHandler(StatusManager.Java:135)
    at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:189)
    at org.Eclipse.ui.statushandlers.StatusManager.handle(StatusManager.Java:231)
    at org.Eclipse.ui.statushandlers.StatusManager$StatusManagerLogListener.logging(StatusManager.Java:305)
    at org.Eclipse.core.internal.runtime.RuntimeLog.logToListeners(RuntimeLog.Java:160)
    at org.Eclipse.core.internal.runtime.PlatformLogWriter.logged(PlatformLogWriter.Java:100)
    at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.Java:86)
    at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.Java:205)
    at org.Eclipse.equinox.log.internal.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.Java:178)
    at org.Eclipse.equinox.log.internal.ExtendedLogServiceFactory.log(ExtendedLogServiceFactory.Java:65)
    at org.Eclipse.equinox.log.internal.ExtendedLogServiceImpl.log(ExtendedLogServiceImpl.Java:87)
    at org.Eclipse.equinox.log.internal.LoggerImpl.log(LoggerImpl.Java:54)
    at org.Eclipse.core.internal.runtime.Log.log(Log.Java:62)
    at org.Eclipse.ui.internal.WorkbenchPlugin.log(WorkbenchPlugin.Java:809)
    at org.Eclipse.ui.internal.EarlyStartupRunnable.handleException(EarlyStartupRunnable.Java:81)
    at org.Eclipse.core.runtime.SafeRunner.handleException(SafeRunner.Java:75)
    at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:44)
    at org.Eclipse.ui.internal.Workbench$54.run(Workbench.Java:2412)
    at org.Eclipse.core.internal.jobs.Worker.run(Worker.Java:53)

!ENTRY org.Eclipse.mylyn.tasks.ui 4 0 2013-08-21 14:27:29.789
!MESSAGE Unable to execute early startup code for an extension
!STACK 1
org.Eclipse.core.runtime.CoreException: Plug-in org.Eclipse.mylyn.tasks.ui was unable to load class org.Eclipse.mylyn.internal.tasks.ui.TasksUiPlugin$TasksUiStartup.
    at org.Eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.Java:194)
    at org.Eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.Java:176)
    at org.Eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.Java:905)
    at org.Eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.Java:243)
    at org.Eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.Java:55)
    at org.Eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.Java:273)
    at org.Eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.Java:52)
    at org.Eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.Java:269)
    at org.Eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.Java:117)
    at org.Eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.Java:66)
    at org.Eclipse.core.runtime.SafeRunner.run(SafeRunner.Java:42)
    at org.Eclipse.ui.internal.Workbench$54.run(Workbench.Java:2412)
    at org.Eclipse.core.internal.jobs.Worker.run(Worker.Java:53)
Caused by: org.Eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.Eclipse.mylyn.tasks.ui (288).
    at org.Eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.Java:122)
    at org.Eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.Java:469)
    at org.Eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.Java:216)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.Java:395)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.Java:464)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.Java:421)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.Java:412)
    at org.Eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.Java:107)
    at Java.lang.ClassLoader.loadClass(Unknown Source)
    at org.Eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.Java:340)
    at org.Eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.Java:229)
    at org.Eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.Java:1212)
    at org.Eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.Java:174)
    ... 11 more
Caused by: org.osgi.framework.BundleException: The activator org.Eclipse.mylyn.internal.tasks.ui.TasksUiPlugin for bundle org.Eclipse.mylyn.tasks.ui is invalid
    at org.Eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.Java:172)
    at org.Eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.Java:679)
    at org.Eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.Java:381)
    at org.Eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.Java:300)
    at org.Eclipse.osgi.framework.util.SecureAction.start(SecureAction.Java:440)
    at org.Eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.Java:263)
    at org.Eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.Java:107)
    ... 23 more
Caused by: Java.lang.NoClassDefFoundError: org/Eclipse/mylyn/monitor/ui/IUserAttentionListener
    at Java.lang.Class.getDeclaredConstructors0(Native Method)
    at Java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at Java.lang.Class.getConstructor0(Unknown Source)
    at Java.lang.Class.newInstance(Unknown Source)
    at org.Eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.Java:167)
    ... 29 more
Caused by: org.Eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.Eclipse.mylyn.monitor.ui (281).
    at org.Eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.Java:122)
    at org.Eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.Java:469)
    at org.Eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.Java:216)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.Java:395)
    at org.Eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.Java:35)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.Java:461)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.Java:421)
    at org.Eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.Java:412)
    at org.Eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.Java:107)
    at Java.lang.ClassLoader.loadClass(Unknown Source)
    ... 34 more
Caused by: org.osgi.framework.BundleException: Exception in org.Eclipse.mylyn.internal.monitor.ui.MonitorUiPlugin.start() of bundle org.Eclipse.mylyn.monitor.ui.
    at org.Eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.Java:734)
    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:300)
    at org.Eclipse.osgi.framework.util.SecureAction.start(SecureAction.Java:440)
    at org.Eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.Java:263)
    at org.Eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.Java:107)
    ... 43 more
Caused by: org.Eclipse.swt.SWTException: Device is disposed
    at org.Eclipse.swt.SWT.error(SWT.Java:4361)
    at org.Eclipse.swt.SWT.error(SWT.Java:4276)
    at org.Eclipse.swt.SWT.error(SWT.Java:4247)
    at org.Eclipse.swt.widgets.Display.error(Display.Java:1258)
    at org.Eclipse.swt.widgets.Display.asyncExec(Display.Java:709)
    at org.Eclipse.mylyn.internal.monitor.ui.MonitorUiPlugin.start(MonitorUiPlugin.Java:145)
    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)
    ... 49 more
26
Lena Bru

同じ問題がありました。削除。metadata/.plugins/org.Eclipse.e4.workbench/workbench.xmi動作しました。しかし、根本的な原因はわかりません。

[〜#〜]または[〜#〜]

"plugins"フォルダーの内容を他のフォルダーに移動し、Eclipseを再起動します。 Eclipseは、再起動後にこれらすべてのプラグインを追加します。新しいフォルダーをコピーしたフォルダーに置き換えます。

62
r3ap3r

.snapファイルを削除するとうまくいきました:

rm WORKSPACE/.metadata/.plugins/org.Eclipse.core.resources/.snap

11
omarflorez

Fredrikが提供するソリューションをスレッドにリンクするだけです。 Eclipseは起動しませんが、エラーは表示されません

「ワークスペースを復元しようとすると失敗するようです。

試してください:

新しいワークスペースを開きます。デフォルトを使用するように設定されている場合は、\ configuration.settings\org.Eclipse.ui.ide.prefsに移動し、SHOW_WORKSPACE_SELECTION_DIALOGをtrueに設定します

/.metadata/.plugins/org.Eclipse.core.resources/.snapを削除してみてください

コメントで示唆されているように、Eclipse 4を使用している場合、ファイル.metadata/.plugins/org.Eclipse.e4.workbench/workbench.xmiも削除する必要があります。」

5
Akshaya Aradhya