实例化bean osgiBundleScanningSchema时出现Opendaylight Oxygen错误

时间:2018-06-13 10:05:27

标签: java apache-karaf opendaylight blueprint

我使用ODL氧气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&#34; CliappCliCommandsImpl&#34;,日志正在跟随

引起: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)〜[?:?]

1 个答案:

答案 0 :(得分:0)

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