java.lang.reflect.InvocationTargetException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by chidambar babu,
    • 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
    No Bugmate found.