[BGPCEP-565] NPE during initializing bgp feature with config from OpenConfig Created: 28/Sep/16  Updated: 03/Mar/19  Resolved: 30/Sep/16

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Kevin Wang Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File karaf.log    
External issue ID: 6826

 Description   

I submitted a change through OpenConfig to configure the BGP RIB, however, a NPE was thrown immediately. It even happens after I restart on controller.

It was possibly due to I deleted the BGP RIB configuration via OpenConfig API during the test. But it still happened after I put the RIB configuration back via OpenConfig.

2016-09-28 10:19:43,993 | ERROR | on-dispatcher-40 | DataTreeChangeListenerActor | 197 - org.opendaylight.controller.sal-distributed-datastore - 1.4.0.Boron | Error notifying listener org.opendaylight.controller.md.sal.binding.impl.BindingClusteredDOMDataTreeChangeListenerAdapter@27357aac
java.lang.NullPointerException
at org.opendaylight.protocol.bgp.rib.impl.config.RibImpl.createRib(RibImpl.java:222)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.protocol.bgp.rib.impl.config.RibImpl.start(RibImpl.java:90)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl.initiateRibInstance(BgpDeployerImpl.java:214)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl.onGlobalCreated(BgpDeployerImpl.java:189)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl.onGlobalModified(BgpDeployerImpl.java:166)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl.onGlobalChanged(BgpDeployerImpl.java:151)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.protocol.bgp.rib.impl.config.BgpDeployerImpl.onDataTreeChanged(BgpDeployerImpl.java:112)[286:org.opendaylight.bgpcep.bgp-rib-impl:0.6.0.Boron]
at org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataTreeChangeListenerAdapter.onDataTreeChanged(BindingDOMDataTreeChangeListenerAdapter.java:41)[168:org.opendaylight.controller.sal-binding-broker-impl:1.4.0.Boron]
at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.dataChanged(DataTreeChangeListenerActor.java:55)[197:org.opendaylight.controller.sal-distributed-datastore:1.4.0.Boron]
at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.handleReceive(DataTreeChangeListenerActor.java:37)[197:org.opendaylight.controller.sal-distributed-datastore:1.4.0.Boron]
at org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor.onReceive(AbstractUntypedActor.java:26)[192:org.opendaylight.controller.sal-clustering-commons:1.4.0.Boron]



 Comments   
Comment by Kevin Wang [ 28/Sep/16 ]

Attachment karaf.log has been added with description: karaf log

Comment by Milos Fabian [ 29/Sep/16 ]

This problem has been already fixed.
Try to use <afi-safis/> tag in your global configuration input.

Comment by Kevin Wang [ 29/Sep/16 ]

Milos, when you say "fixed", do you mean now the <afi-safis/> will be set by default in master branch (Carbon)? Or I still need to use <afi-safis/> in the latest master snapshot.

Comment by Milos Fabian [ 30/Sep/16 ]

(In reply to Kevin Wang from comment #2)
> Milos, when you say "fixed", do you mean now the <afi-safis/> will be set by
> default in master branch (Carbon)? Or I still need to use <afi-safis/> in
> the latest master snapshot.

I mean use "<afi-safis/>" in Boron, lastest Boron/Carbon is ok - you can follow the guide.

Generated at Wed Feb 07 19:13:27 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.