java.lang.NullPointerException

JIRA | Suchitra Vemuri | 3 months ago
  1. 0

    *Problem:* Exceptions are thrown when disabling a device using netcfg No error is shown while performing administrative change using the rest api. But the actual device is still shown as valid/active device for intent creations as well. NullPointerExceptions are seen in the karaf.log (please find logs below) *Impact:* Incorrect administrative states on the devices *Workaround:* None *Reproduction Steps:* -> Using REST API (POST) device states at http://<localhost>:8181/network/configuration/{subjectClassKey}/{subjectKey}/{configKey} OR USE the following SAMPLE ----------------------------------------- curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "rackAddress": 3, \ "name": "Switch3", \ "owner": "Jane", \ "allowed": false }' 'http://10.128.15.2:8181/onos/v1/network/configuration/devices/of%3A0000000000000303/basic' ------------------------------- -> Operation succeeds without any errors -> Check the logs below to see the status of the above device {noformat} onos> onos:netcfg { "ports" : { }, "apps" : { "org.onosproject.provider.lldp" : { "suppression" : { "deviceTypes" : [ "ROADM", "OTN", "FIBER_SWITCH" ], "annotation" : "{\"no-lldp\":null}" } } }, "devices" : { "of:0000000000000303" : { "basic" : { "rackAddress" : 3, "name" : "Switch3", "owner" : "Jane", "allowed" : false } } }, "hosts" : { }, "links" : { } } onos> devices id=of:0000000000000101, available=true, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:51853, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000102, available=true, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:51856, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000103, available=true, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:54368, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000201, available=true, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:54345, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000202, available=true, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:54344, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000203, available=true, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:54359, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000301, available=true, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:54349, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000302, available=true, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:51866, managementAddress=10.128.15.254, protocol=OF_13 id=of:0000000000000303, available=true, role=STANDBY, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.3.1, serial=None, driver=ovs, channelId=10.128.15.254:51862, managementAddress=10.128.15.254, protocol=OF_13 onos> {noformat} ============================================== {noformat} 2016-09-02 10:22:12,699 | INFO | ycat-compactor-1 | Compactor | 69 - io.atomix.all - 1.0.0.rc9 | Compacting log with compaction: MINOR 2016-09-02 10:22:14,414 | INFO | ycat-compactor-1 | Compactor | 69 - io.atomix.all - 1.0.0.rc9 | Compacting log with compaction: MINOR 2016-09-02 10:24:13,243 | INFO | ycat-compactor-1 | Compactor | 69 - io.atomix.all - 1.0.0.rc9 | Compacting log with compaction: MINOR 2016-09-02 10:28:10,006 | WARN | ssionScavenger-6 | teInvalidatingHashSessionManager | 108 - org.ops4j.pax.web.pax-web-jetty - 3.2.6 | Timing out for 1 session(s) with id 1tyx3p40qcghzuygx54w2bim8 2016-09-02 10:28:10,359 | INFO | event-dispatch-0 | DeviceManager | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Device of:0000000000000303 administratively removed 2016-09-02 10:28:10,372 | INFO | ew I/O worker #2 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | Switch disconnected callback for sw:org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/10.128.15.254:51862 DPID[00:00:00:00:00:00:03:03]]. Cleaning up ... 2016-09-02 10:28:10,372 | INFO | ew I/O worker #2 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/10.128.15.254:51862 DPID[00:00:00:00:00:00:03:03]]:removal called 2016-09-02 10:28:10,372 | INFO | ew I/O worker #2 | DeviceManager | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Device of:0000000000000303 disconnected from this node 2016-09-02 10:28:10,389 | ERROR | ew I/O worker #2 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | Error while processing message from switch org.onosproject.driver.handshaker.NiciraSwitchHandshaker [/10.128.15.254:51862 DPID[00:00:00:00:00:00:03:03]]state ACTIVE java.lang.NullPointerException at org.onosproject.store.device.impl.GossipDeviceStore.markOfflineInternal(GossipDeviceStore.java:523)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.store.device.impl.GossipDeviceStore.markOffline(GossipDeviceStore.java:503)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT] at org.onosproject.net.device.impl.DeviceManager$InternalDeviceProviderService.deviceDisconnected(DeviceManager.java:440)[76:org.onosproject.onos-core-net:1.7.0.SNAPSHOT] at org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider$InternalDeviceProvider.switchRemoved(OpenFlowDeviceProvider.java:411)[183:org.onosproject.onos-of-provider-device:1.7.0.SNAPSHOT] at org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OpenFlowSwitchAgent.removeConnectedSwitch(OpenFlowControllerImpl.java:712)[182:org.onosproject.onos-of-ctl:1.7.0.SNAPSHOT] at org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch.removeConnectedSwitch(AbstractOpenFlowSwitch.java:308)[179:org.onosproject.onos-of-api:1.7.0.SNAPSHOT] at org.onosproject.openflow.controller.impl.OFChannelHandler.channelDisconnected(OFChannelHandler.java:1073)[182:org.onosproject.onos-of-ctl:1.7.0.SNAPSHOT] at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:120)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.handler.codec.frame.FrameDecoder.cleanup(FrameDecoder.java:493)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:396)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.Channels$4.run(Channels.java:386)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)[44:org.jboss.netty:3.10.5.Final] at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)[44:org.jboss.netty:3.10.5.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_72] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_72] at java.lang.Thread.run(Thread.java:745)[:1.8.0_72] 2016-09-02 10:28:10,390 | INFO | nos-topo-build-5 | TopologyManager | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Topology DefaultTopology{time=771282349163651, creationTime=1472837290383, computeCost=556618, clusters=1, devices=8, links=28} changed 2016-09-02 10:28:10,418 | INFO | ew I/O worker #5 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | New switch connection from /10.128.15.254:51942 2016-09-02 10:28:10,418 | INFO | ew I/O worker #5 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | Sending OF_13 Hello to /10.128.15.254:51942 2016-09-02 10:28:10,420 | INFO | ew I/O worker #5 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | Received port desc reply for switch at [/10.128.15.254:51942 DPID[00:00:00:00:00:00:03:03]] 2016-09-02 10:28:10,422 | INFO | ew I/O worker #5 | OFChannelHandler | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | Received switch description reply OFDescStatsReplyVer13(xid=4294967289, flags=[], mfrDesc=Nicira, Inc., hwDesc=Open vSwitch, swDesc=2.3.1, serialNum=None, dpDesc=None) from switch at /10.128.15.254:51942 2016-09-02 10:28:10,422 | INFO | ew I/O worker #5 | Controller | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | Driver ovs assigned to device 00:00:00:00:00:00:03:03 2016-09-02 10:28:10,423 | INFO | ew I/O worker #5 | Controller | 182 - org.onosproject.onos-of-ctl - 1.7.0.SNAPSHOT | OpenFlow handshaker found for device 771: org.onosproject.driver.handshaker.NiciraSwitchHandshaker [? DPID[00:00:00:00:00:00:03:03]] {noformat}

    JIRA | 3 months ago | Suchitra Vemuri
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.store.device.impl.GossipDeviceStore.markOfflineInternal()
    2. org.onosproject.store
      GossipDeviceStore.markOffline
      1. org.onosproject.store.device.impl.GossipDeviceStore.markOfflineInternal(GossipDeviceStore.java:523)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT]
      2. org.onosproject.store.device.impl.GossipDeviceStore.markOffline(GossipDeviceStore.java:503)[78:org.onosproject.onos-core-dist:1.7.0.SNAPSHOT]
      2 frames
    3. org.onosproject.net
      DeviceManager$InternalDeviceProviderService.deviceDisconnected
      1. org.onosproject.net.device.impl.DeviceManager$InternalDeviceProviderService.deviceDisconnected(DeviceManager.java:440)[76:org.onosproject.onos-core-net:1.7.0.SNAPSHOT]
      1 frame
    4. org.onosproject.provider
      OpenFlowDeviceProvider$InternalDeviceProvider.switchRemoved
      1. org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider$InternalDeviceProvider.switchRemoved(OpenFlowDeviceProvider.java:411)[183:org.onosproject.onos-of-provider-device:1.7.0.SNAPSHOT]
      1 frame
    5. org.onosproject.openflow
      OFChannelHandler.channelDisconnected
      1. org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OpenFlowSwitchAgent.removeConnectedSwitch(OpenFlowControllerImpl.java:712)[182:org.onosproject.onos-of-ctl:1.7.0.SNAPSHOT]
      2. org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch.removeConnectedSwitch(AbstractOpenFlowSwitch.java:308)[179:org.onosproject.onos-of-api:1.7.0.SNAPSHOT]
      3. org.onosproject.openflow.controller.impl.OFChannelHandler.channelDisconnected(OFChannelHandler.java:1073)[182:org.onosproject.onos-of-ctl:1.7.0.SNAPSHOT]
      3 frames
    6. Netty
      DeadLockProofWorker$1.run
      1. org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:120)[44:org.jboss.netty:3.10.5.Final]
      2. org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36)[44:org.jboss.netty:3.10.5.Final]
      3. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final]
      4. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final]
      5. org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208)[44:org.jboss.netty:3.10.5.Final]
      6. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final]
      7. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final]
      8. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final]
      9. org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208)[44:org.jboss.netty:3.10.5.Final]
      10. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final]
      11. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final]
      12. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final]
      13. org.jboss.netty.channel.SimpleChannelUpstreamHandler.channelDisconnected(SimpleChannelUpstreamHandler.java:208)[44:org.jboss.netty:3.10.5.Final]
      14. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final]
      15. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final]
      16. org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)[44:org.jboss.netty:3.10.5.Final]
      17. org.jboss.netty.handler.codec.frame.FrameDecoder.cleanup(FrameDecoder.java:493)[44:org.jboss.netty:3.10.5.Final]
      18. org.jboss.netty.handler.codec.frame.FrameDecoder.channelDisconnected(FrameDecoder.java:365)[44:org.jboss.netty:3.10.5.Final]
      19. org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:102)[44:org.jboss.netty:3.10.5.Final]
      20. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)[44:org.jboss.netty:3.10.5.Final]
      21. org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)[44:org.jboss.netty:3.10.5.Final]
      22. org.jboss.netty.channel.Channels.fireChannelDisconnected(Channels.java:396)[44:org.jboss.netty:3.10.5.Final]
      23. org.jboss.netty.channel.Channels$4.run(Channels.java:386)[44:org.jboss.netty:3.10.5.Final]
      24. org.jboss.netty.channel.socket.ChannelRunnableWrapper.run(ChannelRunnableWrapper.java:40)[44:org.jboss.netty:3.10.5.Final]
      25. org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQueue(AbstractNioSelector.java:391)[44:org.jboss.netty:3.10.5.Final]
      26. org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:315)[44:org.jboss.netty:3.10.5.Final]
      27. org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)[44:org.jboss.netty:3.10.5.Final]
      28. org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)[44:org.jboss.netty:3.10.5.Final]
      29. org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)[44:org.jboss.netty:3.10.5.Final]
      30. org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)[44:org.jboss.netty:3.10.5.Final]
      30 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_72]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_72]
      3. java.lang.Thread.run(Thread.java:745)[:1.8.0_72]
      3 frames