Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-267

Bingding2: errors occur when compiling generated code using "list" in yang

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 8634

    Description

      I use

      <groupId>org.opendaylight.mdsal</groupId>
      <artifactId>mdsal-model-binding2-parent</artifactId>
      <version>0.11.0-SNAPSHOT</version>

      as parent in pom. The yang file is in the attachment.

      And there are errors:

      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[14,97] package org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.fruits does not exist
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/Fruits.java:[9,97] package org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.fruits does not exist
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[24,13] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[9,97] package org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.fruits does not exist
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[50,12] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[71,46] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/Fruits.java:[37,5] cannot find symbol
      symbol: class FruitsName
      location: interface org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.Fruits
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[17,19] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.basket.fruits.wrapper.FruitsKey
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[19,22] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.basket.fruits.wrapper.FruitsKey
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[32,12] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.basket.fruits.wrapper.FruitsKey
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[104,24] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder.FruitsImpl
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[120,16] cannot find symbol
      symbol: class FruitsName
      location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder.FruitsImpl
      [INFO] 12 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 26.756 s
      [INFO] Finished at: 2017-06-08T15:36:12+08:00
      [INFO] Final Memory: 51M/127M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project zxr10-interface: Compilation failure: Compilation failure:
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[14,97] package org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.fruits does not exist
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/Fruits.java:[9,97] package org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.fruits does not exist
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[24,13] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[9,97] package org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.fruits does not exist
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[50,12] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[71,46] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/Fruits.java:[37,5] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: interface org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.Fruits
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[17,19] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.basket.fruits.wrapper.FruitsKey
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[19,22] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.basket.fruits.wrapper.FruitsKey
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/key/basket/fruits/wrapper/FruitsKey.java:[32,12] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.key.basket.fruits.wrapper.FruitsKey
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[104,24] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder.FruitsImpl
      [ERROR] /home/workspace/code/bier-c/drivers/zte-driver/zte-models/zxr10-interface/target/generated-sources/mdsal-binding2/org/opendaylight/mdsal/gen/javav2/http/www/zte/com/cn/test/test/list/rev170607/data/basket/FruitsBuilder.java:[120,16] cannot find symbol
      [ERROR] symbol: class FruitsName
      [ERROR] location: class org.opendaylight.mdsal.gen.javav2.http.www.zte.com.cn.test.test.list.rev170607.data.basket.FruitsBuilder.FruitsImpl
      [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

            martin.ciglan Martin Ciglan
            gu.min1@zte.com.cn GU Min
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: