<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:53:47 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-614] master fails mounting controller-config</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-614</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;not sure if issue is netconf, config or yangtools&lt;/p&gt;

&lt;p&gt;logs are:&lt;/p&gt;

&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; 201 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.SNAPSHOT &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; RemoteDevice
{controller-config}: Unexpected error resolving device sources: java.lang.IllegalStateException: Unable to serialize AbsoluteSchemaPath{path=[(urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)get, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)input]}&lt;br/&gt;
2016-05-19 05:10:59,214 | ERROR | sing-executor-10 | NetconfDevice                    | 201 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.SNAPSHOT | RemoteDevice{controller-config}
&lt;p&gt;: Initialization in sal failed, disconnecting from device&lt;br/&gt;
java.lang.IllegalStateException: Unable to serialize AbsoluteSchemaPath&lt;/p&gt;
{path=[(urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)get, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)input]}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;full zipped logs attached.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23034">YANGTOOLS-614</key>
            <summary>master fails mounting controller-config</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="ifoltin">Igor Foltin</assignee>
                                    <reporter username="giheron@cisco.com">Giles Heron</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 May 2016 13:07:32 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:47 +0000</updated>
                            <resolved>Thu, 26 May 2016 11:58:38 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="43899" author="giheron@cisco.com" created="Thu, 19 May 2016 13:07:32 +0000"  >&lt;p&gt;Attachment karaf.zip has been added with description: zipped logs&lt;/p&gt;</comment>
                            <comment id="43888" author="giheron@cisco.com" created="Thu, 19 May 2016 16:13:14 +0000"  >&lt;p&gt;OK - so Donald&apos;s seeing the same issue, and has noticed this in the log:&lt;/p&gt;

&lt;p&gt;Caused by: java.io.IOException: Unable to transform anyXml((urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)filter) value: javax.xml.transform.dom.DOMSource@711972f5&lt;/p&gt;

&lt;p&gt;looks like this is being caused by the library lib/endorsed/org.apache.servicemix.bundles.xalan-2.7.2_2.jar.&lt;/p&gt;

&lt;p&gt;It appears that wasn&apos;t there in Beryllium but is there in Master, and as a &quot;lib/endorsed&quot; lib will be picked in preference to the jars in the bundle class paths.&lt;/p&gt;</comment>
                            <comment id="43889" author="donaldh@cisco.com" created="Thu, 19 May 2016 16:56:10 +0000"  >&lt;p&gt;org.apache.servicemix.bundles.xalan-2.7.2_2.jar got included as part of karaf 3.0.6 so this is a side-effect of the upgrade from karaf 3.0.3&lt;/p&gt;</comment>
                            <comment id="43890" author="tcere" created="Fri, 20 May 2016 08:22:01 +0000"  >&lt;p&gt;This is a duplicate of 5910 but i&apos;ll close that one since this one contains more info.&lt;/p&gt;</comment>
                            <comment id="43891" author="ifoltin" created="Fri, 20 May 2016 10:27:00 +0000"  >&lt;p&gt;Fix pushed:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39167/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39167/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43892" author="rovarga" created="Fri, 20 May 2016 11:55:54 +0000"  >&lt;p&gt;The proper fix needs to do the following:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;define the com.sun. string as a private constant&lt;/li&gt;
	&lt;li&gt;initialized the factory using a static initializer, which will consult a system property (org.opendaylight.yangtools.yang.impl.TransformerFactory), and if it is present, use that property&apos;s string for instantiation&lt;/li&gt;
	&lt;li&gt;if the property is not present and the com.sun. thing fails to instantiate, fall back to TransformerFactory.newInstance()&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="43893" author="rovarga" created="Mon, 23 May 2016 10:55:57 +0000"  >&lt;p&gt;Actually the default factory is already controllable via javax.xml.transform.TransformerFactory. Digging through karaf, they have changed the default in 3.0.6 to read:&lt;/p&gt;

&lt;p&gt;javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl&lt;/p&gt;

&lt;p&gt;Hence we have to figure out why is a different implementation breaking us, and if we cannot fix it via normal APIs, then we&apos;ll resort to changing the default system property in controller&apos;s custom.properties.&lt;/p&gt;</comment>
                            <comment id="43894" author="rovarga" created="Tue, 24 May 2016 08:45:37 +0000"  >&lt;p&gt;Igor has tracked the problem down to Xalan&apos;s org.apache.xalan.processor.TransformerFactoryImpl rejecting a StAXResult as a valid target.&lt;/p&gt;

&lt;p&gt;Hence we have two options:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;stop using StAXResult&lt;/li&gt;
	&lt;li&gt;note we require StAX support and change the karaf result&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="43895" author="donaldh@cisco.com" created="Tue, 24 May 2016 10:11:54 +0000"  >&lt;p&gt;The issue is that org.apache.servicemix.bundles.xalan-2.7.2_2.jar contains a META_INF/services/javax.xml.transform.TransformFactory file with the content&lt;/p&gt;

&lt;p&gt;org.apache.xalan.processor.TransformerFactoryImpl&lt;/p&gt;

&lt;p&gt;This would appear to be an older xalan factory that only supports DOMResult and SAXResult. &lt;/p&gt;

&lt;p&gt;The Java 8 default TransformerFactory uses com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl &lt;/p&gt;

&lt;p&gt;So the presence of xalan-2.7.2_2.jar in lib/endorsed is effectively causing a downgrade of behaviour.&lt;/p&gt;

&lt;p&gt;It does seem like the best solution is to set &lt;/p&gt;

&lt;p&gt;org.apache.xalan.processor.TransformerFactoryImpl = com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl&lt;/p&gt;

&lt;p&gt;in etc/custom.properties in the opendaylight-karaf-resources project.&lt;/p&gt;</comment>
                            <comment id="43896" author="ifoltin" created="Tue, 24 May 2016 12:17:39 +0000"  >&lt;p&gt;Fix: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39312/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39312/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43897" author="rovarga" created="Tue, 24 May 2016 17:17:56 +0000"  >&lt;p&gt;controller patch: &lt;a href=&quot;https://git.opendaylight.org/gerrit/39368&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/39368&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43898" author="vrpolak" created="Thu, 26 May 2016 11:58:38 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39368/5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39368/5&lt;/a&gt; (for distributions based on karaf-parent)&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/39402/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/39402/1&lt;/a&gt; (for integration/distribution)&lt;/p&gt;

&lt;p&gt;Merged, CSIT confirms symptom of &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-208&quot; title=&quot;Controller-config still fails to operate&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-208&quot;&gt;&lt;del&gt;NETCONF-208&lt;/del&gt;&lt;/a&gt; is not there anymore.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="21221">NETCONF-208</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21215">NETCONF-202</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="21221">NETCONF-208</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13049" name="karaf.zip" size="59994" author="giheron@cisco.com" created="Thu, 19 May 2016 13:07:32 +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>5917</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=5917]]></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="10339"><![CDATA[Boron-M4]]></customfieldvalue>

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

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