关闭Eclipse运行时时“找不到配置代理”

时间:2012-04-19 16:51:06

标签: eclipse runtime eclipse-rcp rcp pde

关闭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

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

2 个答案:

答案 0 :(得分:5)

正如亚历山大指出的那样,我错过了equinox插件org.eclipse.equinox.ds,它不是由Eclipse自动添加的,甚至在“Add Required Plug-ins”之后也没有。

答案 1 :(得分:2)

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

  

如果您将构建更改为基于功能的构建并使用org.eclipse.rcp功能,那么您将获得许多好处:它包含RCP应用程序的所有必要捆绑包,包括org.eclipse.equinox.ds.event