Thanks for your explanation. After re-initialization, I got the
contenthub-{date} index back.
I don't understand one thing regarding the contenthub index.
As I haven't uploaded any data in the contenthub store yet, what are
indexed and put in the contenthub-{date} folder?


Thanks,
Xiaoyan

On Sat, Feb 16, 2013 at 4:17 AM, Meriç Taze <[email protected]> wrote:

> Hi Xiaoyan,
>
> First of all, you need to know followings,
> - Endpoint of Contenthub Featured Search is
> "/contenthub/{indexName}/search/featured".
> - In query [1], first "contenthub" is the actual endpoint of Contenthub
> component, and the second one is the name of the index.
> - Indexes are stored on /stanbol/indexes/default/{indexName}-{date}.
>
>
> When you query the contenthub with [1], it will try to use the index on
> /stanbol/indexes/default/contenthub-{date}. Due to deletion, it will throw
> an exception as expected. You can restore the contenthub-{date} folder by
> re-building the launchers/full. If this does not solve your problem, please
> let me know.
>
> Best,
> Meric
>
> [1] http://localhost:8080/contenthub/*contenthub*
> /search/featured?fromStore="y"&queryTerm=paris
>
>
> 2013/2/16 xiaoyan yu <[email protected]>
>
> > When I query contenthub by
> >
> >
> http://localhost:8080/contenthub/contenthub/search/featured?fromStore=%22y%22&queryTerm=paris
> >
> > I got the exception that seems to indicate something wrong with the solr
> > server. One thing I did may be related to this is that I deleted the
> > contenthub-{date} folder from stanbol/indexes/default before this run.
> > Please help.
> >
> > Thanks,
> > Xiaoyan
> >
> >
> > Feb 15, 2013 3:41:11 PM com.sun.jersey.spi.container.ContainerResponse
> > mapMappableContainerException
> > SEVERE: The exception contained within MappableContainerException could
> not
> > be mapped to a response, re-throwing to the HTTP container
> > org.apache.stanbol.contenthub.servicesapi.search.SearchException:
> > SolrSearchImpl.getFacetNames: Failed to obtain solr server for ldprogram:
> > contenthub
> >         at
> >
> >
> org.apache.stanbol.contenthub.search.featured.FeaturedSearchImpl.getSolrServer(FeaturedSearchImpl.java:258)
> >         at
> >
> >
> org.apache.stanbol.contenthub.search.featured.FeaturedSearchImpl.getAllFacetResults(FeaturedSearchImpl.java:225)
> >         at
> >
> >
> org.apache.stanbol.contenthub.web.resources.FeaturedSearchResource.performSearch(FeaturedSearchResource.java:223)
> >         at
> >
> >
> org.apache.stanbol.contenthub.web.resources.FeaturedSearchResource.get(FeaturedSearchResource.java:189)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at
> >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         at
> >
> >
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> >         at
> >
> >
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
> >         at
> >
> >
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> >         at
> >
> >
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> >
> >         at
> >
> >
> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> >         at
> >
> >
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> >         at
> >
> >
> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> >         at
> >
> >
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1480)
> >         at
> >
> >
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1411)
> >         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.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.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.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:517)
> >         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:
> org.apache.stanbol.contenthub.servicesapi.store.StoreException:
> > SolrServer specified by 'contenthub' cannot be retrieved from
> > RegisteredSolrServerTracker
> >         at
> >
> >
> org.apache.stanbol.contenthub.store.solr.manager.SolrCoreManager.getSolrServerFromTracker(SolrCoreManager.java:148)
> >         at
> >
> >
> org.apache.stanbol.contenthub.store.solr.manager.SolrCoreManager.getServer(SolrCoreManager.java:169)
> >         at
> >
> >
> org.apache.stanbol.contenthub.search.featured.FeaturedSearchImpl.getSolrServer(FeaturedSearchImpl.java:250)
> >         ... 66 more
> >
>

Reply via email to