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

Unable to process port stats due to NPE

    XMLWordPrintable

    Details

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

      commit c80da08eea7ac1c1b01ff6feaed44078f1bc1cf0

    • Sprint:
      Cardinal Sprint 6 (5/26-5/29)

      Description

      Occassionally I am seeing this in the logs:

      2015-06-03 10:38:46,074 | WARN  | f-event-stats-26 | OpenFlowDeviceProvider           | 170 - org.onosproject.onos-of-provider-device - 1.2.0.SNAPSHOT | Unable to process port stats
      java.lang.NullPointerException
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider.buildPortStatistics(OpenFlowDeviceProvider.java:218)[170:org.onosproject.onos-of-provider-device:1.2.0.SNAPSHOT]
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider.pushPortMetrics(OpenFlowDeviceProvider.java:208)[170:org.onosproject.onos-of-provider-device:1.2.0.SNAPSHOT]
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider.access$400(OpenFlowDeviceProvider.java:92)[170:org.onosproject.onos-of-provider-device:1.2.0.SNAPSHOT]
      	at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider$InternalDeviceProvider.handleMessage(OpenFlowDeviceProvider.java:455)[170:org.onosproject.onos-of-provider-device:1.2.0.SNAPSHOT]
      	at org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OFMessageHandler.run(OpenFlowControllerImpl.java:549)[167:org.onosproject.onos-of-ctl:1.2.0.SNAPSHOT]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_25]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_25]
      	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

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

          Activity

            People

            Assignee:
            jhall Jon Hall
            Reporter:
            jhall Jon Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: