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

compilation error or java file not generated for special characters((: / : - @ $ # ' * + , ; = and character group:/))

    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:
      3

      Description

      Hi,

      Pls check this issue and confirm,

      Defect : compilation error or java file not generated for special characters((: / : - @ $ # ' * + , ; = and character group:/))

      YANG :

      P.S : in namespace based on the character behaviour is different try all cases (: / : - @ $ # ' * + , ; = and character group:/)

      egs :
      module test1 {
      yang-version 1;
      namespace "test1:level-1:level2";
      prefix test;

      organization "huawei";
      contact "bharat.saraswal@huawei.com";
      description "test";

      revision 2015-02-12;

      leaf leaf1-to

      { type "string"; }

      }

      Logs :
      root1@root1-HP-EliteBook-840-G2:/opt/onos-master/onos/utils/test$ mvn clean install
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building test 1.5.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ test —
      [INFO] Deleting /opt/onos-master/onos/utils/test/target
      [INFO]
      [INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default-prepare-agent) @ 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) @ test —
      /opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test/level1/newlevel/rev20150212[INFO] Source directory added to compilation root: /opt/onos-master/onos/utils/test/src/main/yangmodel/
      [INFO]
      [INFO] — maven-resources-plugin:2.7:resources (default-resources) @ 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 6 resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @ test —
      [INFO] Compiling 6 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/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/Test1.java:[17,47] error: ';' expected
      [ERROR] /opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/Test1Builder.java:[17,47] error: ';' expected
      [ERROR] /opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/package-info.java:[20,47] error: ';' expected
      [INFO] 3 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2.257 s
      [INFO] Finished at: 2016-03-08T16:32:12+05:30
      [INFO] Final Memory: 19M/309M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project test: Compilation failure: Compilation failure:
      [ERROR] /opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/Test1.java:[17,47] error: ';' expected
      [ERROR] /opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/Test1Builder.java:[17,47] error: ';' expected
      [ERROR] /opt/onos-master/onos/utils/test/src/main/yangmodel/org/onosproject/yang/gen/v1/test1/level-1/level2/rev20150212/package-info.java:[20,47] error: ';' expected
      [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

        Attachments

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

          Activity

            People

            • Assignee:
              janani Janani B
              Reporter:
              huawei-adarsh Adarsh m
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: