首页 > 解决方案 > 在 IntelliJ for OSGi 捆绑包上运行测试时出错

问题描述

我正在使用适用于 Linux 的 IntelliJ IDEA Ultimate 版本 2018.1.1

在尝试对由 Intellij 的 OSGi 捆绑包组成的 maven 项目运行测试时,我不断收到下面提到的错误

Error:osgi: [org.wso2.carbon.identity.oauth] In component <name not yet determined>, method framework.authentication.context.method.name.translator,  cannot recognize the signature of the descriptor: ()V
Error:osgi: [org.wso2.carbon.identity.oauth] In component class org.wso2.carbon.identity.oauth2.internal.OAuth2ServiceComponent, reference framework.authentication.context.method.name.translator is dynamic but has no unbind method.
Error:osgi: [org.wso2.carbon.identity.oauth] No interface specified on framework.authentication.context.method.name.translator

有没有人遇到过这个问题?

标签: mavenintellij-ideaosgi

解决方案


我在这里找到了类似的问题。

通过删除项目中的 OSGi 方面解决了此问题,并且测试成功。

要删除 OSGi 方面,请转到项目结构 -> 项目设置 -> 方面;选择和删除 OSGi 方面。


推荐阅读