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

Null pointer exception in FlowStatsCollector when device is connected and disconnected frequently from the controller

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.6.0, 1.7.0
    • Fix Version/s: 1.7.0, 1.6.1
    • Component/s: None
    • Labels:
    • Environment:

      Controller - onos 1.5

    • Story Points:
      3

      Description

      When ovs device is repeatedly connected and disconnected from onos controller, null pointer exception was happening in the FlowStatsCollector . I followed the below steps to reproduce the issue.

      1. Started onos 1.5 and executed log:tail command for viewing the real time logs.
      2. Run a python script to start and stop mininet continuously (script is attached).
      3. The below exception was visible in onos logs.

      6-07-14 15:41:37,551 | INFO | ew I/O worker #8 | PortStatsCollector | 168 - org.onosproject.onos-of-provider-device - 1.5.2.SNAPSHOT | Stopping Port Stats collection thread for 00:00:00:00:00:00:00:01
      2016-07-14 15:41:37,551 | ERROR | ew I/O worker #8 | OFChannelHandler | 167 - org.onosproject.onos-of-ctl - 1.5.2.SNAPSHOT | Error while processing message from switch org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/192.168.56.108:41576 DPID[00:00:00:00:00:00:00:01]]state WAIT_DESCRIPTION_STAT_REPLY
      java.lang.NullPointerException
      at org.onosproject.provider.of.flow.impl.FlowStatsCollector.start(FlowStatsCollector.java:88)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.createCollector(OpenFlowRuleProvider.java:228)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.access$100(OpenFlowRuleProvider.java:95)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider$InternalFlowProvider.switchAdded(OpenFlowRuleProvider.java:395)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OpenFlowSwitchAgent.addConnectedSwitch(OpenFlowControllerImpl.java:537)[167:org.onosproject.onos-of-ctl:1.5.2.SNAPSHOT]
      at org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch.connectSwitch(AbstractOpenFlowSwitch.java:294)[164:o

        Attachments

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

          Activity

            People

            Assignee:
            kavitha Kavitha Alagesan
            Reporter:
            princepereira Prince Pereira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: