<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:41 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-246] NPE in yangtools when parsing yang file</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-246</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Here is the exeception:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: Unable to parse yang files from /Users/hagbard/try/controller/opendaylight/md-sal/model/model-flow-base/src/main/yang&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.builder.impl.CopyUtils.getdata(CopyUtils.java:478)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.builder.impl.CopyUtils.copy(CopyUtils.java:332)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.builder.impl.CopyUtils.copy(CopyUtils.java:345)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.builder.impl.CopyUtils.copy(CopyUtils.java:212)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.builder.impl.CopyUtils.copy(CopyUtils.java:51)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.builder.impl.GroupingBuilderImpl.instantiateChildNodes(GroupingBuilderImpl.java:71)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.resolveUses(YangParserImpl.java:1116)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.resolveUsesForGroupings(YangParserImpl.java:1076)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.build(YangParserImpl.java:667)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelSources(YangParserImpl.java:359)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelsFromStreamsMapped(YangParserImpl.java:313)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.processYang(YangToSourcesProcessor.java:151)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:82)&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:101)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)&lt;br/&gt;
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)&lt;br/&gt;
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)&lt;br/&gt;
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)&lt;br/&gt;
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)&lt;br/&gt;
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;br/&gt;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	at java.lang.reflect.Method.invoke(Method.java:606)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22666">YANGTOOLS-246</key>
            <summary>NPE in yangtools when parsing yang file</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="hagbard">Ed Warnicke</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Aug 2014 12:51:26 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:13 +0000</updated>
                            <resolved>Wed, 18 Mar 2015 12:53:32 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="42919" author="hagbard@gmail.com" created="Sun, 3 Aug 2014 12:51:26 +0000"  >&lt;p&gt;Attachment opendaylight-match-types.yang has been added with description: Yang file that produced the exception&lt;/p&gt;</comment>
                            <comment id="42916" author="hagbard@gmail.com" created="Sun, 3 Aug 2014 12:54:29 +0000"  >&lt;p&gt;Looking through the tests I&apos;m going to go out on a limb and say this is because of the fact the union contains an identityref (I don&apos;t see tests for that).&lt;/p&gt;</comment>
                            <comment id="42917" author="hagbard@gmail.com" created="Sun, 3 Aug 2014 15:05:22 +0000"  >&lt;p&gt;Fix for NPEs is here &lt;a href=&quot;https://git.opendaylight.org/gerrit/9630&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/9630&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But we still are not generating Union Types correctly for the examples:&lt;/p&gt;

&lt;p&gt;    identity vlan-id-special-types &lt;/p&gt;
{
        description 
           &quot;Base type for indicating special vlans like ANY or NONE&quot;;
    }

&lt;p&gt;    identity vlan-id-none &lt;/p&gt;
{
        description &quot;No vlan header present&quot;;
        base vlan-id-special-types;
    }

&lt;p&gt;    identity vlan-id-any &lt;/p&gt;
{
        description &quot;Vlan header present with any vlan-id&quot;;
        base vlan-id-special-types;
    }

&lt;p&gt;    grouping vlan-id-attributes {&lt;br/&gt;
        leaf vlan-id-present &lt;/p&gt;
{
            type boolean;
        }
&lt;p&gt;        leaf vlan-id {&lt;br/&gt;
            type union {&lt;br/&gt;
                type identityref &lt;/p&gt;
{
                    base vlan-id-special-types;
                }
&lt;p&gt;                type l2t:vlan-id;&lt;br/&gt;
            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;The resulting class has a constructor for &lt;br/&gt;
org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId&lt;/p&gt;

&lt;p&gt;but not &lt;/p&gt;

&lt;p&gt;org.opendaylight.yang.gen.v1.urn.opendaylight.model.match.types.rev131026.VlanIdSpecialTypes&lt;/p&gt;

&lt;p&gt;There is a similar problem with (from controller/opendaylight/md-sal/model/model-flow-base/src/main/yang/opendaylight-port-types.yang):&lt;/p&gt;

&lt;p&gt;leaf port-number {&lt;br/&gt;
            type union &lt;/p&gt;
{
                type uint32;
                type string;
            }
&lt;p&gt;        }&lt;/p&gt;

&lt;p&gt;The generated PortNumber has a generator for Long, but not String.&lt;/p&gt;</comment>
                            <comment id="42920" author="lborak@cisco.com" created="Mon, 4 Aug 2014 09:45:05 +0000"  >&lt;p&gt;Attachment test_and_gen.zip has been added with description: Test and generated files&lt;/p&gt;</comment>
                            <comment id="42918" author="lborak@cisco.com" created="Mon, 4 Aug 2014 09:48:09 +0000"  >&lt;p&gt;I tested generation classes from yang files included as attachment and all constructors were generated correctly. &lt;/p&gt;

&lt;p&gt;I used for generation your patch &lt;a href=&quot;https://git.opendaylight.org/gerrit/9630&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/9630&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12980" name="opendaylight-match-types.yang" size="18226" author="eaw@cisco.com" created="Sun, 3 Aug 2014 12:51:26 +0000"/>
                            <attachment id="12981" name="test_and_gen.zip" size="4829" author="lborak@cisco.com" created="Mon, 4 Aug 2014 09:45:05 +0000"/>
                    </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>1474</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=1474]]></customfieldvalue>

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

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

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