You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Sergio Fernández (JIRA)" <ji...@apache.org> on 2013/02/14 16:50:14 UTC

[jira] [Commented] (STANBOL-935) Reconciliation endpoint broken

    [ https://issues.apache.org/jira/browse/STANBOL-935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13578437#comment-13578437 ] 

Sergio Fernández commented on STANBOL-935:
------------------------------------------

Forget it! My first patch fixes requests to the root endpoint, not for the other.

The problems is easy:

- There are three classes (EntityhubReconcileResource, ReferencedSiteReconcileResource, SiteManagerReconcileResource) extending the abstract class BaseGoogleRefineReconcileResource
- One single templates directory

Therefore inheritance of implementation, which does not fit with a renderization mechanism that uses the class of the object to lookup the template at the filesystem.
                
> Reconciliation endpoint broken
> ------------------------------
>
>                 Key: STANBOL-935
>                 URL: https://issues.apache.org/jira/browse/STANBOL-935
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Entityhub
>    Affects Versions: entityhub-0.11.0
>            Reporter: Sergio Fernández
>         Attachments: STANBOL-935.patch
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> Try to access the reconciliation entpoint: http://path/to/stanbol/entityhub/reconcile
> or the endpoint for a concrete site: http://localhost:8080/entityhub/site/{siteID}/reconcile
> I mean, not performing any operation, just accessing the endpoint, I'm getting this error:
> HTTP ERROR 500
> Problem accessing /entityhub/reconcile. Reason:
>     java.io.FileNotFoundException: Template html/org/apache/stanbol/entityhub/jersey/resource/reconcile/EntityhubReconcileResource/index not found.
> Caused by:
> java.lang.RuntimeException: java.io.FileNotFoundException: Template html/org/apache/stanbol/entityhub/jersey/resource/reconcile/EntityhubReconcileResource/index not found.
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.renderPojo(ViewableWriter.java:93)
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.writeTo(ViewableWriter.java:74)
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.writeTo(ViewableWriter.java:43)
> 	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1448)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1360)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1350)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
> 	at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
> 	at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.doFilter(QueryHeadersFilter.java:75)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:78)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilterHttp(ResourceServingFilter.java:148)
> 	at org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilter(ResourceServingFilter.java:91)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.stanbol.commons.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:163)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
> 	at org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilter(AuthenticatingFilter.java:159)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
> 	at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
> 	at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: java.io.FileNotFoundException: Template html/org/apache/stanbol/entityhub/jersey/resource/reconcile/EntityhubReconcileResource/index not found.
> 	at freemarker.template.Configuration.getTemplate(Configuration.java:580)
> 	at freemarker.template.Configuration.getTemplate(Configuration.java:543)
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.renderPojo(ViewableWriter.java:90)
> 	... 54 more
> Caused by:
> java.io.FileNotFoundException: Template html/org/apache/stanbol/entityhub/jersey/resource/reconcile/EntityhubReconcileResource/index not found.
> 	at freemarker.template.Configuration.getTemplate(Configuration.java:580)
> 	at freemarker.template.Configuration.getTemplate(Configuration.java:543)
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.renderPojo(ViewableWriter.java:90)
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.writeTo(ViewableWriter.java:74)
> 	at org.apache.stanbol.commons.viewable.writer.impl.ViewableWriter.writeTo(ViewableWriter.java:43)
> 	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1448)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1360)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1350)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)
> 	at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
> 	at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.doFilter(QueryHeadersFilter.java:75)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:78)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilterHttp(ResourceServingFilter.java:148)
> 	at org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilter(ResourceServingFilter.java:91)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.stanbol.commons.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:163)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
> 	at org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilter(AuthenticatingFilter.java:159)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)
> 	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)
> 	at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)
> 	at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)
> 	at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)
> 	at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
> 	at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira