<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:05 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-65] getting node details with JSON gets exception</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-65</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Trying to get detailed resources for a node in JSON format results in an exception. &lt;/p&gt;

&lt;p&gt;The URL is, for example:&lt;br/&gt;
&lt;a href=&quot;http://192.168.4.1:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://192.168.4.1:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:3&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Accept header is: application/vnd.yang.api+json&lt;/p&gt;

&lt;p&gt;You can see the following exception:&lt;/p&gt;

&lt;p&gt;&amp;lt;html&amp;gt;&lt;br/&gt;
    &amp;lt;head&amp;gt;&lt;br/&gt;
        &amp;lt;title&amp;gt;Apache Tomcat/7.0.32 - Error report&amp;lt;/title&amp;gt;&lt;br/&gt;
        &amp;lt;style&amp;gt;&lt;br/&gt;
            &amp;lt;!--H1 &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
&lt;p&gt; H2 &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
&lt;p&gt; H3 &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
&lt;p&gt; BODY &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
&lt;p&gt; B &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
&lt;p&gt; P &lt;/p&gt;
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}
&lt;p&gt;A &lt;/p&gt;
{color : black;}
&lt;p&gt;A.name &lt;/p&gt;
{color : black;}
&lt;p&gt;HR &lt;/p&gt;
{color : #525D76;}
&lt;p&gt;--&amp;gt;&lt;br/&gt;
        &amp;lt;/style&amp;gt;&lt;br/&gt;
    &amp;lt;/head&amp;gt;&lt;br/&gt;
    &amp;lt;body&amp;gt;&lt;br/&gt;
        &amp;lt;h1&amp;gt;HTTP Status 500 - Value in SimpleNode should be type String&amp;lt;/h1&amp;gt;&lt;br/&gt;
        &amp;lt;HR size=&quot;1&quot; noshade=&quot;noshade&quot;&amp;gt;&lt;br/&gt;
            &amp;lt;p&amp;gt;&lt;br/&gt;
                &amp;lt;b&amp;gt;type&amp;lt;/b&amp;gt; Exception report&lt;br/&gt;
            &amp;lt;/p&amp;gt;&lt;br/&gt;
            &amp;lt;p&amp;gt;&lt;br/&gt;
                &amp;lt;b&amp;gt;message&amp;lt;/b&amp;gt;&lt;br/&gt;
                &amp;lt;u&amp;gt;Value in SimpleNode should be type String&amp;lt;/u&amp;gt;&lt;br/&gt;
            &amp;lt;/p&amp;gt;&lt;br/&gt;
            &amp;lt;p&amp;gt;&lt;br/&gt;
                &amp;lt;b&amp;gt;description&amp;lt;/b&amp;gt;&lt;br/&gt;
                &amp;lt;u&amp;gt;The server encountered an internal error that prevented it from fulfilling this request.&amp;lt;/u&amp;gt;&lt;br/&gt;
            &amp;lt;/p&amp;gt;&lt;br/&gt;
            &amp;lt;p&amp;gt;&lt;br/&gt;
                &amp;lt;b&amp;gt;exception&amp;lt;/b&amp;gt;&lt;br/&gt;
                &amp;lt;pre&amp;gt;java.lang.IllegalStateException: Value in SimpleNode should be type String&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.writeValueOfNodeByType(JsonMapper.java:152)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.writeLeaf(JsonMapper.java:146)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.writeChildrenOfParent(JsonMapper.java:79)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.writeList(JsonMapper.java:120)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.writeChildrenOfParent(JsonMapper.java:67)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.writeList(JsonMapper.java:125)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.JsonMapper.write(JsonMapper.java:34)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider.writeTo(StructuredDataToJsonProvider.java:53)&lt;br/&gt;
	org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider.writeTo(StructuredDataToJsonProvider.java:26)&lt;br/&gt;
	com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)&lt;br/&gt;
	com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)&lt;br/&gt;
	com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)&lt;br/&gt;
	com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)&lt;br/&gt;
	com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)&lt;br/&gt;
	com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)&lt;br/&gt;
	com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)&lt;br/&gt;
	javax.servlet.http.HttpServlet.service(HttpServlet.java:848)&lt;br/&gt;
	org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)&lt;br/&gt;
	org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179)&lt;br/&gt;
&amp;lt;/pre&amp;gt;&lt;br/&gt;
            &amp;lt;/p&amp;gt;&lt;br/&gt;
            &amp;lt;p&amp;gt;&lt;br/&gt;
                &amp;lt;b&amp;gt;note&amp;lt;/b&amp;gt;&lt;br/&gt;
                &amp;lt;u&amp;gt;The full stack trace of the root cause is available in the Apache Tomcat/7.0.32 logs.&amp;lt;/u&amp;gt;&lt;br/&gt;
            &amp;lt;/p&amp;gt;&lt;br/&gt;
            &amp;lt;HR size=&quot;1&quot; noshade=&quot;noshade&quot;&amp;gt;&lt;br/&gt;
                &amp;lt;h3&amp;gt;Apache Tomcat/7.0.32&amp;lt;/h3&amp;gt;&lt;br/&gt;
            &amp;lt;/body&amp;gt;&lt;br/&gt;
        &amp;lt;/html&amp;gt;&lt;/p&gt;


&lt;p&gt;Steps to reproduce:&lt;br/&gt;
1. Start mininet&lt;br/&gt;
2. Connect the controller to mininet&lt;br/&gt;
3. In restconf, try to get flow-node details in JSON format,&lt;/p&gt;

&lt;p&gt;and the problem will occur&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: Macintosh&lt;/p&gt;</environment>
        <key id="24619">CONTROLLER-65</key>
            <summary>getting node details with JSON gets exception</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="-1">Unassigned</assignee>
                                    <reporter username="jmedved@cisco.com">Jan Medved</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Nov 2013 03:45:15 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:50 +0000</updated>
                            <resolved>Thu, 28 Nov 2013 12:51:57 +0000</resolved>
                                                                    <component>restconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                        <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>172</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=172]]></customfieldvalue>

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

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