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

OpticalPathProvisioner NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Blackbird Sprint 3 (jan19-30)

      Description

      Need to guard against null hosts
      Example: packet switch goes away, and so will hosts connected to it, devices returns... we will call into provisioner and NPE before the host can be rediscovered.

      java.lang.NullPointerException
      at org.onosproject.optical.OpticalPathProvisioner$InternalOpticalPathProvisioner.setupLightpath(OpticalPathProvisioner.java:122)[161:org.onosproject.onos-app-optical:1.0.0]
      at org.onosproject.optical.OpticalPathProvisioner$InternalOpticalPathProvisioner.event(OpticalPathProvisioner.java:103)[161:org.onosproject.onos-app-optical:1.0.0]
      at org.onosproject.optical.OpticalPathProvisioner$InternalOpticalPathProvisioner.event(OpticalPathProvisioner.java:93)[161:org.onosproject.onos-app-optical:1.0.0]
      at org.onosproject.event.AbstractListenerRegistry.process(AbstractListenerRegistry.java:63)[72:org.onosproject.onos-api:1.0.0]
      at org.onosproject.event.impl.CoreEventDispatcher$DispatchLoop.run(CoreEventDispatcher.java:95)[154:org.onosproject.onos-core-net:1.0.0]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_25]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            bocon Brian O'Connor
            Reporter:
            bocon Brian O'Connor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: