java.lang.NullPointerException

JIRA | Prince Pereira | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded 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 | 9 months ago | Prince Pereira
    java.lang.NullPointerException
  2. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  3. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 3 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object
  6. 0

    NullPointerException in MIDlet with left soft key

    Stack Overflow | 6 years ago | berry120
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callItemListener(), bci=57 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=57 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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