java.lang.NullPointerException

JIRA | Prince Pereira | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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

    JIRA | 7 months ago | Prince Pereira
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.applyRule()
    2. org.onosproject.provider
      OpenFlowRuleProvider.applyFlowRule
      1. org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.applyRule(OpenFlowRuleProvider.java:279)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      2. org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.applyFlowRule(OpenFlowRuleProvider.java:263)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      2 frames
    3. org.onosproject.net
      FlowRuleManager$InternalFlowRuleProviderService.flowRemoved
      1. org.onosproject.net.flow.impl.FlowRuleManager$InternalFlowRuleProviderService.flowRemoved(FlowRuleManager.java:348)[116:org.onosproject.onos-core-net:1.5.2.SNAPSHOT]
      1 frame
    4. org.onosproject.provider
      OpenFlowRuleProvider$InternalFlowProvider.handleMessage
      1. org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider$InternalFlowProvider.handleMessage(OpenFlowRuleProvider.java:438)[170:org.onosproject.onos-of-provider-flow:1.5.2.SNAPSHOT]
      1 frame
    5. org.onosproject.openflow
      OpenFlowControllerImpl$OFMessageHandler.run
      1. org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OFMessageHandler.run(OpenFlowControllerImpl.java:682)[167:org.onosproject.onos-of-ctl:1.5.2.SNAPSHOT]
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_77]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_77]
      3. java.lang.Thread.run(Thread.java:745)[:1.8.0_77]
      3 frames