【问题标题】:Opendaylight Oxygen Error when instantiating bean osgiBundleScanningSchema实例化bean osgiBundleScanningSchema时出现Opendaylight氧气错误
【发布时间】:2018-06-13 10:05:26
【问题描述】:

我使用 ODL Oxygen 0.8.1 版本。我有这样的 blueprint.xml 文件

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
  xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
  odl:use-default-for-reference-types="true">

  <reference id="dataBroker"
    interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
    odl:type="default" />

 <service ref="cliCommandsImpl" interface="tr.com.argela.cliapp.cli.api.CliappCliCommands" />
  <bean id="cliCommandsImpl" class="tr.com.argela.cliapp.cli.impl.CliappCliCommandsImpl">
    <argument ref="dataBroker" />
  </bean>

  <command-bundle xmlns="http://karaf.apache.org/xmlns/shell/v1.0.0">
     <command name="nelmo/test-command2">
        <action class="tr.com.argela.cliapp.cli.commands.CliappCliShowCommand">
        </action>
    </command>
  </command-bundle>

</blueprint>

我无法实例化 bean“CliappCliCommandsImpl”,日志如下

原因:org.osgi.service.blueprint.container.ComponentDefinitionException: 实例化类 org.opendaylight.mdsal.dom.schema.service.osgi.OsgiBundleScanningSchemaService 的 bean osgiBundleScanningSchema 时出错 在 org.apache.aries.blueprint.container.BeanRecipe.wrapAsCompDefEx(BeanRecipe.java:361) ~[?:?] 在 org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromStaticFactory(BeanRecipe.java:331) ~[?:?] 在 org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:280) ~[?:?] 在 org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:830) ~[?:?] 在 org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811) ~[?:?] 在 org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) ~[?:?] 在 java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?] 在 org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) ~[?:?] 在 org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62) ~[?:?] 在 org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106) ~[?:?] 在 org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285) ~[?:?]

【问题讨论】:

    标签: java apache-karaf opendaylight blueprint


    【解决方案1】:

    我清除了 karaf 的数据目录然后重新启动。一切似乎都很正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-02
      • 1970-01-01
      • 1970-01-01
      • 2014-03-22
      • 1970-01-01
      • 2014-07-03
      • 1970-01-01
      相关资源
      最近更新 更多