Ask Your Question
0

ODL-Lithium 0.2.0 + java.io.IOException: Resource /META-INF/yang/xxx-xxx-impl.yang is missing

asked 2015-08-10 06:31:32 -0700

snivas gravatar image

Hi All, I am getting this error while trying to add an custom created feature. I checked the .jar file and it has META-INF/yang/xxx-xxx-impl.yang inside it. So where the error could be?

here is the stack trace,

 2015-08-10 18:52:07,281 | ERROR | bundle-tracker-0 | ModuleInfoBackedContext          | 104 - org.opendaylight.yangtools.binding-generator-impl - 0.7.0.Lithium | Schema was not recreated.
 java.io.IOException: Resource /META-INF/yang/packet-stats-impl.yang is missing
    at org.opendaylight.yang.gen.v1.urn.opendaylight.packet.packet.stats.impl.rev150810.$YangModuleInfoImpl.getModuleSourceStream($YangModuleInfoImpl.java:59)[321:org.opendaylight.l2switch.packetstats.impl:0.2.0.Lithium]
    at org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext.getAvailableStreams(ModuleInfoBackedContext.java:106)[104:org.opendaylight.yangtools.binding-generator-impl:0.7.0.Lithium]
    at org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext.recreateSchemaContext(ModuleInfoBackedContext.java:82)[104:org.opendaylight.yangtools.binding-generator-impl:0.7.0.Lithium]
    at org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext.tryToCreateSchemaContext(ModuleInfoBackedContext.java:98)[104:org.opendaylight.yangtools.binding-generator-impl:0.7.0.Lithium]
    at org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext.getSchemaContext(ModuleInfoBackedContext.java:178)[104:org.opendaylight.yangtools.binding-generator-impl:0.7.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.mapping.BindingContextProvider.update(BindingContextProvider.java:25)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.mapping.RefreshingSCPModuleInfoRegistry.updateService(RefreshingSCPModuleInfoRegistry.java:43)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.mapping.RefreshingSCPModuleInfoRegistry.registerModuleInfo(RefreshingSCPModuleInfoRegistry.java:54)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:57)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.mapping.ModuleInfoBundleTracker.addingBundle(ModuleInfoBundleTracker.java:31)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker$1$1.execute(ExtensibleBundleTracker.java:89)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.forEachAdditionalBundle(ExtensibleBundleTracker.java:134)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker.access$100(ExtensibleBundleTracker.java:51)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at    org.opendaylight.controller.config.manager.impl.osgi.ExtensibleBundleTracker$1.call(ExtensibleBundleTracker.java:86)[116:org.opendaylight.controller.config-manager:0.3.0.Lithium]
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
    at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
  2015-08-10 18:52:07,284 | ERROR | bundle-tracker-0 | ExtensibleBundleTracker          | 116 -    org.opendaylight.controller.config-manager - 0.3.0.Lithium | Failed to add bundle
   java.lang.IllegalStateException: Unable to recreate SchemaContext, error while parsing
    at   org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext.getSchemaContext(ModuleInfoBackedContext.java:183)[104:org.opendaylight.yangtools.binding-generator-impl:0.7.0.Lithium]
    at    org.opendaylight.controller.config ...
(more)
edit retag flag offensive close merge delete

Comments

Hi - did you find the cause of this? I'm having the same problem when installing the odl-vtn-manager feature in Lithium.

iain_bio ( 2015-12-09 07:22:24 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-06-08 01:30:31 -0700

hi,I also came across the same issue. did you find the root cause? I am looking forward to your reply. my email is "zk19883167@126.com"

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-08-10 06:31:32 -0700

Seen: 245 times

Last updated: Jun 08