org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : A leaf reference, in unique, must refer to a leaf under the list

JIRA | Adarsh m | 3 months ago
  1. 0

    root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$ mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onlab-test 1.7.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ onlab-test --- [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (default-prepare-agent) @ onlab-test --- [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/opt/onos-master/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US [INFO] [INFO] --- onos-yang-maven-plugin:1.8-SNAPSHOT:yang2java (default) @ onlab-test --- Aug 24, 2016 6:46:09 PM org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil handleUnsupportedYangConstruct INFO: YANG file error : "refine" is not supported. at position 10 in line 418 of yang file /opt/onos-master/onos/utils/test/src/main/yang/ietf-routing.yang [INFO] Error in file: /opt/onos-master/onos/utils/test/src/main/yang/ietf-routing.yang at line: 398 at position: 6 YANG file error : A leaf reference, in unique, must refer to a leaf under the list org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : A leaf reference, in unique, must refer to a leaf under the list at org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.validateUniqueInList(ListenerUtil.java:559) at org.onosproject.yangutils.parser.impl.listeners.ListListener.processListExit(ListListener.java:178) at org.onosproject.yangutils.parser.impl.TreeWalkListener.exitListStatement(TreeWalkListener.java:1119) at org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$ListStatementContext.exitRule(GeneratedYangParser.java:12653) at org.antlr.v4.runtime.tree.ParseTreeWalker.exitRule(ParseTreeWalker.java:71) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:54) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:92) at org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:305) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:203) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.636 s [INFO] Finished at: 2016-08-24T18:46:09+05:30 [INFO] Final Memory: 22M/317M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:onos-yang-maven-plugin:1.8-SNAPSHOT:yang2java (default) on project onlab-test: Exception occurred due to YANG file error : A leaf reference, in unique, must refer to a leaf under the list in /opt/onos-master/onos/utils/test/src/main/yang/ietf-routing.yang YANG file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

    JIRA | 3 months ago | Adarsh m
    org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : A leaf reference, in unique, must refer to a leaf under the list
  2. 0

    Defect : Build failed and error is thrown for yang version 1.0 Yang : module ietf-access-control-list { yang-version "1.0"; namespace "urn:ietf:params:xml:ns:yang:ietf-access-control-list"; prefix acl; import ietf-yang-types { prefix yang; } Logs : mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onlab-test 1.7.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ onlab-test --- [INFO] Deleting /opt/onos-master/onos/utils/test/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test --- [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/opt/onos-master/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US [INFO] [INFO] --- yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test --- [INFO] Error in file: /opt/onos-master/onos/utils/test/src/main/yang/ietf-access-control-list@2016-02-18.yang at line: 2 at position: 5 YANG file error: Input version not supported [INFO] org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error: Input version not supported at org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.getValidVersion(ListenerUtil.java:200) at org.onosproject.yangutils.parser.impl.listeners.VersionListener.processVersionEntry(VersionListener.java:92) at org.onosproject.yangutils.parser.impl.TreeWalkListener.enterYangVersionStatement(TreeWalkListener.java:226) at org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$YangVersionStatementContext.enterRule(GeneratedYangParser.java:1886) at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:91) at org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:288) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:187) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.346 s [INFO] Finished at: 2016-07-08T12:05:19+05:30 [INFO] Final Memory: 21M/374M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: Exception occured due to YANG file error: Input version not supported in /opt/onos-master/onos/utils/test/src/main/yang/ietf-access-control-list@2016-02-18.yang YANG file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

    JIRA | 5 months ago | Adarsh m
    org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error: Input version not supported
  3. 0

    Defect : Parser exception for invalid path in leafref. Yang : module moduletest { yang-version 1; namespace "onos-yang-19:level1:newlevel"; prefix test; organization "huawei"; contact "adarsh.m@huawei.com"; description "leaf scenario"; revision 2015-02-05; list company1{ key company-id; leaf company-id { type int16; } } list employee { key employee-id; leaf employee-id { type int8; } leaf company { type leafref { path "company/company-id"; } } } } Logs : mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onlab-test 1.7.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ onlab-test --- [INFO] Deleting /opt/onos-master/onos/utils/test/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test --- [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/opt/onos-master/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US [INFO] [INFO] --- yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test --- [INFO] Error in file: /opt/onos-master/onos/utils/test/src/main/yang/negnum (another copy).yang at line: 25 at position: 9 YANG file error : pathcompany/company-id does not follow valid path syntax [INFO] org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : pathcompany/company-id does not follow valid path syntax at org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.validatePathArgument(ListenerUtil.java:413) at org.onosproject.yangutils.parser.impl.listeners.PathListener.processPathEntry(PathListener.java:83) at org.onosproject.yangutils.parser.impl.TreeWalkListener.enterPathStatement(TreeWalkListener.java:686) at org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$PathStatementContext.enterRule(GeneratedYangParser.java:9750) at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:91) at org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:288) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:187) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.546 s [INFO] Finished at: 2016-07-05T15:15:07+05:30 [INFO] Final Memory: 20M/314M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: Exception occured due to YANG file error : pathcompany/company-id does not follow valid path syntax in /opt/onos-master/onos/utils/test/src/main/yang/negnum (another copy).yang YANG file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

    JIRA | 5 months ago | Adarsh m
    org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : pathcompany/company-id does not follow valid path syntax
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Defect : Unique is not supported, throwing error. Logs : mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onlab-test 1.7.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ onlab-test --- [INFO] Deleting /opt/onos-master/onos/utils/test/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test --- [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/opt/onos-master/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US [INFO] [INFO] --- yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test --- [INFO] Error in file: /opt/onos-master/onos/utils/test/src/main/yang/Test_Int_1.yang at line: 64 at position: 12 YANG file error : "unique" is not supported in current version, please check wiki for YANG utils road map. [INFO] org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : "unique" is not supported in current version, please check wiki for YANG utils road map. at org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.handleUnsupportedYangConstruct(ListenerUtil.java:744) at org.onosproject.yangutils.parser.impl.TreeWalkListener.enterUniqueStatement(TreeWalkListener.java:946) at org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$UniqueStatementContext.enterRule(GeneratedYangParser.java:12778) at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:91) at org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:288) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:187) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.061 s [INFO] Finished at: 2016-06-30T16:48:49+05:30 [INFO] Final Memory: 20M/316M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: Exception occured due to YANG file error : "unique" is not supported in current version, please check wiki for YANG utils road map. in /opt/onos-master/onos/utils/test/src/main/yang/Test_Int_1.yang YANG file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

    JIRA | 5 months ago | Adarsh m
    org.onosproject.yangutils.parser.exceptions.ParserException: YANG file error : "unique" is not supported in current version, please check wiki for YANG utils road map.
  6. 0

    Defect : Invalid holder error is thrown for when statement. Yang : module moduletest { yang-version 1; namespace "onos-yang-14:level1:newlevel"; prefix test; organization "huawei"; contact "adarsh.m@huawei.com"; description "list scenario"; revision 2015-02-05; list person { when “xpath-expr”; key name; leaf name { type string; } leaf place { type int16; } } } Logs : $ root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$ mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onlab-test 1.7.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ onlab-test --- [INFO] Deleting /opt/onos-master/onos/utils/test/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ onlab-test --- [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/opt/onos-master/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US [INFO] [INFO] --- yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) @ onlab-test --- [INFO] Error in file: /opt/onos-master/onos/utils/test/src/main/yang/Onos_Yang_14.yang Internal parser error detected: Invalid holder for when "“xpath-expr”" before processing. [INFO] org.onosproject.yangutils.parser.exceptions.ParserException: Internal parser error detected: Invalid holder for when "“xpath-expr”" before processing. at org.onosproject.yangutils.parser.impl.listeners.WhenListener.processWhenEntry(WhenListener.java:94) at org.onosproject.yangutils.parser.impl.TreeWalkListener.enterWhenStatement(TreeWalkListener.java:1096) at org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$WhenStatementContext.enterRule(GeneratedYangParser.java:14687) at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52) at org.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:91) at org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:288) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:187) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.953 s [INFO] Finished at: 2016-06-30T17:46:01+05:30 [INFO] Final Memory: 19M/315M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: Exception occured due to Internal parser error detected: Invalid holder for when "“xpath-expr”" before processing. in /opt/onos-master/onos/utils/test/src/main/yang/Onos_Yang_14.yang YANG file. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

    JIRA | 5 months ago | Adarsh m
    org.onosproject.yangutils.parser.exceptions.ParserException: Internal parser error detected: Invalid holder for when "“xpath-expr”" before processing.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.onosproject.yangutils.parser.exceptions.ParserException

      YANG file error : A leaf reference, in unique, must refer to a leaf under the list

      at org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.validateUniqueInList()
    2. org.onosproject.yangutils
      GeneratedYangParser$ListStatementContext.exitRule
      1. org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil.validateUniqueInList(ListenerUtil.java:559)
      2. org.onosproject.yangutils.parser.impl.listeners.ListListener.processListExit(ListListener.java:178)
      3. org.onosproject.yangutils.parser.impl.TreeWalkListener.exitListStatement(TreeWalkListener.java:1119)
      4. org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$ListStatementContext.exitRule(GeneratedYangParser.java:12653)
      4 frames
    3. ANTLR 4 Runtime
      ParseTreeWalker.walk
      1. org.antlr.v4.runtime.tree.ParseTreeWalker.exitRule(ParseTreeWalker.java:71)
      2. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:54)
      3. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      4. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      5. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      6. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      7. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      8. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      9. org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)
      9 frames
    4. org.onosproject.yangutils
      YangUtilManager.execute
      1. org.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:92)
      2. org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:305)
      3. org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:203)
      3 frames
    5. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame
    6. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      10 frames
    7. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      3 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    9. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames