<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:45 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-271] NullPointerException is thrown by yang-maven-plugin when the imported module is missing</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-271</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;When yang-maven-plugin is not able to find module imported from yang file then NPE is thrown. There is no information about the root cause of the problem.&lt;/p&gt;

&lt;p&gt;How to reproduce:&lt;br/&gt;
1. Create yang file which uses config module like:&lt;br/&gt;
module producer {&lt;br/&gt;
  yang-version 1;&lt;br/&gt;
  namespace &quot;urn:amartus:odl:test:config:producer&quot;;&lt;br/&gt;
  prefix prod;&lt;/p&gt;

&lt;p&gt;  import config &lt;/p&gt;
{ prefix config; revision-date 2013-04-05; }

&lt;p&gt;  description &quot;Producer service definition&quot;;&lt;/p&gt;

&lt;p&gt;  revision 2014-08-13 &lt;/p&gt;
{
    description &quot;Initial revision&quot;;
  }

&lt;p&gt;  identity producer &lt;/p&gt;
{
    description &quot;Producer service&quot;;
    base &quot;config:service-type&quot;;
    config:java-class &quot;com.amartus.odl.test.config.producer.Producer&quot;;
  }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;2. Do not add required dependency in maven configuration&lt;/p&gt;

&lt;p&gt;    &amp;lt;dependency&amp;gt;&lt;br/&gt;
      &amp;lt;groupId&amp;gt;org.opendaylight.controller&amp;lt;/groupId&amp;gt;&lt;br/&gt;
      &amp;lt;artifactId&amp;gt;config-api&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
    &amp;lt;/dependency&amp;gt;&lt;/p&gt;

&lt;p&gt;3. run mvn clean install&lt;/p&gt;

&lt;p&gt;Following exception is reported:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; &amp;#8212; yang-maven-plugin:0.6.2-SNAPSHOT:generate-sources (default) @ producer-model &amp;#8212;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; yang-to-sources: Inspecting /home/dariusz/work/opendaylight/git/storm-yang/playground/odl-yang-config/producer-model/src/main/yang&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; yang-to-sources: Searching for yang files in following dependencies: []&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; yang-to-sources: Searching for yang files in following dependencies: []&lt;br/&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 /home/dariusz/work/opendaylight/git/storm-yang/playground/odl-yang-config/producer-model/src/main/yang&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserListenerImpl.parseQName(YangParserListenerImpl.java:585)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserListenerImpl.handleUnknownNode(YangParserListenerImpl.java:1143)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserListenerImpl.enterIdentifier_stmt(YangParserListenerImpl.java:925)&lt;br/&gt;
        at org.opendaylight.yangtools.antlrv4.code.gen.YangParser$Identifier_stmtContext.enterRule(YangParser.java:279)&lt;br/&gt;
        at org.antlr.v4.runtime.tree.ParseTreeWalker.enterRule(ParseTreeWalker.java:66)&lt;br/&gt;
        at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:49)&lt;br/&gt;
        at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)&lt;br/&gt;
        at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)&lt;br/&gt;
        at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)&lt;br/&gt;
        at org.antlr.v4.runtime.tree.ParseTreeWalker.walk(ParseTreeWalker.java:52)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseSourcesToBuilders(YangParserImpl.java:405)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.resolveSources(YangParserImpl.java:378)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelSources(YangParserImpl.java:350)&lt;br/&gt;
        at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.parseYangModelsFromStreamsMapped(YangParserImpl.java:308)&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;


&lt;p&gt;It would be nice to have information which module is missing instead.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="22691">YANGTOOLS-271</key>
            <summary>NullPointerException is thrown by yang-maven-plugin when the imported module is missing</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="mvitez@cisco.com">Martin Vitez</assignee>
                                    <reporter username="dariusz.a.nowak@wp.pl">Dariusz Nowak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Aug 2014 07:50:13 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:15 +0000</updated>
                            <resolved>Wed, 20 Aug 2014 08:29:59 +0000</resolved>
                                                                        <due>Fri, 22 Aug 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="42981" author="dariusz.a.nowak@wp.pl" created="Tue, 19 Aug 2014 08:12:27 +0000"  >&lt;p&gt;Attached sample Maven project with simple module definition based on standard config module. The config module is not available as the dependency is commented in pom.xml. Building causes reported problem.&lt;/p&gt;</comment>
                            <comment id="42983" author="dariusz.a.nowak@wp.pl" created="Tue, 19 Aug 2014 08:12:27 +0000"  >&lt;p&gt;Attachment missing-module-test-case.zip has been added with description: Sample maven project which shows the problem&lt;/p&gt;</comment>
                            <comment id="42982" author="mvitez@cisco.com" created="Wed, 20 Aug 2014 08:06:32 +0000"  >&lt;p&gt;Proposed patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/10087/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/10087/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12990" name="missing-module-test-case.zip" size="5392" author="dariusz.a.nowak@wp.pl" created="Tue, 19 Aug 2014 08:12:27 +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>1578</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=1578]]></customfieldvalue>

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

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

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