[SFC-181] NullPointerException when creating RSP without any topology node connected Created: 13/Dec/16  Updated: 13/Dec/16  Resolved: 13/Dec/16

Status: Resolved
Project: sfc
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Diego Granados Assignee: Diego Granados
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7350

 Description   

NullPointerException when creating a RSP and not a single topology node is connected. Stack trace shows that the source is an unchecked iteration on the topology nodes list.

The problem can be reproduced with rest-sender.py standard SFC REST provisioning while no dp nodes are connected.

2016-12-13 09:38:29,164 | ERROR | on-dispatcher-40 | DataTreeChangeListenerActor | 198 - org.opendaylight.controller.sal-clustering-commons - 1.5.0.SNAPSHOT | Error notifying listener org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataTreeChangeListenerAdapter@3950808f
java.lang.NullPointerException
at org.opendaylight.sfc.sfc_ovs.provider.SfcOvsUtil.getDpdkOfPort(SfcOvsUtil.java:766)[289:org.opendaylight.sfc.ovs:0.5.0.SNAPSHOT]
at org.opendaylight.sfc.ofrenderer.processors.SfcOfRspProcessor.initializeSff(SfcOfRspProcessor.java:520)[344:org.opendaylight.sfc.openflow-renderer:0.5.0.SNAPSHOT]
at org.opendaylight.sfc.ofrenderer.processors.SfcOfRspProcessor.processRenderedServicePath(SfcOfRspProcessor.java:145)[344:org.opendaylight.sfc.openflow-renderer:0.5.0.SNAPSHOT]
at org.opendaylight.sfc.ofrenderer.listeners.SfcOfRspDataListener.onDataTreeChanged(SfcOfRspDataListener.java:58)[344:org.opendaylight.sfc.openflow-renderer:0.5.0.SNAPSHOT]
at org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataTreeChangeListenerAdapter.onDataTreeChanged(BindingDOMDataTreeChangeListenerAdapter.java:41)[165:org.opendaylight.controller.sal-binding-broker-impl:1.5.0.SNAPSHOT]
at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.dataChanged(DataTreeChangeListenerActor.java:54)[204:org.opendaylight.controller.sal-distributed-datastore:1.5.0.SNAPSHOT]

...



 Comments   
Comment by Diego Granados [ 13/Dec/16 ]

https://git.opendaylight.org/gerrit/#/c/49288/

Generated at Wed Feb 07 20:38:51 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.