为了账号安全,请及时绑定邮箱和手机立即绑定

InjectionException - Eclipse 2018-12 e4 导出

InjectionException - Eclipse 2018-12 e4 导出

德玛西亚99 2022-07-20 16:02:53
在 Eclipse 中运行我的 RCP 应用程序时,它可以正常工作。如果我使用 导出Eclipse Product export wizard并执行应用程序,我会得到 InjectionExceptions。我在这里发现了另一个问题,这是完全相同的问题。我已经添加org.apache.felix.scr到产品配置中,但我仍然遇到同样的问题。我假设需要添加另一个插件,但Add Recommended不再添加。开始级别异常示例!ENTRY org.eclipse.e4.ui.workbench 4 0 2019-03-05 09:35:24.650!MESSAGE Unable to create class 'org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon' from bundle '64'!STACK 0org.eclipse.e4.core.di.InjectionException: Unable to process "CommandProcessingAddon.broker": no actual value was found for the argument "IEventBroker".    at org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:488)    at org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:479)    at org.eclipse.e4.core.internal.di.InjectorImpl.internalInject(InjectorImpl.java:128)    at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:411)    at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:347)    at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:217)    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:111)    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:77)    at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:54)    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:289)    at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:153)    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)这可能是什么原因造成的?
查看完整描述

1 回答

?
慕的地6264312

TA贡献1817条经验 获得超6个赞

我设法通过为@greg-449 提到的功能找到所需的插件来解决这个问题。

首先,我将org.eclipse.emf.common和添加org.eclipse.emf.ecorePlug-ins and Fragments产品文件中。

接下来,我右键单击并打开它们中的每一个以查看它们的依赖关系。然后,我逐步检查了每个依赖项,如果我的必需插件 ( plugin.xml) 中没有它,我会添加它。


查看完整回答
反对 回复 2022-07-20
  • 1 回答
  • 0 关注
  • 162 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号