更新后Eclipse无法启动

时间:2012-10-15 01:19:02

标签: eclipse

日食更新后,它无法再次启动。此外,它还有一个警告来检查日志。 但我不知道如何通过日志解决这个问题。 以下是日志。

!SESSION 2012-10-15 08:21:47.367 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.equinox.event 2 0 2012-10-15 08:21:48.459
!MESSAGE [SCR] Found components with duplicated names! Details: 
Component1 : Component[
    name = org.eclipse.equinox.event
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.event.EventComponent
    state = Unsatisfied
    properties = 
    serviceFactory = false
    serviceInterface = [org.osgi.service.event.EventAdmin]
    references = null
    located in bundle = org.eclipse.equinox.event_1.2.100.v20110502 [270]
]
Component2: Component[
    name = org.eclipse.equinox.event
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.event.EventComponent
    state = Unsatisfied
    properties = 
    serviceFactory = false
    serviceInterface = [org.osgi.service.event.EventAdmin]
    references = null
    located in bundle = org.eclipse.equinox.event_1.2.200.v20120522-2049 [89]
]  

!ENTRY org.eclipse.equinox.p2.transport.ecf 2 0 2012-10-15 08:21:48.474
!MESSAGE [SCR] Found components with duplicated names! Details: 
Component1 : Component[
    name = org.eclipse.equinox.p2.transport.ecf
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.p2.transport.ecf.ECFTransportComponent
    state = Unsatisfied
    properties = {p2.agent.servicename=org.eclipse.equinox.internal.p2.repository.Transport}
    serviceFactory = false
    serviceInterface = [org.eclipse.equinox.p2.core.spi.IAgentServiceFactory]
    references = null
    located in bundle = org.eclipse.equinox.p2.transport.ecf_1.0.0.v20111128-0624 [275]
]
Component2: Component[
    name = org.eclipse.equinox.p2.transport.ecf
    activate = activate
    deactivate = deactivate
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = false
    implementation = org.eclipse.equinox.internal.p2.transport.ecf.ECFTransportComponent
    state = Unsatisfied
    properties = {p2.agent.servicename=org.eclipse.equinox.internal.p2.repository.Transport}
    serviceFactory = false
    serviceInterface = [org.eclipse.equinox.p2.core.spi.IAgentServiceFactory]
    references = null
    located in bundle = org.eclipse.equinox.p2.transport.ecf_1.0.100.v20120305-0333 [120]
]  

!ENTRY org.eclipse.core.resources 2 10035 2012-10-15 08:21:49.535
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-10-15 08:21:52.000
!MESSAGE Unable to create class 'org.eclipse.e4.core.commands.CommandServiceAddon' from bundle '53'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException: Cannot cast org.eclipse.core.commands.CommandManager to org.eclipse.core.commands.CommandManager
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
    at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
    at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:319)
    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:253)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:185)
    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:254)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:557)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    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:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Caused by: java.lang.ClassCastException: Cannot cast org.eclipse.core.commands.CommandManager to org.eclipse.core.commands.CommandManager
    at java.lang.Class.cast(Unknown Source)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:566)
    at org.eclipse.e4.core.commands.CommandServiceAddon.init(CommandServiceAddon.java:30)
    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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
    ... 27 more

基本上,它只是日志文件的一部分。从这里,我发现了一些帖子并尝试过:

1)eclipse -clean 2)删除.snap 3)删除workbench.xmi 4)重命名org.eclipse.core.resources 等。

不幸的是,它们不起作用。

4 个答案:

答案 0 :(得分:39)

转到

  1. 您的安装路径\ configuration \ org.eclipse.equinox.simpleconfigurator \
  2. 备份文件bundle.info
  3. 从文件bundle.info中删除“org.eclipse.core.commands”的重复条目 我删除了较低版本的条目。
  4. 使用选项-clean重新启动eclipse,你应该没问题

答案 1 :(得分:2)

在我更新了我的pydev之后,我遇到了同样的问题。

我将JUNO重新提取到我的安装目录

问题解决了

答案 2 :(得分:2)

试试这个:

进入损坏的工作区/ .metadata并删除.lock文件 转到workspace / .metadata / .plugins / org.eclipse.core.resources并删除.snap文件。
使用命令eclipse -clean启动Eclipse Eclipse应该从现在开始。 Eclipse启动并初始化并验证工作区后,关闭Eclipse。

答案 3 :(得分:0)

在Overview选项卡中检查ComponentDefinitions的“Name”(*。xml) 如果两个ComponentDefinitions具有不同的文件名但在Overview选项卡中具有相同的“Name”值,则会发生此错误。