<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:42 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>[CONTROLLER-1500] Sporadic YangTextSchemaContextResolver error failing to fully assemble schema context</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1500</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;I occasionally see YangTextSchemaContextResolver failures in my log, showing that the schema context failed to fully assemble.  I find this strange since the message reports no unsatisfied imports.  I have attached a karaf.log that demonstrates one such run.&lt;/p&gt;

&lt;p&gt;This seems like a race condition in the way config provider models are loaded from first glance.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26054">CONTROLLER-1500</key>
            <summary>Sporadic YangTextSchemaContextResolver error failing to fully assemble schema context</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="rgoulding">Ryan Goulding</reporter>
                        <labels>
                    </labels>
                <created>Sun, 20 Mar 2016 14:00:59 +0000</created>
                <updated>Thu, 19 Oct 2017 21:26:38 +0000</updated>
                            <resolved>Tue, 22 Mar 2016 14:16:23 +0000</resolved>
                                    <version>Beryllium</version>
                                                    <component>config</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="51397" author="rgoulding" created="Sun, 20 Mar 2016 14:00:59 +0000"  >&lt;p&gt;Attachment karaf.log has been added with description: karaf.log showing spoaradic YangTextSchemaContextResolver failure&lt;/p&gt;</comment>
                            <comment id="51391" author="rgoulding" created="Sun, 20 Mar 2016 14:03:50 +0000"  >&lt;p&gt;I will also add that the controller fails to come up in a reasonable amount of time when this error is observed.  It doesn&apos;t seem harmless.&lt;/p&gt;</comment>
                            <comment id="51392" author="rgoulding" created="Sun, 20 Mar 2016 14:04:43 +0000"  >&lt;p&gt;I will clarify:&lt;/p&gt;

&lt;p&gt;I will also add that the controller fails to come up at all.  We waited over 15 minutes and still didn&apos;t see it come up.&lt;/p&gt;</comment>
                            <comment id="51393" author="tony.tkacik@gmail.com" created="Tue, 22 Mar 2016 10:38:06 +0000"  >&lt;p&gt;TLDR:&lt;br/&gt;
Seems your JVM is corrupted, please use Java 8.&lt;/p&gt;


&lt;p&gt;Root stacktrace is&lt;/p&gt;

&lt;p&gt;Caused by: java.lang.NullPointerException&lt;br/&gt;
	at java.util.HashMap.inflateTable(HashMap.java:315)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.7.0_95&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.HashMap.&amp;lt;init&amp;gt;(HashMap.java:296)&lt;span class=&quot;error&quot;&gt;&amp;#91;:1.7.0_95&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at com.google.common.collect.Maps.difference(Maps.java:416)&lt;br/&gt;
	at com.google.common.collect.Maps.difference(Maps.java:387)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.spi.SubstatementValidator.validate(SubstatementValidator.java:113)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.ValueStatementImpl$Definition.onFullDefinitionDeclared(ValueStatementImpl.java:65)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementDefinitionContext.onDeclarationFinished(StatementDefinitionContext.java:61)&lt;/p&gt;


&lt;p&gt;Looking through our code&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/yangtools/blob/c652590993b1e4660d5d557868665dbfa634ed27/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/SubstatementValidator.java#L113&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/yangtools/blob/c652590993b1e4660d5d557868665dbfa634ed27/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/SubstatementValidator.java#L113&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;we never pass NULL value to Maps.difference, Guava also does not pass NULL&lt;br/&gt;
to HashMap constructor.&lt;/p&gt;

&lt;p&gt;If you look into HashMap from 1.7.0_95 and offending method inflateTable - &lt;a href=&quot;http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/3a74fee9ba00/src/share/classes/java/util/HashMap.java&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/3a74fee9ba00/src/share/classes/java/util/HashMap.java&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;you could see there is no way that at offending place NULL value could be available.&lt;/p&gt;</comment>
                            <comment id="51394" author="tpantelis" created="Tue, 22 Mar 2016 14:11:27 +0000"  >&lt;p&gt;I agree with Tony. I had looked at the YangTextSchemaContextResolver and it never passes a null Map. It seems that java 7u79 has a bug. I could not find the source for u79 but in an earlier update line 315 didn&apos;t match up and I didn&apos;t see where  HashMap.inflateTable could generate an NPE.&lt;/p&gt;

&lt;p&gt;Java 8 re-implemented the HashMap ctor and removed the inflateTable method.&lt;/p&gt;</comment>
                            <comment id="51395" author="tpantelis" created="Tue, 22 Mar 2016 14:13:55 +0000"  >&lt;p&gt;Sorry it was 7u95 and I see Tony did find the source. Line 315 should not generate an NPE.&lt;/p&gt;</comment>
                            <comment id="51396" author="rgoulding" created="Tue, 22 Mar 2016 14:16:23 +0000"  >&lt;p&gt;This was seen on internal CI system w/o doing &apos;apt-get dist-upgrade&apos; so it was likely due to really old linux distro with latest/greatest JRE.  I have reported back to our internal team and I am fine resolving this, as it seems to have been caused by environmental issues.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13583" name="karaf.log" size="693369" author="rgoulding" created="Sun, 20 Mar 2016 14:00:59 +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>5563</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=5563]]></customfieldvalue>

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

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