You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by xiaoyan yu <xi...@gmail.com> on 2013/02/15 16:20:35 UTC

Re: Enhancement chain failed

I got the same YardException when trying to query entityhub. The reason I
got such an exception is that I put a dbpedia.index.zip under
stanbol/datafiles in hopes of replacing the default 43k dbpedia and the
initialization process hadn't been completed. If you look at the
dbpedia.solrindex.ref
file located by "find . -name dbpedia.solrindex.ref " in your stanbol
working dir, you probably will see the status is uninitialized.
If that's similar to what you are trying to do, please shutdown the stanbol
instance, remove the dbpedia.solrindex.ref file, start the stanbol
instance, and wait for the intialization process complete before doing any
other interactions with stanbol.

I am pretty new to stanbol, so I may not be correct. Hope it helps.

Thanks,
Xiaoyan


On Fri, Feb 15, 2013 at 8:37 AM, Gianluigi Di Vito <
gianluigi.divito@kit-digital.com> wrote:

>  Hi all,****
>
> I have a problem with Stanbol Enhancer, when I try to call it returns
> always the same error: ****
>
> org.apache.stanbol.enhancer.servicesapi.ChainException: Enhancement Chain
> failed because of required Engine 'dbpediaLinking' failed****
>
> ** **
>
> I’m using the fullwar version (revision: 1446191) deployed under Tomcat
> 5.5 on a Windows machine.****
>
> The error is showed both if I use a web view and if I call through the
> rest api.****
>
> ** **
>
> Many thanks.****
>
> Gianluigi****
>
> ** **
>
> Below the full log:****
>
> ** **
>
> Enhancement Process Metadata:****
>
> ** **
>
> Execution of Chain default failed in 5.06sec.****
>
> unknown: scheduled in [duration not available] : entityhubExtraction (
> required , start: unknown, completion: unknown)****
>
> 15-59-49.472: completed in 0ms : tika ( optional , start: 15-59-49.472,
> completion: 15-59-49.472)****
>
> 15-59-49.488: completed in 0ms : langdetect ( required , start:
> 15-59-49.488, completion: 15-59-49.488)****
>
> 15-59-49.488: completed in 15ms : opennlp-sentence ( required , start:
> 15-59-49.488, completion: 15-59-49.503)****
>
> 15-59-49.503: completed in 32ms : opennlp-ner ( required , start:
> 15-59-49.503, completion: 15-59-49.535)****
>
> 15-59-49.503: completed in 0ms : opennlp-pos ( required , start:
> 15-59-49.503, completion: 15-59-49.503)****
>
> 15-59-49.503: completed in 0ms : opennlp-token ( required , start:
> 15-59-49.503, completion: 15-59-49.503)****
>
> 15-59-49.535: failed in 5.00sec : dbpediaLinking ( required , start:
> 15-59-49.535, completion: 15-59-54.535)****
>
> ** **
>
> OUTPUT:****
>
> ** **
>
> org.apache.stanbol.enhancer.servicesapi.ChainException: Enhancement Chain
> failed because of required Engine 'dbpediaLinking' failed with Message:
> Unable to process ContentItem
> '<urn:content-item-sha1-37c8a8244041cf6113d4ee04b3a04d0a014f6e10>' with
> Enhancement Engine 'dbpediaLinking' because the engine was unable to
> process the content (Engine class:
> org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine)(Reason:
> Unable to initialize the Cache with Yard dbpediaIndex! This is usually
> caused by Errors while reading the Cache Configuration 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.AbstractEnhancerUiResource.enhanceFromForm(AbstractEnhancerUiResource.java:126)
> ****
>
>                 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:717)****
>
>                 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.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:717)****
>
>                 at
> org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)****
>
>                 at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)****
>
>                 at
> org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate.java:278)
> ****
>
>                 at
> org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:174)
> ****
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> ****
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> ****
>
>                 at
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
> ****
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> ****
>
>                 at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> ****
>
>                 at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> ****
>
>                 at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> ****
>
>                 at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> ****
>
>                 at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> ****
>
>                 at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> ****
>
>                 at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> ****
>
>                 at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
> ****
>
>                 at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
> ****
>
>                 at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)**
> **
>
>                 at java.lang.Thread.run(Thread.java:619)****
>
> Caused by: java.lang.IllegalStateException: Unable to initialize the Cache
> with Yard dbpediaIndex! This is usually caused by Errors while reading the
> Cache Configuration from the Yard.****
>
>                 at
> org.apache.stanbol.entityhub.core.site.CacheImpl.getCacheYard(CacheImpl.java:220)
> ****
>
>                 at
> org.apache.stanbol.entityhub.core.site.CacheImpl.getQueryFactory(CacheImpl.java:362)
> ****
>
>                 at
> org.apache.stanbol.entityhub.core.impl.ReferencedSiteImpl.getQueryFactory(ReferencedSiteImpl.java:602)
> ****
>
>                 at
> org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine.computeEntityRecommentations(NamedEntityTaggingEngine.java:445)
> ****
>
>                 at
> org.apache.stanbol.enhancer.engines.entitytagging.impl.NamedEntityTaggingEngine.computeEnhancements(NamedEntityTaggingEngine.java:370)
> ****
>
>                 at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.processEvent(EnhancementJobHandler.java:271)
> ****
>
>                 at
> org.apache.stanbol.enhancer.jobmanager.event.impl.EnhancementJobHandler.handleEvent(EnhancementJobHandler.java:189)
> ****
>
>                 at
> org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:88)
> ****
>
>                 at
> org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.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 Source)
> ****
>
>                 ... 1 more****
>
> Caused by: org.apache.stanbol.entityhub.servicesapi.yard.YardException:
> The SolrIndex 'dbpedia' for SolrYard 'dbpedia default data index' is
> currently not active!****
>
>                 at
> org.apache.stanbol.entityhub.yard.solr.impl.SolrYard.getServer(SolrYard.java:555)
> ****
>
>                 at
> org.apache.stanbol.entityhub.yard.solr.impl.SolrYard.getRepresentation(SolrYard.java:935)
> ****
>
>                 at
> org.apache.stanbol.entityhub.core.site.CacheUtils.loadBaseMappings(CacheUtils.java:56)
> ****
>
>                 at
> org.apache.stanbol.entityhub.core.site.CacheImpl.initWithCacheYard(CacheImpl.java:120)
> ****
>
>                 at
> org.apache.stanbol.entityhub.core.site.CacheImpl.getCacheYard(CacheImpl.java:216)
> ****
>
>                 ... 11 more****
>
> ** **
>
> Gianluigi Di Vito |  Software Engineer, R&D****
>
> +39 02 84278 465  Office  |  gianluigi.di.vito Skype ****
>
> * *****
>
> KIT digital  |  www.kitd.com  |  The Future of Television  ****
>
> Milan Office  |  Via Breda, 176 |  20126 Milano, Italy****
>
>  ****
>
> [image: cid:266E708A-798C-4FCC-8CE5-E48CB9EBF17F]****
>
> ** **
>
> ** **
>
> ** **
>
> Gianluigi Di Vito |  Software Engineer, R&D****
>
> +39 02 84278 465  Office  |  gianluigi.divito Skype ****
>
> * *****
>
> KIT digital  |  www.kitd.com  |  The Future of Television  ****
>
> Milan Office  |  Via Breda, 176 |  20126 Milano, Italy****
>
>  ****
>
> [image: cid:266E708A-798C-4FCC-8CE5-E48CB9EBF17F]****
>
> ** **
>