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

NPE in OpenFlowDeviceProvider.buildPortStatistics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      master (commit c1fc0a86754ca93982273fe52c891e588264800f)

      Description

      Only observed occasionally when a switch first connects to the controller. Maybe some kind of race condition.

      2016-04-23 16:52:26,093 | ERROR | of-event-stats-4 | OpenFlowControllerImpl           | 183 - org.onosproject.onos-of-ctl - 1.6.0.SNAPSHOT | Uncaught exception on onos-of-event-stats-4
      java.lang.NullPointerException
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider.buildPortStatistics(OpenFlowDeviceProvider.java:315)[184:org.onosproject.onos-of-provider-device:1.6.0.SNAPSHOT]
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider.pushPortMetrics(OpenFlowDeviceProvider.java:307)[184:org.onosproject.onos-of-provider-device:1.6.0.SNAPSHOT]
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider.access$900(OpenFlowDeviceProvider.java:127)[184:org.onosproject.onos-of-provider-device:1.6.0.SNAPSHOT]
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider$InternalDeviceProvider.handleMessage(OpenFlowDeviceProvider.java:794)[184:org.onosproject.onos-of-provider-device:1.6.0.SNAPSHOT]
      	at org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OFMessageHandler.run(OpenFlowControllerImpl.java:653)[183:org.onosproject.onos-of-ctl:1.6.0.SNAPSHOT]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_74]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_74]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_74]
      

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: