Hi Gabriel, This exception appears if the SolrCore used by the Entityhub SolrYard is not active. This usually indicated some problem in the initialization.
I am not aware of any problem regarding the initialization of the default launcher as this is also tested by the integration test. On Thu, Jan 3, 2013 at 1:38 PM, Gabriel Vince <[email protected]> wrote: > after version update I cannot enhance content using dbpedia linking with > following exception. Did I missed something to clean or initialize after > rebuild? > How have you done the "version upgrade"? Do you start from an empty working directory? What launcher do you use? Are there related Exceptions during the startup of Stanbol in the logs ('stanbol/logs/error.log')? best Rupert > > Thank you in advance > Gabriel > > > > services tested: > http://localhost:8080/enhancervie > http://localhost:8080/enhancer > > exception follows: > Index 'dbpedia' for SolrYard 'dbpedia default data index' is currently not > active! > > > > SEVERE: The exception contained within MappableContainerException could not > be m > apped to a response, re-throwing to the HTTP container > org.apache.stanbol.enhancer.servicesapi.ChainException: Enhancement Chain > failed > because of required Engine 'dbpediaLinking' failed with Message: Unable to > proc > ess ContentItem > '<urn:content-item-sha1-910b5f653eb2d2882ada94468b5c8c7c82db0763 >>' with Enhancement Engine 'dbpediaLinking' because the engine was unable > to pro > cess the content (Engine class: > org.apache.stanbol.enhancer.engines.entitytaggin > g.impl.NamedEntityTaggingEngine)(Reason: Unable to initialize the Cache > with Yar > d dbpediaIndex! This is usually caused by Errors while reading the Cache > Configu > ration from the Yard.)! > at > org.apache.stanbol.enhancer.jobmanager.event.impl.EventJobManagerImpl > .enhanceContent(EventJobManagerImpl.java:179) > at > org.apache.stanbol.enhancer.jersey.resource.AbstractEnhancerResource. > enhance(AbstractEnhancerResource.java:233) > at > org.apache.stanbol.enhancer.jersey.resource.AbstractEnhancerResource. > enhanceFromData(AbstractEnhancerResource.java:215) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at > com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMe > thodInvokerFactory.java:60) > at > com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMeth > odDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchPr > ovider.java:205) > at > com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDi > spatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > at > com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethod > Rule.java:302) > at > com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(Resourc > eClassRule.java:108) > at > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHa > ndPathRule.java:147) > at > com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(R > ootResourceClassesRule.java:84) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ > est(WebApplicationImpl.java:1480) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ > est(WebApplicationImpl.java:1411) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque > st(WebApplicationImpl.java:1360) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque > st(WebApplicationImpl.java:1350) > at > com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen > t.java:416) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet > Container.java:538) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet > Container.java:716) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > at > org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(S > ervletHandler.java:96) > at > org.apache.felix.http.base.internal.handler.ServletHandler.handle(Ser > vletHandler.java:79) > at > org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(S > ervletPipeline.java:42) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do > Filter(InvocationFilterChain.java:49) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter > (HttpFilterChain.java:33) > at > org.apache.stanbol.commons.httpqueryheaders.impl.QueryHeadersFilter.d > oFilter(QueryHeadersFilter.java:75) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi > lterHandler.java:88) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt > erHandler.java:76) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do > Filter(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(Filt > erHandler.java:78) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do > Filter(InvocationFilterChain.java:47) > at > org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter > (HttpFilterChain.java:33) > at > org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilt > erHttp(ResourceServingFilter.java:148) > at > org.apache.stanbol.commons.web.resources.ResourceServingFilter.doFilt > er(ResourceServingFilter.java:91) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi > lterHandler.java:88) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt > erHandler.java:76) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do > Filter(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(A > uthenticatingFilter.java:163) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Unknown Source) > at > org.apache.stanbol.commons.security.auth.AuthenticatingFilter.doFilte > r(AuthenticatingFilter.java:159) > at > org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(Fi > lterHandler.java:88) > at > org.apache.felix.http.base.internal.handler.FilterHandler.handle(Filt > erHandler.java:76) > at > org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.do > Filter(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(Disp > atcher.java:39) > at > org.apache.felix.http.base.internal.DispatcherServlet.service(Dispatc > herServlet.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:3 > 90) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1 > 82) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7 > 65) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1 > 52) > at org.mortbay.jetty.Server.handle(Server.java:326) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54 > 2) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio > n.java:943) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja > va:410) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j > ava:582) > Caused by: java.lang.IllegalStateException: Unable to initialize the Cache > with > Yard dbpediaIndex! This is usually caused by Errors while reading the Cache > Conf > iguration from the Yard. > at > org.apache.stanbol.entityhub.core.site.CacheImpl.getCacheYard(CacheIm > pl.java:220) > at > org.apache.stanbol.entityhub.core.site.CacheImpl.getQueryFactory(Cach > eImpl.java:362) > at > org.apache.stanbol.entityhub.core.impl.ReferencedSiteImpl.getQueryFac > tory(ReferencedSiteImpl.java:602) > at > org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTag > gingEngine.computeEntityRecommentations(NamedEntityTaggingEngine.java:445) > at > org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTag > gingEngine.computeEnhancements(NamedEntityTaggingEngine.java:370) > at > org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandl > er.processEvent(EnhancementJobHandler.java:271) > at > org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandl > er.handleEvent(EnhancementJobHandler.java:189) > at > org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(Handle > rTaskImpl.java:88) > at > org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncD > eliverTasks.java:221) > at > org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter > .run(AsyncDeliverTasks.java:110) > at > EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So > urce) > at java.lang.Thread.run(Unknown Source) > Caused by: org.apache.stanbol.entityhub.servicesapi.yard.YardException: The > Solr > Index 'dbpedia' for SolrYard 'dbpedia default data index' is currently not > activ > e! > at > org.apache.stanbol.entityhub.yard.solr.impl.SolrYard.getServer(SolrYa > rd.java:554) > at > org.apache.stanbol.entityhub.yard.solr.impl.SolrYard.getRepresentatio > n(SolrYard.java:934) > at > org.apache.stanbol.entityhub.core.site.CacheUtils.loadBaseMappings(Ca > cheUtils.java:56) > at > org.apache.stanbol.entityhub.core.site.CacheImpl.initWithCacheYard(Ca > cheImpl.java:120) > at > org.apache.stanbol.entityhub.core.site.CacheImpl.getCacheYard(CacheIm > pl.java:216) > ... 11 more > > > -- > Gabriel Vince > Senior Consultant > Apogado > http://www.apogado.com -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
