Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-6658

NPE while posting netcfg after deactivating Segment Routing App

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0, 1.11.0
    • Component/s: None
    • Labels:
      None

      Description

      while posting netconfiguration, I am seeing null pointer exception in the logs.
      LOG:
      2017-06-19 05:55:58,617 | WARN | spatch-topology0 | ListenerRegistry | 125 - org.onosproject.onos-api - 1.10.1.SNAPSHOT | Exception encountered while processing event HostEvent{time=2017-06-19T05:55:58.585, type=HOST_ADDED, subject=DefaultHost{id=00:00:00:00:00:01/None, mac=00:00:00:00:00:01, vlan=None, location=of:0000000000000001/1, ipAddresses=[10.0.1.1], annotations=

      {name=00:00:00:00:00:01/None, locType=geo}

      , configured=true}, prevSubject=null}
      java.lang.NullPointerException
      at org.onosproject.segmentrouting.SegmentRoutingManager$InternalHostListener.event(SegmentRoutingManager.java:1212)[173:org.onosproject.onos-apps-segmentrouting:1.10.1.SNAPSHOT]
      at org.onosproject.segmentrouting.SegmentRoutingManager$InternalHostListener.event(SegmentRoutingManager.java:1207)[173:org.onosproject.onos-apps-segmentrouting:1.10.1.SNAPSHOT]
      at org.onosproject.event.ListenerRegistry.process(ListenerRegistry.java:66)[125:org.onosproject.onos-api:1.10.1.SNAPSHOT]
      at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.process(CoreEventDispatcher.java:204)[127:org.onosproject.onos-core-net:1.10.1.SNAPSHOT]
      at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.run(CoreEventDispatcher.java:187)[127:org.onosproject.onos-core-net:1.10.1.SNAPSHOT]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_101]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_101]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_101]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_101]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]

      Steps to reproduce:
      (1) Activate segment routing application.
      (2) Activate netcfg host provider application.
      (3) Deactivate the segment routing application.
      (4) Post a network configuration from rest API(I used 2x2.json for this testing)
      (5) In logs, you will be able to see the null pointer exception.

        Attachments

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

          Activity

            People

            Assignee:
            charles Charles Chan
            Reporter:
            sisubram sivachidambaram subramanian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: