Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4891

Error occurred while building standard yang files.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      8

      Description

      Defect : Error occurred while building standard yang files.

      Logs :

      root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$ rm -rf target
      root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$
      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.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] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.087 s
      [INFO] Finished at: 2016-07-13T12:25:15+05:30
      [INFO] Final Memory: 19M/312M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java (default) on project onlab-test: A type incompatibility occurred while executing org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT:yang2java: java.util.ArrayList cannot be cast to org.antlr.v4.runtime.ParserRuleContext
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.onosproject:yangutils-maven-plugin:1.0.0-SNAPSHOT
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/home/root1/.m2/repository/org/onosproject/yangutils-maven-plugin/1.0.0-SNAPSHOT/yangutils-maven-plugin-1.0.0-SNAPSHOT.jar
      [ERROR] urls[1] = file:/home/root1/.m2/repository/org/onosproject/yangutils-datamodel/1.7.0-SNAPSHOT/yangutils-datamodel-1.7.0-SNAPSHOT.jar
      [ERROR] urls[2] = file:/home/root1/.m2/repository/org/apache/maven/maven-builder-support/3.3.9/maven-builder-support-3.3.9.jar
      [ERROR] urls[3] = file:/home/root1/.m2/repository/org/eclipse/aether/aether-util/1.0.2.v20150114/aether-util-1.0.2.v20150114.jar
      [ERROR] urls[4] = file:/home/root1/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
      [ERROR] urls[5] = file:/home/root1/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
      [ERROR] urls[6] = file:/home/root1/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.3.2/org.eclipse.sisu.inject-0.3.2.jar
      [ERROR] urls[7] = file:/home/root1/.m2/repository/com/google/inject/guice/4.0/guice-4.0-no_aop.jar
      [ERROR] urls[8] = file:/home/root1/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
      [ERROR] urls[9] = file:/home/root1/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.21/plexus-interpolation-1.21.jar
      [ERROR] urls[10] = file:/home/root1/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.22/plexus-utils-3.0.22.jar
      [ERROR] urls[11] = file:/home/root1/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.6/plexus-component-annotations-1.6.jar
      [ERROR] urls[12] = file:/home/root1/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
      [ERROR] urls[13] = file:/home/root1/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
      [ERROR] urls[14] = file:/home/root1/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
      [ERROR] urls[15] = file:/home/root1/.m2/repository/org/apache/felix/maven-scr-plugin/1.21.0/maven-scr-plugin-1.21.0.jar
      [ERROR] urls[16] = file:/home/root1/.m2/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
      [ERROR] urls[17] = file:/home/root1/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
      [ERROR] urls[18] = file:/home/root1/.m2/repository/org/apache/felix/org.apache.felix.scr.generator/1.13.0/org.apache.felix.scr.generator-1.13.0.jar
      [ERROR] urls[19] = file:/home/root1/.m2/repository/org/ow2/asm/asm-all/5.0.2/asm-all-5.0.2.jar
      [ERROR] urls[20] = file:/home/root1/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
      [ERROR] urls[21] = file:/home/root1/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
      [ERROR] urls[22] = file:/home/root1/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
      [ERROR] urls[23] = file:/home/root1/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
      [ERROR] urls[24] = file:/home/root1/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
      [ERROR] urls[25] = file:/home/root1/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.6/wstx-asl-3.2.6.jar
      [ERROR] urls[26] = file:/home/root1/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
      [ERROR] urls[27] = file:/home/root1/.m2/repository/org/sonatype/spice/model-builder/1.3/model-builder-1.3.jar
      [ERROR] urls[28] = file:/home/root1/.m2/repository/org/apache/maven/maven-project-builder/3.0-alpha-2/maven-project-builder-3.0-alpha-2.jar
      [ERROR] urls[29] = file:/home/root1/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar
      [ERROR] urls[30] = file:/home/root1/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar
      [ERROR] urls[31] = file:/home/root1/.m2/repository/org/antlr/antlr4-runtime/4.5.3/antlr4-runtime-4.5.3.jar
      [ERROR] urls[32] = file:/home/root1/.m2/repository/org/codehaus/mojo/build-helper-maven-plugin/1.10/build-helper-maven-plugin-1.10.jar
      [ERROR] urls[33] = file:/home/root1/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
      [ERROR] urls[34] = file:/home/root1/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar
      [ERROR] urls[35] = file:/home/root1/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import from realm ClassRealm[project>org.onosproject:onlab-test:1.7.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
      [ERROR]
      [ERROR] -----------------------------------------------------
      [ERROR] -> [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/PluginExecutionException
      root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Vidyashree-Huawei Vidyashree Rama
            Reporter:
            huawei-adarsh Adarsh m
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: