<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:13:24 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[BGPCEP-550] bgp:show-stats Karaf CLI causes NPE</title>
                <link>https://jira.opendaylight.org/browse/BGPCEP-550</link>
                <project id="10108" key="BGPCEP">bgpcep</project>
                    <description>&lt;p&gt;Seen when controller has 2 peers, one connected, one not&lt;/p&gt;

&lt;p&gt;opendaylight-user@root&amp;gt;&lt;br/&gt;
opendaylight-user@root&amp;gt;bgp:show-stats&lt;br/&gt;
Attribute                                       | Value&lt;br/&gt;
---------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br/&gt;
Object Name                                     | org.opendaylight.controller:instanceName=example-bgp-peer-2,moduleFactoryName=bgp-peer,type=RuntimeBean&lt;br/&gt;
HoldtimeCurrent                                 | 180&lt;br/&gt;
KeepaliveCurrent                                | 60&lt;br/&gt;
SessionDuration                                 | 0:00:39:10&lt;br/&gt;
SessionState                                    | UP&lt;br/&gt;
MessagesStats.ErrorMsgsSent                     | 0&lt;br/&gt;
MessagesStats.ErrorMsgsReceived                 | 0&lt;br/&gt;
MessagesStats.KeepAliveMsgsSent                 | Counter32 &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=37&amp;#93;&lt;/span&gt;&lt;br/&gt;
MessagesStats.KeepAliveMsgsReceived             | Counter32 &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=38&amp;#93;&lt;/span&gt;&lt;br/&gt;
MessagesStats.TotalMsgsSent                     | Counter32 &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=39&amp;#93;&lt;/span&gt;&lt;br/&gt;
MessagesStats.TotalMsgsReceived                 | Counter32 &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=42&amp;#93;&lt;/span&gt;&lt;br/&gt;
MessagesStats.UpdateMsgsSent                    | Counter32 &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=0&amp;#93;&lt;/span&gt;&lt;br/&gt;
MessagesStats.UpdateMsgsReceived                | Counter32 &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=4&amp;#93;&lt;/span&gt;&lt;br/&gt;
PeerPreferences.AddPathCapability               | false&lt;br/&gt;
PeerPreferences.AS                              | AsNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=64496&amp;#93;&lt;/span&gt;&lt;br/&gt;
PeerPreferences.BgpExtendedMessageCapability    | false&lt;br/&gt;
PeerPreferences.BgpId                           | Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=192.168.2.1&amp;#93;&lt;/span&gt;&lt;br/&gt;
PeerPreferences.FourOctetAsCapability           | true&lt;br/&gt;
PeerPreferences.GrCapability                    | false&lt;br/&gt;
PeerPreferences.Port                            | PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=34820&amp;#93;&lt;/span&gt;&lt;br/&gt;
PeerPreferences.RouteRefreshCapability          | true&lt;br/&gt;
SpeakerPreferences.AddPathCapability            | true&lt;br/&gt;
SpeakerPreferences.AS                           | AsNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=64496&amp;#93;&lt;/span&gt;&lt;br/&gt;
SpeakerPreferences.BgpExtendedMessageCapability | true&lt;br/&gt;
SpeakerPreferences.BgpId                        | Ipv4Address &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=10.18.162.90&amp;#93;&lt;/span&gt;&lt;br/&gt;
SpeakerPreferences.FourOctetAsCapability        | true&lt;br/&gt;
SpeakerPreferences.GrCapability                 | false&lt;br/&gt;
SpeakerPreferences.Port                         | PortNumber &lt;span class=&quot;error&quot;&gt;&amp;#91;_value=1790&amp;#93;&lt;/span&gt;&lt;br/&gt;
SpeakerPreferences.RouteRefreshCapability       | true&lt;br/&gt;
Error executing command: java.lang.NullPointerException&lt;br/&gt;
opendaylight-user@root&amp;gt;&lt;/p&gt;



&lt;p&gt;2016-09-16 22:14:56,888 | ERROR | l for user karaf | ShellUtil                        | 27 - org.apache.karaf.shell.console - 3.0.7 | Exception caught while executing command&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
        at org.opendaylight.protocol.bgp.cli.utils.BgpCliUtils.displayAll(BgpCliUtils.java:40)&lt;br/&gt;
        at org.opendaylight.protocol.bgp.cli.ShowBGPStatsCommandProvider.onExecution(ShowBGPStatsCommandProvider.java:26)&lt;br/&gt;
        at org.opendaylight.protocol.bgp.cli.AbstractStatsCommandProvider.lambda$doExecute$0(AbstractStatsCommandProvider.java:33)&lt;br/&gt;
        at java.lang.Iterable.forEach(Iterable.java:75)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_72-internal&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.opendaylight.protocol.bgp.cli.AbstractStatsCommandProvider.doExecute(AbstractStatsCommandProvider.java:32)&lt;br/&gt;
        at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at Proxy68cf3053_ba0f_432d_a37c_2ad89a476d87.execute(Unknown Source)&lt;span class=&quot;error&quot;&gt;&amp;#91;:&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at Proxy68cf3053_ba0f_432d_a37c_2ad89a476d87.execute(Unknown Source)&lt;span class=&quot;error&quot;&gt;&amp;#91;:&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)&lt;br/&gt;
        at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:210)&lt;br/&gt;
        at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:109)&lt;br/&gt;
        at java.security.AccessController.doPrivileged(Native Method)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.8.0_72-internal&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57)&lt;span class=&quot;error&quot;&gt;&amp;#91;28:org.apache.karaf.jaas.modules:3.0.7&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:102)&lt;span class=&quot;error&quot;&gt;&amp;#91;27:org.apache.karaf.shell.console:3.0.7&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23790">BGPCEP-550</key>
            <summary>bgp:show-stats Karaf CLI causes NPE</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="ajayl.bro@gmail.com">Ajay L</assignee>
                                    <reporter username="ajayl.bro@gmail.com">Ajay L</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Sep 2016 17:41:12 +0000</created>
                <updated>Sun, 3 Mar 2019 11:49:53 +0000</updated>
                            <resolved>Mon, 24 Oct 2016 17:09:53 +0000</resolved>
                                    <version>Bugzilla Migration</version>
                                    <fixVersion>Bugzilla Migration</fixVersion>
                                    <component>BGP</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="45926" author="kevixw@gmail.com" created="Tue, 27 Sep 2016 23:23:28 +0000"  >&lt;p&gt;The root cause is in Boron, we have refactored the statistic API of BGP.  However, the  BGP karaf CLI is still using the old API which was used in Beryllium.&lt;/p&gt;

&lt;p&gt;Right now, the BGP karaf CLI 1. is still using the API that has been deleted 2. is not using the new API we introduced in Boron.&lt;/p&gt;</comment>
                            <comment id="45927" author="ajayl.bro@gmail.com" created="Fri, 21 Oct 2016 23:31:38 +0000"  >&lt;p&gt;Kevin - on stable/boron, if bgp-peer is configured using OpenConfig API as opposed to modifying 41-bgp-example.xml config file, bgp:show-stats command is not displaying any output. So looks like the BGP CLI impl needs to be updated quite a bit to match stuff in Boron. Lets just fix the NPE issue using this bug and open a new bug to track the changes required to make the CLI compatible with latest code&lt;/p&gt;</comment>
                            <comment id="45928" author="ajayl.bro@gmail.com" created="Fri, 21 Oct 2016 23:35:39 +0000"  >&lt;p&gt;stable/boron: &lt;a href=&quot;https://git.opendaylight.org/gerrit/47374&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/47374&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="45929" author="kevixw@gmail.com" created="Fri, 21 Oct 2016 23:39:18 +0000"  >&lt;p&gt;Thanks for the help.  I noticed the problem as well.  I will spend some time refactoring the cli feature after SR1.  It is missing some new BGP stat change I added to Boron anyway.&lt;/p&gt;</comment>
                            <comment id="45930" author="milos.fabian@pantheon.tech" created="Mon, 24 Oct 2016 09:19:09 +0000"  >&lt;p&gt;master: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/47400/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/47400/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6737</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=6737]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10307"><![CDATA[Boron-1]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02czb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>