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

Compilation error occurred while building

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      9

      Description

      Yang :
      module siltest3 {

      namespace "http://netconfcentral.org/ns/siltest3";
      prefix "siltest3";

      description
      "Test SIL code generation for nested lists and union types.";

      revision 2011-09-16

      { description "Initial version."; }

      list u {
      key ux;
      leaf ux {
      type union

      { type uint32; type string; }

      }
      leaf uy

      { type uint32; }
      leaf uz { config false; type uint32; }
      leaf uu {
      config false;
      type union { type int32; type uint8; }
      }
      }

      list c {
      key x;
      leaf x { type uint16; }
      leaf z { type uint64; config false; }
      leaf cuu {
      type union { type int32; type uint8; type string; }
      }
      list cc {
      key "xx1 xx2 xx3 xx4 xx5 xx6 xx7 xx8 xx9";
      leaf xx1 {
      type union { type uint32; type string; }
      }
      leaf xx2 { type int8; }
      leaf xx3 { type int16; }
      leaf xx4 { type int32; }
      leaf xx5 { type int64; }
      leaf xx6 { type uint8; }
      leaf xx7 { type uint16; }
      leaf xx8 { type uint32; }

      leaf xx9

      { type uint64; }

      leaf yy

      { type int32; }

      leaf zz

      { type uint64; config false; }
      list ccc {
      key xxx;
      leaf xxx { type string; }
      leaf yyy { type boolean; }
      leaf zzz { type uint64; config false; }

      }
      }
      }

      rpc r {
      input {
      leaf a

      { type string; }

      leaf b

      { type int8; }

      }
      output {
      leaf c

      { type int64; }
      }
      }

      notification n {
      leaf a { type binary; }
      leaf c { type int64; }

      }
      }

      Build Logs :
      mvn clean install
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building onlab-test 1.6.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] Source directory added to compilation root: /opt/onos-master/onos/utils/test/src/main/java
      [INFO]
      [INFO] — maven-resources-plugin:2.7:resources (default-resources) @ onlab-test —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /opt/onos-master/onos/utils/test/src/main/resources
      [INFO] Copying 1 resource
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ onlab-test —
      [INFO] Compiling 27 source files to /opt/onos-master/onos/utils/test/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Manager.java:[26,91] error: cannot find symbol
      [ERROR] symbol: class Rinput
      location: package org.onosproject.yang.gen.v1.http.netconfcentral.org.ns.siltest3.rev20110916.siltest3
      /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Service.java:[22,91] error: cannot find symbol
      [ERROR] symbol: class Rinput
      location: package org.onosproject.yang.gen.v1.http.netconfcentral.org.ns.siltest3.rev20110916.siltest3
      /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Manager.java:[81,18] error: cannot find symbol
      [ERROR] symbol: class Rinput
      location: class Siltest3Manager
      /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Service.java:[67,11] error: cannot find symbol
      [INFO] 4 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.058 s
      [INFO] Finished at: 2016-06-01T16:59:54+05:30
      [INFO] Final Memory: 32M/373M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project onlab-test: Compilation failure: Compilation failure:
      [ERROR] /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Manager.java:[26,91] error: cannot find symbol
      [ERROR] symbol: class Rinput
      [ERROR] location: package org.onosproject.yang.gen.v1.http.netconfcentral.org.ns.siltest3.rev20110916.siltest3
      [ERROR] /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Service.java:[22,91] error: cannot find symbol
      [ERROR] symbol: class Rinput
      [ERROR] location: package org.onosproject.yang.gen.v1.http.netconfcentral.org.ns.siltest3.rev20110916.siltest3
      [ERROR] /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Manager.java:[81,18] error: cannot find symbol
      [ERROR] symbol: class Rinput
      [ERROR] location: class Siltest3Manager
      [ERROR] /opt/onos-master/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/http/netconfcentral/org/ns/siltest3/rev20110916/Siltest3Service.java:[67,11] error: cannot find symbol
      [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/MojoFailureException
      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:
            bsaraswal bharat saraswal
            Reporter:
            huawei-adarsh Adarsh m
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: