[OPNFLWJAVA-62] Hidden yangs cause runtime problems Created: 08/Sep/15  Updated: 16/Oct/15  Resolved: 16/Oct/15

Status: Resolved
Project: openflowjava
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Martin Sunal Assignee: Martin Sunal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4281

 Description   

If a project has dependency on OFjava and the project wants to have junit tests extending AbstractDataBrokerTest, this exception is thrown:
Caused by: java.lang.IllegalStateException: Resource '/META-INF/yang/openflow-instruction.yang' is missing
at org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.$YangModuleInfoImpl.<init>($YangModuleInfoImpl.java:31)
at org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.instruction.rev130731.$YangModuleInfoImpl.<clinit>($YangModuleInfoImpl.java:10)

Missing yang files were hidden in https://git.opendaylight.org/gerrit/#/c/18083/1



 Comments   
Comment by Yi Yang [ 19/Sep/15 ]

I encountered the same error:

Caused by: java.lang.IllegalStateException: Resource '/META-INF/yang/openflow-instruction.yang' is missing

in https://jenkins.opendaylight.org/releng/job/openflowplugin-verify-beryllium/jdk=openjdk7,nodes=dynamic_verify/1706/console.

The issue is fixed after I applied this patch https://git.opendaylight.org/gerrit/#/c/27172/, I'm not sure if it is acceptable, or do you have any better way to fix this.

Comment by Michal Rehak [ 15/Oct/15 ]

merged

Generated at Wed Feb 07 20:28:51 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.