org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java (default) on project onlab-test: Execution default of goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java failed: Node in data model tree does not support collision detection

JIRA | sathishkumar murugesan | 4 months ago
  1. 1

    yang tools: https://gerrit.onosproject.org/#/c/10873/ mvn clean install -e [INFO] Error stacktraces are turned on. [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.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.7.0-SNAPSHOT:yang2java (default) @ onlab-test --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.307 s [INFO] Finished at: 2016-08-17T16:21:56+05:30 [INFO] Final Memory: 21M/315M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java (default) on project onlab-test: Execution default of goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java failed: Node in data model tree does not support collision detection -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java (default) on project onlab-test: Execution default of goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java failed: Node in data model tree does not support collision detection at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) 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) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java failed: Node in data model tree does not support collision detection at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: org.onosproject.yangutils.linker.exceptions.LinkerException: Node in data model tree does not support collision detection at org.onosproject.yangutils.parser.impl.listeners.ModuleListener.processModuleExit(ModuleListener.java:148) at org.onosproject.yangutils.parser.impl.TreeWalkListener.exitModuleStatement(TreeWalkListener.java:221) at org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$ModuleStatementContext.exitRule(GeneratedYangParser.java:305) 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.onosproject.yangutils.parser.impl.YangUtilsParserManager.getDataModel(YangUtilsParserManager.java:92) at org.onosproject.yangutils.plugin.manager.YangUtilManager.parseYangFileInfoSet(YangUtilManager.java:298) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:198) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 21 more [ERROR] [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/PluginExecutionException root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

    JIRA | 4 months ago | sathishkumar murugesan
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java (default) on project onlab-test: Execution default of goal org.onosproject:yangutils-maven-plugin:1.7.0-SNAPSHOT:yang2java failed: Node in data model tree does not support collision detection

    Root Cause Analysis

    1. org.onosproject.yangutils.linker.exceptions.LinkerException

      Node in data model tree does not support collision detection

      at org.onosproject.yangutils.parser.impl.listeners.ModuleListener.processModuleExit()
    2. org.onosproject.yangutils
      GeneratedYangParser$ModuleStatementContext.exitRule
      1. org.onosproject.yangutils.parser.impl.listeners.ModuleListener.processModuleExit(ModuleListener.java:148)
      2. org.onosproject.yangutils.parser.impl.TreeWalkListener.exitModuleStatement(TreeWalkListener.java:221)
      3. org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser$ModuleStatementContext.exitRule(GeneratedYangParser.java:305)
      3 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)
      3 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:298)
      3. org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:198)
      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