<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:57 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>[YANGTOOLS-348] NPE during generation of java binding for case list-grouping-choice</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-348</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;I get NPE when I try to generate java binding from this yang example:&lt;/p&gt;

&lt;p&gt;module test-list-grouping-choice {&lt;br/&gt;
    namespace &quot;urn:foo&quot;;&lt;br/&gt;
    prefix &quot;foo&quot;;&lt;/p&gt;

&lt;p&gt;    revision 2014-10-29 {&lt;br/&gt;
    }&lt;br/&gt;
    list group {&lt;br/&gt;
        key name;&lt;/p&gt;

&lt;p&gt;        leaf name &lt;/p&gt;
{
            type string;
        }

&lt;p&gt;        grouping remote-user-remote-auth {&lt;br/&gt;
            choice remote-user {&lt;br/&gt;
                mandatory true;&lt;br/&gt;
                leaf same-user &lt;/p&gt;
{
                  type empty;
                }&lt;br/&gt;
                leaf remote-name {
                  type string;
                }&lt;br/&gt;
            }&lt;br/&gt;
            choice remote-auth {&lt;br/&gt;
                mandatory true;&lt;br/&gt;
                leaf same-pass {                  type empty;                }
&lt;p&gt;                leaf remote-password &lt;/p&gt;
{
                  type string;
                }
&lt;p&gt;            }&lt;br/&gt;
            leaf remote-secondary-password &lt;/p&gt;
{
                type string;
            }&lt;br/&gt;
        }&lt;br/&gt;
        &lt;br/&gt;
        container default-map {
            uses remote-user-remote-auth;
        }&lt;br/&gt;
        list map {&lt;br/&gt;
            key user;&lt;br/&gt;
            leaf user {                type string;            }
&lt;p&gt;            uses remote-user-remote-auth;&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Exception and debug snippet:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; Failed to find &lt;span class=&quot;error&quot;&gt;&amp;#91;(urn:foo?revision=2014-10-29)remote-user-remote-auth&amp;#93;&lt;/span&gt; in parent list group&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; Failed to find &lt;span class=&quot;error&quot;&gt;&amp;#91;(urn:foo?revision=2014-10-29)remote-user-remote-auth&amp;#93;&lt;/span&gt; in parent list group&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; No node matching &lt;span class=&quot;error&quot;&gt;&amp;#91;(urn:foo?revision=2014-10-29)group, (urn:foo?revision=2014-10-29)remote-user-remote-auth&amp;#93;&lt;/span&gt; found in module ModuleImpl&lt;span class=&quot;error&quot;&gt;&amp;#91;name=test-list-grouping-choice, namespace=urn:foo, revision=Wed Oct 29 00:00:00 CET 2014, prefix=foo, yangVersion=1&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; Failed to find &lt;span class=&quot;error&quot;&gt;&amp;#91;(urn:foo?revision=2014-10-29)remote-user-remote-auth&amp;#93;&lt;/span&gt; in parent list group&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; Failed to find &lt;span class=&quot;error&quot;&gt;&amp;#91;(urn:foo?revision=2014-10-29)remote-user-remote-auth&amp;#93;&lt;/span&gt; in parent list group&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;DEBUG&amp;#93;&lt;/span&gt; No node matching &lt;span class=&quot;error&quot;&gt;&amp;#91;(urn:foo?revision=2014-10-29)group, (urn:foo?revision=2014-10-29)remote-user-remote-auth&amp;#93;&lt;/span&gt; found in module ModuleImpl&lt;span class=&quot;error&quot;&gt;&amp;#91;name=test-list-grouping-choice, namespace=urn:foo, revision=Wed Oct 29 00:00:00 CET 2014, prefix=foo, yangVersion=1&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: Unable to generate sources with org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl generator&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.generateTypesFromChoiceCases(BindingGeneratorImpl.java:1236)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.choiceToGeneratedType(BindingGeneratorImpl.java:1160)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.addSchemaNodeToBuilderAsMethod(BindingGeneratorImpl.java:1116)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.resolveDataSchemaNodes(BindingGeneratorImpl.java:1045)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.groupingToGenType(BindingGeneratorImpl.java:707)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.groupingsToGenTypes(BindingGeneratorImpl.java:685)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.addDefaultInterfaceDefinition(BindingGeneratorImpl.java:1642)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.processDataSchemaNode(BindingGeneratorImpl.java:311)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.listToGenType(BindingGeneratorImpl.java:336)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.addSchemaNodeToBuilderAsMethod(BindingGeneratorImpl.java:1114)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.resolveDataSchemaNodes(BindingGeneratorImpl.java:1045)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.moduleToGenTypes(BindingGeneratorImpl.java:268)&lt;br/&gt;
	at org.opendaylight.yangtools.sal.binding.generator.impl.BindingGeneratorImpl.generateTypes(BindingGeneratorImpl.java:237)&lt;br/&gt;
	at org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl.generateSources(CodeGeneratorImpl.java:62)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSourcesWithOneGenerator(YangToSourcesProcessor.java:300)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSources(YangToSourcesProcessor.java:243)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:84)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute(YangToSourcesMojo.java:122)&lt;br/&gt;
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Windows&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22768">YANGTOOLS-348</key>
            <summary>NPE during generation of java binding for case list-grouping-choice</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="pkajsa">Peter Kajsa</assignee>
                                    <reporter username="msunal@cisco.com">Martin Sunal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Oct 2014 13:38:19 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:23 +0000</updated>
                            <resolved>Mon, 20 Apr 2015 09:24:39 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="43131" author="msunal@cisco.com" created="Wed, 29 Oct 2014 13:39:59 +0000"  >&lt;p&gt;A problem is the choice in grouping&lt;/p&gt;</comment>
                            <comment id="43132" author="martin.ciglan" created="Mon, 3 Nov 2014 09:38:20 +0000"  >&lt;p&gt;NPE is fixed in 0.7-SNAPSHOT.&lt;/p&gt;

&lt;p&gt;Despite of that, real problem is existence of grouping inside of structures extending DataNodeContainer (list in this case), so this is under analysis&lt;br/&gt;
and needs to be fixed.&lt;/p&gt;

&lt;p&gt;I will come back with solution.&lt;/p&gt;

&lt;p&gt;   Martin&lt;/p&gt;</comment>
                            <comment id="43133" author="pkajsa" created="Thu, 6 Nov 2014 14:23:51 +0000"  >&lt;p&gt;Fix patch: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/12566/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/12566/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43134" author="tony.tkacik@gmail.com" created="Mon, 1 Dec 2014 08:33:28 +0000"  >&lt;p&gt;Needs manual cherry-pick to stable/helium.&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>2271</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=2271]]></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="10361"><![CDATA[Lithium-RC0]]></customfieldvalue>

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

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