Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-77

netconf-testtool NullPointerException - Looks like another yang breakage

    XMLWordPrintable

Details

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

    • 4425

    Description

      Build netconf from latest master branch.

      cd netconf/opendaylight/netconf/tools/netconf-testtool/target
      java -Xmx1G -XX:MaxPermSize=256M -jar netconf-testtool-1.0.0-SNAPSHOT-executable.jar --device-count 1

      See exception below:

      It appears that something has changed in class YangParserListenerImpl such that the "create()" method doesn't set moduleBuilder ... which is causing this Null reference later.

      11:02:14.177 [main] ERROR o.o.netconf.test.tool.Main - Unhandled exception
      java.lang.NullPointerException: null
      at org.opendaylight.netconf.test.tool.ModuleBuilderCapability.getModuleNamespace(ModuleBuilderCapability.java:39) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.ModuleBuilderCapability.getCapabilityUri(ModuleBuilderCapability.java:33) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.DummyMonitoringService$1.apply(DummyMonitoringService.java:45) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.DummyMonitoringService$1.apply(DummyMonitoringService.java:41) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at com.google.common.collect.Iterators$8.transform(Iterators.java:799) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at java.util.AbstractCollection.toArray(AbstractCollection.java:141) ~[na:1.7.0_79]
      at java.util.ArrayList.<init>(ArrayList.java:164) ~[na:1.7.0_79]
      at com.google.common.collect.Lists.newArrayList(Lists.java:144) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.DummyMonitoringService.<init>(DummyMonitoringService.java:69) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.NetconfDeviceSimulator.createDispatcher(NetconfDeviceSimulator.java:140) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.NetconfDeviceSimulator.start(NetconfDeviceSimulator.java:192) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]
      at org.opendaylight.netconf.test.tool.Main.main(Main.java:193) ~[netconf-testtool-1.0.0-SNAPSHOT-executable.jar:na]

      Attachments

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

        Activity

          People

            jmorvay@cisco.com Jakub Morvay
            jameshall03885@gmail.com James Gregory Hall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: