Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1354

EntityHub "entity" endpoint does not support HTML, does not fall back to anything

    XMLWordPrintableJSON

Details

    Description

      When using a browser or other tool to make requests on the "entity" endpoint of an EntityHub referenced site with header "Accept: text/html", I get a 500 error with stack trace as follows. It seems to indicate that the entity endpoint does not serialize to HTML, and that it does not fall back to anything at all. Perhaps, in the absence of a specified HTML serialization, then RDF/XML with an included stylesheet would be appropriate?

      javax.servlet.ServletException: java.lang.IllegalStateException: JAX-RS called for unsupported mediaType 'text/html; charset=utf-8'! If this is a valid RDF type this indicates a missing Sesame Serializer implementation. Otherwise please report this as a bug for the Stanbol Issue Tracker.
      org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:392)
      org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
      org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
      org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
      org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
      org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
      org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.doFilter(QueryHeadersFilter.java:84)
      org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:78)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilterHttp(ResourceServingFilter.java:148)
      org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilter(ResourceServingFilter.java:91)
      org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.stanbol.commons.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:208)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
      org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilter(AuthenticatingFilter.java:177)
      org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
      org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
      org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:278)
      org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:174)
      </pre></p><p><b>root cause</b> <pre>java.lang.IllegalStateException: JAX-RS called for unsupported mediaType 'text/html; charset=utf-8'! If this is a valid RDF type this indicates a missing Sesame Serializer implementation. Otherwise please report this as a bug for the Stanbol Issue Tracker.
      org.apache.stanbol.entityhub.web.writer.sesame.SesameModelWriter.writeRdf(SesameModelWriter.java:178)
      org.apache.stanbol.entityhub.web.writer.sesame.SesameModelWriter.write(SesameModelWriter.java:140)
      org.apache.stanbol.entityhub.web.writer.EntityWriter.writeTo(EntityWriter.java:98)
      org.apache.stanbol.entityhub.web.writer.EntityWriter.writeTo(EntityWriter.java:27)
      org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:263)
      org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
      org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
      org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:103)
      org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
      org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:88)
      org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
      org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1154)
      org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:571)
      org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:378)
      org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:368)
      org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:262)
      org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:320)
      org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
      org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
      org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373)
      org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
      org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
      org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
      org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
      org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
      org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.doFilter(QueryHeadersFilter.java:84)
      org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:78)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilterHttp(ResourceServingFilter.java:148)
      org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilter(ResourceServingFilter.java:91)
      org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.stanbol.commons.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:208)
      java.security.AccessController.doPrivileged(Native Method)
      javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
      org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilter(AuthenticatingFilter.java:177)
      org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
      org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
      org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
      org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
      org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
      org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
      org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:278)
      org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:174)

      Attachments

        Activity

          People

            Unassigned Unassigned
            ajs6f Adam Soroka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: