2013-08-22 97 views
4

我按照 http://wiki.eclipse.org/FAQ_How_do_I_upgrade_Eclipse%3F 的說明操作,但不幸的是eclipse不再啓動了。我可以選擇一個工作區,然後將其與錯誤「發生錯誤停止查看日誌文件.... metadata.log從朱諾升級到開普勒後Eclipse不啓動

日誌文件顯示一串這是錯誤的:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-08-22 06:43:34.234 
!MESSAGE Unable to create class 'org.eclipse.e4.core.commands.CommandServiceAddon' from bundle '283' 
!STACK 0 
org.eclipse.e4.core.di.InjectionException: Unable to process "CommandServiceAddon#init()": no actual value was found for the argument "IEclipseContext". 
    at org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:412) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:874) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:267) 
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:186) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:276) 
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:581) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
    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:354) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:601) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426) 

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-08-22 06:43:34.250 
!MESSAGE Unable to create class 'org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon' from bundle '299' 
!STACK 0 
org.eclipse.e4.core.di.InjectionException: Unable to process "CommandProcessingAddon.commandService": no actual value was found for the argument "ECommandService". 
    at org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:412) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:403) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:108) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:267) 
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:186) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:276) 
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:581) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
    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:354) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:601) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426) 

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-08-22 06:43:34.250 
!MESSAGE Unable to create class 'org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon' from bundle '302' 
!STACK 0 
org.eclipse.e4.core.di.InjectionException: Unable to process "BindingProcessingAddon.commandService": no actual value was found for the argument "ECommandService". 
    at org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:412) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:403) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:108) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:267) 
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:186) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:276) 
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:581) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
    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:354) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:601) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426) 

!ENTRY org.eclipse.e4.ui.workbench 4 0 2013-08-22 06:43:34.281 
!MESSAGE Unable to create class 'org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon' from bundle '299' 
!STACK 0 
org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException 
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333) 
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:267) 
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:186) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71) 
    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49) 
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:276) 
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:581) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
    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:354) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:601) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450) 
    at org.eclipse.equinox.launcher.Main.main(Main.java:1426) 
Caused by: java.lang.NullPointerException 
    at org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon.processActiveHandler(HandlerProcessingAddon.java:162) 
    at org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon.postConstruct(HandlerProcessingAddon.java:59) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:601) 
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) 
    ... 27 more 

!ENTRY org.eclipse.osgi 4 0 2013-08-22 06:43:34.343 
!MESSAGE Application error 
!STACK 1 
java.lang.LinkageError: loader constraint violation: when resolving method "org.eclipse.e4.core.commands.ExpressionContext.<init>(Lorg/eclipse/e4/core/contexts/IEclipseContext;)V" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/eclipse/ui/internal/services/EvaluationService, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, org/eclipse/e4/core/commands/ExpressionContext, have different Class objects for the type se/e4/core/contexts/IEclipseContext;)V used in the signature 
    at org.eclipse.ui.internal.services.EvaluationService.<init>(EvaluationService.java:85) 
    at org.eclipse.ui.internal.Workbench.init(Workbench.java:1529) 
    at org.eclipse.ui.internal.Workbench.access$39(Workbench.java:1511) 
    at org.eclipse.ui.internal.Workbench$58.run(Workbench.java:2672) 

是否有任何Eclipse大師那裏誰可以幫我嗎?

謝謝。

+0

做它與新的(空的)工作區一起工作? – golimar

+0

是的,我試過(使用選項-clean)一個新的空工作區,同樣的錯誤。 – anmatr

回答

1

我今天遇到了同樣的問題,一些更新後,我解決這個問題。重新啓動Eclipse在命令行上-clean選項。

+0

這是顯而易見的,我已經 - 對不起。不幸的是我沒有meniont。工作區啓動器顯示出來,我選擇一個現有的工作區,然後彈出一個小窗口:「出現錯誤。查看日誌文件.. \。metadata \ .log,其中顯示更多錯誤,包括來自初始文章的錯誤。 – anmatr

3

從朱諾升級到開普勒後,我今天遇到同樣的問題。我解決了它,如下所示:

製作該文件的備份:

eclipse\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info 

然後手工編輯的原始文件,查找並刪除任何重複的包。對於找到的每個副本,請保留具有最新版本號的副本。例如。雷曾線路喜歡:

org.eclipse.core.commands,3.6.1.v20120814-150512,plugins/org.eclipse.core.commands_3.6.1.v20120814-150512.jar,4,false 
org.eclipse.core.commands,3.6.100.v20130515-1857,plugins/org.eclipse.core.commands_3.6.100.v20130515-1857.jar,4,false 

在這種情況下,我刪除了3.6.1線,並保持3.6.10線。注意只刪除第一個逗號之前的名字相同的行。

之後,start Eclipse with the -clean flag,你應該開始運行。

0

感謝answersimonp我已經解決了這個問題。在我的情況(使用Linux)的文件在這裏:

/opt/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info 

此命令可以幫助你找到重複的行(它說,你這行是重複了多少次):

cat /opt/eclipse/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info | cut -d "," -f 1 | uniq --count | sort -n | tr -s " " | grep -v "^ 1"