Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Resolved
-
None
-
None
-
Java version: 1.8.0_77, vendor: Oracle Corporation
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.11.6", arch: "x86_64", family: "mac"
Description
It appears the Entityhub can no longer access a Clerezza serializer for RDF/JSON.
This issue can be reproduced by launching a plain stable or full launcher and POSTing the default query to the ldpath service, or by going to
{stanbol-host}/entityhub/sites/ldpath and executing the pre-filled query after selecting the RDF/JSON format.POST {stanbol-host}
/entityhub/sites/ldpath
Accept: text/plain, /, application/rdf+json
Content-Type: application/x-www-form-urlencoded
body: context=http%3A%2F%2Fdbpedia.org%2Fresource%2FParis&ldpath=%40prefix+dct+%3A+%3Chttp%3A%2F%2Fpurl.org
%2Fdc%2Fterms%2F%3E+%3B%0A%40prefix+geo+%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2003%2F01%2Fgeo%2Fwgs84_pos
%23%3E+%3B%0Aname+%3D+rdfs%3Alabel%5B%40en%5D+%3A%3A+xsd%3Astring%3B%0Alabels+%3D+rdfs%3Alabel+%3A%3A
xsd%3Astring%3B%0Acomment%3D+rdfs%3Acomment%5B%40en%5D+%3A%3A+xsd%3Astring%3B%0Acategories+%3D+dc%3Asubject
%3A%3A+xsd%3AanyURI%3B%0Ahomepage%3D+foaf%3Ahomepage+%3A%3A+xsd%3AanyURI%3B%0Alocation+%3D+fn%3Aconcat
(%22%5B%22%2Cgeo%3Alat%2C%22%2C%22%2Cgeo%3Along%2C%22%5D%22)+%3A%3A+xsd%3Astring%3B&format=application
%2Frdf%2Bjson
This has resulted in a HTTP 500 error and the following exception being logged:
javax.servlet.ServletException: org.apache.clerezza.rdf.core.serializedform.UnsupportedSerializationFormatException: No serializer available for application/rdf+json; charset=utf-8
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:392)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:336)
at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:297)
at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:208)
at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:271)
at org.apache.stanbol.commons.cors.StanbolCorsFilter.doFilter(StanbolCorsFilter.java:68)
at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)
at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:84)
at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46)
at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31)