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

Nullpointer Exception in the applyRule method of OpenFlowRuleProvider when mininet connection/disconnection and intent creation/deletion happens parallel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.0, 1.5.1, 1.5.2
    • Component/s: None
    • Labels:
    • Environment:

      onos 1.5

    • Story Points:
      2

      Description

      I was testing the onos behaviour when mininet connection/disconnection and intent creation/deletion happens parallel. I was able to receive null pointer exception in applyRule method of OpenFlowRuleprovider class. The exception what I received is :

      016-07-12 14:31:07,704 | INFO | vent-error-msg-0 | OpenFlowRuleProvider | 170 - org.onosproject.onos-of-provider-flow - 1.5.2.SNAPSHOT | prince========
      2016-07-12 14:31:07,719 | INFO | vent-error-msg-0 | OpenFlowRuleProvider | 170 - org.onosproject.onos-of-provider-flow - 1.5.2.SNAPSHOT | prince : ============== b4444 flowrule : DefaultFlowEntry{rule=DefaultFlowEntry{id=1000046444328, deviceId=of:0000000000000001, priority=5, selector=[ETH_TYPE:ipv4], treatment=DefaultTrafficTreatment

      {immediate=[OUTPUT:CONTROLLER], deferred=[], transition=None, cleared=false, metadata=null}

      , tableId=0, created=1468313921042, payLoad=null}, state=ADDED}
      2016-07-12 14:31:07,732 | ERROR | vent-error-msg-0 | OpenFlowControllerImpl | 167 - org.onosproject.onos-of-ctl - 1.5.2.SNAPSHOT | Uncaught exception on onos-of-event-error-msg-0
      java.lang.NullPointerException
      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.applyRule(OpenFlowRuleProvider.java:279)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.applyFlowRule(OpenFlowRuleProvider.java:263)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.net.flow.impl.FlowRuleManager$InternalFlowRuleProviderService.flowRemoved(FlowRuleManager.java:348)[116:org.onosproject.onos-core-net:1.5.2.SNAPSHOT]
      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider$InternalFlowProvider.handleMessage(OpenFlowRuleProvider.java:438)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      at org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OFMessageHandler.run(OpenFlowControllerImpl.java:682)[167:org.onosproject.onos-of-ctl:1.5.2.SNAPSHOT]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_77]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_77]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_77]
      2016-07-12 14:31:07,762 | INFO | nos-topo-build-2 | TopologyManager | 116 - org.onosproject.onos-core-net - 1.5.2.SNAPSHOT | Topology DefaultTopology

      {time=12614173872192, creationTime=1468314067743, computeCost=135657, clusters=0, devices=0, links=0}

      changed
      2016-07-12 14:31:07,766 | INFO | ew I/O worker #2 | 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-12 14:31:07,766 | INFO | ew I/O worker #2 | GroupStatsCollector | 171 - org.onosproject.onos-of-provider-group - 1.5.2.SNAPSHOT | Stopping Group Stats collection thread for 00:00:00:00:00:00:00:01

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            princepereira Prince Pereira
            Reporter:
            princepereira Prince Pereira
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: