org.onosproject.yangutils.translator.exception.TranslatorException: given data type is not supported. instance-identifier in 79 at 8 in /home/root1/onos/utils/test/src/main/yang/8.yang

JIRA | Adarsh m | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    mcis [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building onlab-rest 1.8.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ onlab-rest --- [INFO] Deleting /home/root1/onos/utils/test/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (default-prepare-agent) @ onlab-rest --- [INFO] argLine set to -javaagent:/home/root1/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/home/root1/onos/utils/test/target/jacoco.exec -Duser.language=en -Duser.region=US [INFO] [INFO] --- onos-yang-maven-plugin:1.9-SNAPSHOT:yang2java (default) @ onlab-rest --- org.onosproject.yangutils.translator.exception.TranslatorException: given data type is not supported. instance-identifier in 79 at 8 in /home/root1/onos/utils/test/src/main/yang/8.yang at org.onosproject.yangutils.translator.tojava.utils.StringGenerator.getParseFromStringMethod(StringGenerator.java:764) at org.onosproject.yangutils.translator.tojava.utils.MethodsGenerator.getParsedSubString(MethodsGenerator.java:837) at org.onosproject.yangutils.translator.tojava.utils.MethodsGenerator.getFromStringMethod(MethodsGenerator.java:806) at org.onosproject.yangutils.translator.tojava.TempJavaFragmentFiles.addFromStringMethod(TempJavaFragmentFiles.java:1246) at org.onosproject.yangutils.translator.tojava.TempJavaFragmentFiles.addJavaSnippetInfoToApplicableTempFiles(TempJavaFragmentFiles.java:1557) at org.onosproject.yangutils.translator.tojava.TempJavaTypeFragmentFiles.addJavaSnippetInfoToApplicableTempFiles(TempJavaTypeFragmentFiles.java:329) at org.onosproject.yangutils.translator.tojava.TempJavaTypeFragmentFiles.addTypeInfoToTempFiles(TempJavaTypeFragmentFiles.java:264) at org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFiles.addTypeInfoToTempFiles(TempJavaCodeFragmentFiles.java:195) at org.onosproject.yangutils.translator.tojava.YangJavaModelUtils.updateTempFragmentFiles(YangJavaModelUtils.java:256) at org.onosproject.yangutils.translator.tojava.YangJavaModelUtils.generateTempFiles(YangJavaModelUtils.java:287) at org.onosproject.yangutils.translator.tojava.YangJavaModelUtils.generateCodeOfNode(YangJavaModelUtils.java:466) at org.onosproject.yangutils.translator.tojava.javamodel.YangJavaTypeDefTranslator.generateCodeEntry(YangJavaTypeDefTranslator.java:136) at org.onosproject.yangutils.translator.tojava.JavaCodeGeneratorUtil.generateCodeEntry(JavaCodeGeneratorUtil.java:156) at org.onosproject.yangutils.translator.tojava.JavaCodeGeneratorUtil.generateJavaCode(JavaCodeGeneratorUtil.java:99) at org.onosproject.yangutils.plugin.manager.YangUtilManager.translateToJava(YangUtilManager.java:365) at org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:211) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.938 s [INFO] Finished at: 2016-10-04T14:46:49+05:30 [INFO] Final Memory: 21M/306M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.onosproject:onos-yang-maven-plugin:1.9-SNAPSHOT:yang2java (default) on project onlab-rest: Execution default of goal org.onosproject:onos-yang-maven-plugin:1.9-SNAPSHOT:yang2java failed: given data type is not supported. instance-identifier in 79 at 8 in /home/root1/onos/utils/test/src/main/yang/8.yang -> [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:~/onos/utils/test$

    JIRA | 6 months ago | Adarsh m
    org.onosproject.yangutils.translator.exception.TranslatorException: given data type is not supported. instance-identifier in 79 at 8 in /home/root1/onos/utils/test/src/main/yang/8.yang

    Root Cause Analysis

    1. org.onosproject.yangutils.translator.exception.TranslatorException

      given data type is not supported. instance-identifier in 79 at 8 in /home/root1/onos/utils/test/src/main/yang/8.yang

      at org.onosproject.yangutils.translator.tojava.utils.StringGenerator.getParseFromStringMethod()
    2. org.onosproject.yangutils
      YangUtilManager.execute
      1. org.onosproject.yangutils.translator.tojava.utils.StringGenerator.getParseFromStringMethod(StringGenerator.java:764)
      2. org.onosproject.yangutils.translator.tojava.utils.MethodsGenerator.getParsedSubString(MethodsGenerator.java:837)
      3. org.onosproject.yangutils.translator.tojava.utils.MethodsGenerator.getFromStringMethod(MethodsGenerator.java:806)
      4. org.onosproject.yangutils.translator.tojava.TempJavaFragmentFiles.addFromStringMethod(TempJavaFragmentFiles.java:1246)
      5. org.onosproject.yangutils.translator.tojava.TempJavaFragmentFiles.addJavaSnippetInfoToApplicableTempFiles(TempJavaFragmentFiles.java:1557)
      6. org.onosproject.yangutils.translator.tojava.TempJavaTypeFragmentFiles.addJavaSnippetInfoToApplicableTempFiles(TempJavaTypeFragmentFiles.java:329)
      7. org.onosproject.yangutils.translator.tojava.TempJavaTypeFragmentFiles.addTypeInfoToTempFiles(TempJavaTypeFragmentFiles.java:264)
      8. org.onosproject.yangutils.translator.tojava.TempJavaCodeFragmentFiles.addTypeInfoToTempFiles(TempJavaCodeFragmentFiles.java:195)
      9. org.onosproject.yangutils.translator.tojava.YangJavaModelUtils.updateTempFragmentFiles(YangJavaModelUtils.java:256)
      10. org.onosproject.yangutils.translator.tojava.YangJavaModelUtils.generateTempFiles(YangJavaModelUtils.java:287)
      11. org.onosproject.yangutils.translator.tojava.YangJavaModelUtils.generateCodeOfNode(YangJavaModelUtils.java:466)
      12. org.onosproject.yangutils.translator.tojava.javamodel.YangJavaTypeDefTranslator.generateCodeEntry(YangJavaTypeDefTranslator.java:136)
      13. org.onosproject.yangutils.translator.tojava.JavaCodeGeneratorUtil.generateCodeEntry(JavaCodeGeneratorUtil.java:156)
      14. org.onosproject.yangutils.translator.tojava.JavaCodeGeneratorUtil.generateJavaCode(JavaCodeGeneratorUtil.java:99)
      15. org.onosproject.yangutils.plugin.manager.YangUtilManager.translateToJava(YangUtilManager.java:365)
      16. org.onosproject.yangutils.plugin.manager.YangUtilManager.execute(YangUtilManager.java:211)
      16 frames
    3. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame
    4. 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
    5. 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
    6. 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
    7. 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