<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:04 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-53] JSON not working end to end</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-53</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;When I GET&lt;br/&gt;
URI: &lt;a href=&quot;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/&lt;/a&gt;&lt;br/&gt;
Accept: application/vnd.yang.api+xml&lt;/p&gt;

&lt;p&gt;I get:&lt;/p&gt;

&lt;p&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&amp;gt;&lt;br/&gt;
&amp;lt;nodes &lt;br/&gt;
    xmlns=&quot;urn:opendaylight:inventory&quot;&amp;gt;&lt;br/&gt;
    &amp;lt;node&amp;gt;&lt;br/&gt;
        &amp;lt;id&amp;gt;openflow:1&amp;lt;/id&amp;gt;&lt;br/&gt;
    &amp;lt;/node&amp;gt;&lt;br/&gt;
&amp;lt;/nodes&amp;gt;&lt;/p&gt;

&lt;p&gt;When I attempt to get the same URI with&lt;br/&gt;
Accept: application/vnd.yang.api+json&lt;/p&gt;

&lt;p&gt;I get a server 500 error.&lt;/p&gt;


&lt;p&gt;Exception thrown on the OSGI console&lt;/p&gt;

&lt;p&gt;2013-11-18 05:48:33 CST &lt;span class=&quot;error&quot;&gt;&amp;#91;com.sun.jersey.spi.container.ContainerResponse&amp;#93;&lt;/span&gt; SEVERE com.sun.jersey.spi.container.ContainerResponse write A message body writer for Java class org.opendaylight.controller.sal.restconf.impl.StructuredData, and Java type class org.opendaylight.controller.sal.restconf.impl.StructuredData, and MIME media type application/vnd.yang.api+json was not found&lt;br/&gt;
2013-11-18 05:48:33 CST &lt;span class=&quot;error&quot;&gt;&amp;#91;com.sun.jersey.spi.container.ContainerResponse&amp;#93;&lt;/span&gt; SEVERE com.sun.jersey.spi.container.ContainerResponse write The registered message body writers compatible with the MIME media type are:&lt;br/&gt;
&lt;b&gt;/&lt;/b&gt; -&amp;gt;&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.FormProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.StringProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.ByteArrayProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.FileProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.InputStreamProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.DataSourceProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.ReaderProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.DocumentProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JSONWithPaddingProvider&lt;br/&gt;
  com.sun.jersey.server.impl.template.ViewableMessageBodyWriter&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General&lt;br/&gt;
  com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General&lt;br/&gt;
  com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy&lt;/p&gt;

&lt;p&gt;2013-11-18 05:48:33 CST &lt;span class=&quot;error&quot;&gt;&amp;#91;com.sun.jersey.spi.container.ContainerResponse&amp;#93;&lt;/span&gt; SEVERE com.sun.jersey.spi.container.ContainerResponse logException Mapped exception to response: 500 (Internal Server Error)&lt;br/&gt;
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class org.opendaylight.controller.sal.restconf.impl.StructuredData, and Java type class org.opendaylight.controller.sal.restconf.impl.StructuredData, and MIME media type application/vnd.yang.api+json was not found&lt;br/&gt;
	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:285)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)&lt;br/&gt;
	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)&lt;br/&gt;
	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)&lt;br/&gt;
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)&lt;br/&gt;
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)&lt;br/&gt;
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;br/&gt;
	at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)&lt;br/&gt;
	at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179)&lt;br/&gt;
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)&lt;br/&gt;
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;br/&gt;
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)&lt;br/&gt;
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)&lt;br/&gt;
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)&lt;br/&gt;
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)&lt;br/&gt;
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)&lt;br/&gt;
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)&lt;br/&gt;
	at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:309)&lt;br/&gt;
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)&lt;br/&gt;
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)&lt;br/&gt;
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)&lt;br/&gt;
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)&lt;br/&gt;
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:724)&lt;br/&gt;
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class org.opendaylight.controller.sal.restconf.impl.StructuredData, and Java type class org.opendaylight.controller.sal.restconf.impl.StructuredData, and MIME media type application/vnd.yang.api+json was not found&lt;br/&gt;
	... 29 more&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Mac OS&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24607">CONTROLLER-53</key>
            <summary>JSON not working end to end</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="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="hagbard">Ed Warnicke</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Nov 2013 11:53:36 +0000</created>
                <updated>Tue, 25 Jul 2023 08:22:49 +0000</updated>
                            <resolved>Tue, 26 Nov 2013 11:18:59 +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>149</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=149]]></customfieldvalue>

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

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