4

关闭我的 Eclipse 插件的运行时,我收到以下错误消息:

!ENTRY org.eclipse.core.resources 4 2 2012-04-19 18:44:18.200
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 1
org.eclipse.core.runtime.CoreException: Provisioning agent not found
    at org.eclipse.pde.internal.core.target.P2TargetUtils.getAgent(P2TargetUtils.java:301)
    at org.eclipse.pde.internal.core.target.P2TargetUtils.getProfileRegistry(P2TargetUtils.java:781)
    at org.eclipse.pde.internal.core.target.P2TargetUtils.cleanOrphanedTargetDefinitionProfiles(P2TargetUtils.java:159)
    at org.eclipse.pde.internal.core.PDECore$1.saving(PDECore.java:258)
    at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
    at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
    at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
    at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:2375)
    at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$5.run(IDEWorkbenchAdvisor.java:508)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 1 org.eclipse.pde.core 4 0 2012-04-19 18:44:18.201
!MESSAGE Provisioning agent not found
!SUBENTRY 1 org.eclipse.pde.core 4 0 2012-04-19 18:44:18.202
!MESSAGE Provisioning agent not found

!ENTRY org.eclipse.ui.ide 4 4 2012-04-19 18:44:24.278
!MESSAGE Problems saving workspace

!ENTRY org.eclipse.ui.ide 2 1 2012-04-19 18:44:24.279
!MESSAGE Problems occurred while trying to save the state of the workbench.
!SUBENTRY 1 org.eclipse.core.resources 2 566 2012-04-19 18:44:24.280
!MESSAGE Problems occurred during save.
!STACK 1
org.eclipse.core.runtime.CoreException: Provisioning agent not found
    at org.eclipse.pde.internal.core.target.P2TargetUtils.getAgent(P2TargetUtils.java:301)
    at org.eclipse.pde.internal.core.target.P2TargetUtils.getProfileRegistry(P2TargetUtils.java:781)
    at org.eclipse.pde.internal.core.target.P2TargetUtils.cleanOrphanedTargetDefinitionProfiles(P2TargetUtils.java:159)
    at org.eclipse.pde.internal.core.PDECore$1.saving(PDECore.java:258)
    at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
    at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
    at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
    at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:2375)
    at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor$5.run(IDEWorkbenchAdvisor.java:508)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
!SUBENTRY 2 org.eclipse.pde.core 4 0 2012-04-19 18:44:24.280
!MESSAGE Provisioning agent not found

谁能告诉我我错过了什么?

4

2 回答 2

5

正如亚历山大指出的那样,我错过了 Eclipse 没有自动添加的 Equinox 插件 org.eclipse.equinox.ds,即使在“添加必需的插件”之后也是如此。

于 2012-04-21T16:46:50.267 回答
2

如该线程所示,当您单击“添加必需的插件”时,仍然缺少org.eclipse.equinox.ds可以链接到您正在使用的项目类型的包(例如,在您的情况下为“”):

如果您将构建更改为基于功能的构建并使用该org.eclipse.rcp功能,您将为自己带来很多好处:它包括 RCP 应用程序的所有必要捆绑包,包括org.eclipse.equinox.ds.event.

于 2012-04-21T16:56:15.353 回答