java.lang.reflect.InvocationTargetException

JIRA | chidambar babu | 7 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

    procedure: activate yms activate restconf actiavte ymtest run ymtest testE2EBasic Test code: // Add device schema in YMS codec yangCodecHandler.addDeviceSchema(Network.class); Exception : yms-test testSbiEncode [REPORT] Running test 1 testSbiEncode java.lang.reflect.InvocationTargetException 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.onosproject.ymstest.cli.YmsTestCommand.execute(YmsTestCommand.java:75) at org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:150) at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33) at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33) at Proxybd74b9f1_7348_4381_9584_110a10226a13.execute(Unknown Source) at Proxybd74b9f1_7348_4381_9584_110a10226a13.execute(Unknown Source) at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78) at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480) at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406) at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182) at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119) at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94) at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:210) at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109) at java.security.AccessController.doPrivileged(Native Method) at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57) at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102) Caused by: java.lang.NullPointerException at org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.verifyApplicationRegistration(DefaultYangSchemaRegistry.java:265) at org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.processRegistration(DefaultYangSchemaRegistry.java:230) at org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.registerApplication(DefaultYangSchemaRegistry.java:211) at org.onosproject.yms.app.ych.DefaultYangCodecHandler.addDeviceSchema(DefaultYangCodecHandler.java:137) at org.onosproject.ymstest.YmsTestcases.testSbiEncode(YmsTestcases.java:208) ... 22 more [SUMMARY REPORT] Total:1, Passed:0, Failed:0, Error:1, Pass Percent:0% Status : Resolved

    JIRA | 7 months ago | chidambar babu
    java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.verifyApplicationRegistration()
    2. org.onosproject.yms
      DefaultYangCodecHandler.addDeviceSchema
      1. org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.verifyApplicationRegistration(DefaultYangSchemaRegistry.java:265)
      2. org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.processRegistration(DefaultYangSchemaRegistry.java:230)
      3. org.onosproject.yms.app.ysr.DefaultYangSchemaRegistry.registerApplication(DefaultYangSchemaRegistry.java:211)
      4. org.onosproject.yms.app.ych.DefaultYangCodecHandler.addDeviceSchema(DefaultYangCodecHandler.java:137)
      4 frames
    3. org.onosproject.ymstest
      YmsTestcases.testSbiEncode
      1. org.onosproject.ymstest.YmsTestcases.testSbiEncode(YmsTestcases.java:208)
      1 frame
    4. 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
    5. org.onosproject.ymstest
      YmsTestCommand.execute
      1. org.onosproject.ymstest.cli.YmsTestCommand.execute(YmsTestCommand.java:75)
      1 frame
    6. org.onosproject.cli
      AbstractShellCommand.doExecute
      1. org.onosproject.cli.AbstractShellCommand.doExecute(AbstractShellCommand.java:150)
      1 frame
    7. Apache Karaf :: Shell :: Console
      AbstractCommand.execute
      1. org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
      2. org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
      2 frames
    8. Unknown
      Proxybd74b9f1_7348_4381_9584_110a10226a13.execute
      1. Proxybd74b9f1_7348_4381_9584_110a10226a13.execute(Unknown Source)
      2. Proxybd74b9f1_7348_4381_9584_110a10226a13.execute(Unknown Source)
      2 frames
    9. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
      2. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)
      3. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)
      4. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
      5. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)
      7. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)
      7 frames
    10. Apache Karaf :: Shell :: Console
      LocalConsoleManager$2$1$1.run
      1. org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:210)
      2. org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)
      2 frames
    11. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    12. Karaf
      JaasHelper.doAs
      1. org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)
      1 frame
    13. Apache Karaf :: Shell :: Console
      LocalConsoleManager$2$1.run
      1. org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)
      1 frame