<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:39:18 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>[SNMP4SDN-12] Java.lang.NullPointerException error occured when executing command snmp4sdn:topodiscoverswitches</title>
                <link>https://jira.opendaylight.org/browse/SNMP4SDN-12</link>
                <project id="10170" key="SNMP4SDN">snmp4sdn</project>
                    <description>&lt;p&gt;Three switches are used in my experiment, and the connection between them is as follows:&lt;/p&gt;

&lt;p&gt;s1(GE1/0/1)-----&lt;del&gt;(GE1/0/1)s2(GE1/0/2)&lt;/del&gt;-----(GE1/0/1)s3&lt;/p&gt;

&lt;p&gt;Firstly, I use command snmp4sdn:readdb to read the device information of s1 and s2, and the detailed information is as follows:&lt;/p&gt;

&lt;p&gt;MAC,IP,SNMP_Community,CLI_Username,CLI_Password&lt;br/&gt;
06:DF:44:64:01:00,177.0.0.104,public, ,&lt;br/&gt;
06:E4:80:8E:02:00,177.0.0.105,public, ,&lt;/p&gt;

&lt;p&gt;Then, I use command snmp4sdn:topodiscoverswitches to discovery the two switches. But there is an ERROR log of java.lang.NullPointerException after executing the command snmp4sdn:topodiscoverswitches. The detailed information is as follows:&lt;/p&gt;

&lt;p&gt;2015-10-29 20:07:24,671 | INFO  | l for user karaf | CmethUtil                        | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | enter CmethUtil.readDB()&lt;br/&gt;
2015-10-29 20:07:24,671 | INFO  | l for user karaf | CmethUtil                        | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | open file /odl/switch_login_db.csv&lt;br/&gt;
2015-10-29 20:07:34,182 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add switch(00:00:06:e4:80:8e:02:00) to the Controller&lt;br/&gt;
2015-10-29 20:07:34,701 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add to switch (ip: 177.0.0.105, mac: 00:00:06:e4:80:8e:02:00) a new port, port number = 2&lt;br/&gt;
2015-10-29 20:07:34,703 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add to switch (ip: 177.0.0.105, mac: 00:00:06:e4:80:8e:02:00) a new port, port number = 3&lt;br/&gt;
2015-10-29 20:07:34,704 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add to switch (ip: 177.0.0.105, mac: 00:00:06:e4:80:8e:02:00) a new port, port number = 4&lt;br/&gt;
2015-10-29 20:07:34,712 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add switch(00:00:06:df:44:64:01:00) to the Controller&lt;br/&gt;
2015-10-29 20:07:35,229 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add to switch (ip: 177.0.0.104, mac: 00:00:06:df:44:64:01:00) a new port, port number = 2&lt;br/&gt;
2015-10-29 20:07:35,229 | INFO  | l for user karaf | Controller                       | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | Add to switch (ip: 177.0.0.104, mac: 00:00:06:df:44:64:01:00) a new port, port number = 3&lt;br/&gt;
2015-10-29 20:07:35,399 | ERROR | Thread-43        | TopologyServiceShim              | 270 - org.opendaylight.snmp4sdn - 0.2.1.Lithium-SR1 | &lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
        at org.opendaylight.snmp4sdn.internal.TopologyServiceShim$TopologyNotify.run(TopologyServiceShim.java:138)&lt;span class=&quot;error&quot;&gt;&amp;#91;270:org.opendaylight.snmp4sdn:0.2.1.Lithium-SR1&amp;#93;&lt;/span&gt;&lt;br/&gt;
        at java.lang.Thread.run(Thread.java:745)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.7.0_80&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="26751">SNMP4SDN-12</key>
            <summary>Java.lang.NullPointerException error occured when executing command snmp4sdn:topodiscoverswitches</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="-1">Unassigned</assignee>
                                    <reporter username="nanfei1988@126.com">Nanfei Chen</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Oct 2015 03:02:56 +0000</created>
                <updated>Thu, 19 Oct 2017 21:25:23 +0000</updated>
                            <resolved>Wed, 2 Mar 2016 05:19:37 +0000</resolved>
                                    <version>unspecified</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="53713" author="ylhsieh@itri.org.tw" created="Mon, 15 Feb 2016 02:49:10 +0000"  >&lt;p&gt;The topology could be collected as you experimented in &lt;a href=&quot;https://jira.opendaylight.org/browse/SNMP4SDN-11&quot; title=&quot;The result of calling rpc get-edge-list defined in topology.yang is false&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SNMP4SDN-11&quot;&gt;&lt;del&gt;SNMP4SDN-11&lt;/del&gt;&lt;/a&gt;. So, does the problem here occur always or sometimes?&lt;/p&gt;</comment>
                            <comment id="53714" author="nanfei1988@126.com" created="Mon, 15 Feb 2016 09:04:03 +0000"  >&lt;p&gt;When I did the experiments, the problem always occured when executing the command.&lt;/p&gt;</comment>
                            <comment id="53715" author="nanfei1988@126.com" created="Tue, 23 Feb 2016 13:25:04 +0000"  >&lt;p&gt;I have submitted a change for this bug.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/35253/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/35253/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53716" author="ylhsieh@itri.org.tw" created="Sun, 28 Feb 2016 15:17:39 +0000"  >&lt;p&gt;See the patch, agree that we missed to check null pointer. But I wonder why it fixes the problem, could you simply explain why?&lt;/p&gt;</comment>
                            <comment id="53717" author="nanfei1988@126.com" created="Mon, 29 Feb 2016 06:12:52 +0000"  >&lt;p&gt;Sorry about my careless of no description.&lt;/p&gt;


&lt;p&gt;There was a problem in method run of class TopologyNotify.&lt;/p&gt;


&lt;p&gt;When I traced the code, I found there was such a container whose &lt;/p&gt;

&lt;p&gt;ITopologyServiceShimListener in map topologyServiceShimListeners was null.&lt;/p&gt;


&lt;p&gt;And then, the method edgeUpdate of this null ITopologyServiceShimListener was called without checking whether it was null, so the Java.lang.NullPointerException error occured.&lt;/p&gt;


&lt;p&gt;When I checked whether the ITopologyServiceShimListener corresponding to every container was null before calling its method edgeUpdate, there was not Java.lang.NullPointerException error any more.&lt;/p&gt;</comment>
                            <comment id="53718" author="ylhsieh@itri.org.tw" created="Wed, 2 Mar 2016 05:19:37 +0000"  >&lt;p&gt;I see, thanks for your fixing, code is merged now.&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>4559</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=4559]]></customfieldvalue>

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

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