<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:21: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>[NETVIRT-332] NumberFormatException observed during SNAT flow installation</title>
                <link>https://jira.opendaylight.org/browse/NETVIRT-332</link>
                <project id="10144" key="NETVIRT">netvirt</project>
                    <description>&lt;p&gt;During SNAT flow installation(table=44 &amp;amp; table=46), the NAPT packet punted to controller is send back to hit the table=0 again and NumberFormat Exception been observed during this scenario.&lt;/p&gt;

&lt;p&gt;opendaylight-user@root&amp;gt;Exception in thread &quot;Thread-161&quot; java.lang.NumberFormatException: For input string: &quot;0xfffffff9&quot;&lt;br/&gt;
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)&lt;br/&gt;
        at java.lang.Long.parseLong(Long.java:589)&lt;br/&gt;
        at java.lang.Long.parseLong(Long.java:631)&lt;br/&gt;
        at org.opendaylight.genius.mdsalutil.actions.ActionOutput.&amp;lt;init&amp;gt;(ActionOutput.java:46)&lt;br/&gt;
        at org.opendaylight.genius.mdsalutil.ActionType$2.buildAction(ActionType.java:130)&lt;br/&gt;
        at org.opendaylight.genius.mdsalutil.ActionInfo.buildAction(ActionInfo.java:90)&lt;br/&gt;
        at org.opendaylight.genius.mdsalutil.MDSALUtil.buildActions(MDSALUtil.java:231)&lt;br/&gt;
        at org.opendaylight.genius.mdsalutil.MDSALUtil.getPacketOut(MDSALUtil.java:213)&lt;br/&gt;
        at org.opendaylight.netvirt.natservice.internal.NaptEventHandler.sendNaptPacketOut(NaptEventHandler.java:399)&lt;br/&gt;
        at org.opendaylight.netvirt.natservice.internal.NaptEventHandler.handleEvent(NaptEventHandler.java:219)&lt;br/&gt;
        at org.opendaylight.netvirt.natservice.internal.EventDispatcher.run(EventDispatcher.java:39)&lt;br/&gt;
        at java.lang.Thread.run(Thread.java:745)&lt;/p&gt;


&lt;p&gt;As a result, the NaptEventHandler is stopped post which no SNAT flows where getting installed.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="20253">NETVIRT-332</key>
            <summary>NumberFormatException observed during SNAT flow installation</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="xcheara">Chetan Arakere Gowdru</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Dec 2016 07:22:11 +0000</created>
                <updated>Fri, 15 Dec 2017 20:30:23 +0000</updated>
                            <resolved>Sat, 10 Dec 2016 03:44:21 +0000</resolved>
                                    <version>Boron</version>
                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="36875" author="xcheara" created="Wed, 7 Dec 2016 07:58:51 +0000"  >&lt;p&gt;this issue(NumberFormatException) is due to the latest review merge in genius - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/48782/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/48782/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In NAT, the actionValues is passed as String(Hexadecimal), which been tried to converted to long using parseLong API which results in NumberFormatException.&lt;/p&gt;

&lt;p&gt;NaptEventHandler.java (line 395)&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/netvirt/blob/master/vpnservice/natservice/natservice-impl/src/main/java/org/opendaylight/netvirt/natservice/internal/NaptEventHandler.java&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/netvirt/blob/master/vpnservice/natservice/natservice-impl/src/main/java/org/opendaylight/netvirt/natservice/internal/NaptEventHandler.java&lt;/a&gt;&lt;br/&gt;
actionInfos.add(new ActionInfo(ActionType.output, new String[] &lt;/p&gt;
{ &quot;0xfffffff9&quot; }
&lt;p&gt;, 3));&lt;/p&gt;


&lt;p&gt;ActionOutput.java (line 46 &#8211; parseLong fails to parse hexadecimal value type)&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/genius/blob/master/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/mdsalutil/actions/ActionOutput.java&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/genius/blob/master/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/mdsalutil/actions/ActionOutput.java&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, it is required to pass the equivalent long value(instead of hexadecimal) now with this change. We can make use of newly added ActionOutput class constructor to solve this issue.&lt;/p&gt;

&lt;p&gt;actionInfos.add(new ActionOutput(3,Long.decode(&quot;0xfffffff9&quot;)));&lt;/p&gt;</comment>
                            <comment id="36876" author="xcheara" created="Wed, 7 Dec 2016 09:44:28 +0000"  >&lt;p&gt;Review raised in master - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/49076/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/49076/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36877" author="xcheara" created="Fri, 9 Dec 2016 14:18:32 +0000"  >&lt;p&gt;Review Request to fix it in genius raised - &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/49135/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/49135/&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>7315</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=7315]]></customfieldvalue>

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

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