You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tommaso Teofili <to...@gmail.com> on 2012/04/04 22:28:34 UTC
Re: Solr with UIMA
Hi again Chris,
I finally manage to find some proper time to test your configuration.
First thing to notice is that it worked for me assuming the following
pre-requisites were satisfied:
- you had the jar containing the AnalysisEngine for the RoomAnnotator.xml
in your libraries section (this is actually the uimaj-examples.jar which is
shipped with the UIMA SDK under libs[1]) :
- you had the solr-uima jar in your libraries
the above are done adding the following lines to the solrconfig (usually on
the top of the file just beneath the <luceneMatchVersion> element)
<lib dir="../../dist/" regex="apache-solr-uima-\d.*\.jar" />
<lib dir="../../contrib/uima/lib" regex=".*\.jar" />
<lib dir="/path/to/apache-uima/lib" />
If you want to know what's going wrong I'd advice to not ignore errors
within the UIMAUpdateProcessor configuration:
<bool name="ignoreErrors">false</bool>
What I get if I run your same curl command and then make a *:* query is :
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">2</int>
<lst name="params">
<str name="wt">xml</str>
<str name="start">0</str>
<str name="q">*:*</str>
<str name="rows">10</str>
</lst>
</lst>
<result name="response" numFound="1" start="0">
<doc>
<str name="id">4</str>
<str name="content">Test Room HAW GN-K35</str>
<arr name="UIMAname">
<str>Hawthorne</str>
</arr>
</doc>
</result>
</response>
which look ok to me.
Hope this helps.
Tommaso
[1] : http://mirror.switch.ch/mirror/apache/dist//uima///uimaj-2.3.1-bin.zip
2012/3/28 chris3001 <ch...@hotmail.com>
> Tommaso,
> Thank you so much for looking into this, I am very grateful!
>
> Chris
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3865291.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: Solr with UIMA
Posted by chris3001 <ch...@hotmail.com>.
Tommaso,
I apologize for my delayed response. Thank you very much for your time
looking into this!!
I will try to replicate your efforts on my end this week.
Respectfully,
Chris
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3898094.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr with UIMA
Posted by debdoot <de...@gmail.com>.
Further observation on the error:
All requests to add documents through the /update URL land up with the same
error, irrespective of the fields contained in the document. If I don't use
the UIMAUpdateRequestProcessor, I can add/update documents successfully.
Here are the snippets relevant to updateRequestProcessor declarations in my
solrconfig.xml
<requestHandler name="/update"
class="solr.XmlUpdateRequestHandler">
<lst name="defaults">
<str name="update.processor">uima</str>
</lst>
</requestHandler>
<updateRequestProcessorChain name="uima">
<processor
class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
<lst name="uimaConfig">
<lst name="runtimeParameters">
</lst>
<str name="analysisEngine">C:\ex1\RoomNumberAnnotator.xml</str>
<bool name="ignoreErrors">false</bool>
<lst name="analyzeFields">
<bool name="merge">false</bool>
<arr name="fields">
<str>content</str>
</arr>
</lst>
<lst name="fieldMappings">
<lst name="type">
<str name="name">org.apache.uima.tutorial.RoomNumber</str>
<lst name="mapping">
<str name="feature">building</str>
<str name="field">UIMAname</str>
</lst>
</lst>
</lst>
</lst>
</processor>
<processor class="solr.LogUpdateProcessorFactory" />
<processor class="solr.RunUpdateProcessorFactory" />
</updateRequestProcessorChain>
Please help.
Thanks
Debdoot
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3987083.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr with UIMA
Posted by Tommaso Teofili <to...@gmail.com>.
Hi all,
2012/6/1 Jack Krupansky <ja...@basetechnology.com>
> Is it failing on the first document? I see "uid 5", suggests that it is
> not. If not, how is this document different from the others?
>
> I see the exception
> org.apache.uima.resource.**ResourceInitializationExceptio**n, suggesting
> that some file cannot be loaded.
>
> It sounds like it may be having trouble loading "aePath"
> ("analysisEngine"). Or maybe some other file?
>
thanks Jack, that's correct, it's most likely what's causing the reported
error.
Tommaso
>
> -- Jack Krupansky
>
> -----Original Message----- From: debdoot
> Sent: Thursday, May 31, 2012 11:59 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr with UIMA
>
>
> Hi Tommaso,
>
> I have followed the steps you have listed to try to deploy the example
> RoomNumberAnnotator with Solr 3.5.
> Here is the error trace that I get:
>
>
> org.apache.solr.common.**SolrException: processing error: null. uid=5,
> text="Test Room HAW GN-K35..."
> at
> org.apache.solr.uima.**processor.**UIMAUpdateRequestProcessor.**
> processAdd(**UIMAUpdateRequestProcessor.**java:107)
> at
> org.apache.solr.handler.**XMLLoader.processUpdate(**
> XMLLoader.java:158)
> at org.apache.solr.handler.**XMLLoader.load(XMLLoader.**java:79)
> at
> org.apache.solr.handler.**ContentStreamHandlerBase.**
> handleRequestBody(**ContentStreamHandlerBase.java:**58)
> at
> org.apache.solr.handler.**RequestHandlerBase.**handleRequest(**
> RequestHandlerBase.java:129&#**41;
> at org.apache.solr.core.SolrCore.**execute(SolrCore.java:**1372)
> at
> org.apache.solr.servlet.**SolrDispatchFilter.execute&#**
> 40;SolrDispatchFilter.java:**356)
> at
> org.apache.solr.servlet.**SolrDispatchFilter.doFilter&#**
> 40;SolrDispatchFilter.java:**252)
> at
> com.ibm.ws.webcontainer.**filter.FilterInstanceWrapper.**doFilter(**
> FilterInstanceWrapper.java:**192)
> at
> com.ibm.ws.webcontainer.**filter.WebAppFilterChain.**doFilter(**
> WebAppFilterChain.java:89)
> at
> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**doFilter(**
> WebAppFilterManager.java:919&#**41;
> at
> com.ibm.ws.webcontainer.**filter.WebAppFilterManager.**invokeFilters(*
> *WebAppFilterManager.java:1016&**#41;
> at
> com.ibm.ws.webcontainer.**webapp.WebApp.handleRequest&#**
> 40;WebApp.java:3703)
> at
> com.ibm.ws.webcontainer.**webapp.WebGroup.handleRequest&**
> #40;WebGroup.java:304)
> at
> com.ibm.ws.webcontainer.**WebContainer.handleRequest&#**
> 40;WebContainer.java:953)
> at
> com.ibm.ws.webcontainer.**WSWebContainer.handleRequest&#**
> 40;WSWebContainer.java:1655&#**41;
> at
> com.ibm.ws.webcontainer.**channel.WCChannelLink.ready&#**
> 40;WCChannelLink.java:195)
> at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
> handleDiscrimination(**HttpInboundLink.java:452)
> at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
> handleNewRequest(**HttpInboundLink.java:511)
> at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
> processRequest(**HttpInboundLink.java:305)
> at
> com.ibm.ws.http.channel.**inbound.impl.HttpInboundLink.**
> ready(HttpInboundLink.**java:276)
> at
> com.ibm.ws.tcp.channel.impl.**NewConnectionInitialReadCallba**
> ck.sendToDiscriminators(**NewConnectionInitialReadCallba**
> ck.java:214)
> at
> com.ibm.ws.tcp.channel.impl.**NewConnectionInitialReadCallba**
> ck.complete(**NewConnectionInitialReadCallba**ck.java:113)
> at
> com.ibm.ws.tcp.channel.impl.**AioReadCompletionListener.**
> futureCompleted(**AioReadCompletionListener.**java:165)
> at
> com.ibm.io.async.**AbstractAsyncFuture.**invokeCallback(**
> AbstractAsyncFuture.java:217&#**41;
> at
> com.ibm.io.async.**AsyncChannelFuture.**fireCompletionActions(**
> AsyncChannelFuture.java:161&#**41;
> at com.ibm.io.async.AsyncFuture.**completed(AsyncFuture.**
> java:138)
> at com.ibm.io.async.**ResultHandler.complete(**
> ResultHandler.java:204)
> at
> com.ibm.io.async.**ResultHandler.**runEventProcessingLoop(**
> ResultHandler.java:775)
> at com.ibm.io.async.**ResultHandler$2.run(**
> ResultHandler.java:905)
> at com.ibm.ws.util.ThreadPool$**Worker.run(ThreadPool.**java:1650)
> Caused by: org.apache.uima.resource.**ResourceInitializationExceptio**n
> at
> org.apache.solr.uima.**processor.ae.**OverridingParamsAEProvider.**
> getAE(**OverridingParamsAEProvider.**java:86)
> at
> org.apache.solr.uima.**processor.**UIMAUpdateRequestProcessor.**
> processText(**UIMAUpdateRequestProcessor.**java:144)
> at
> org.apache.solr.uima.**processor.**UIMAUpdateRequestProcessor.**
> processAdd(**UIMAUpdateRequestProcessor.**java:77)
> ... 30 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.uima.util.**XMLInputSource.<init>&#**
> 40;XMLInputSource.java:118&#**41;
> at
> org.apache.solr.uima.**processor.ae.**OverridingParamsAEProvider.**
> getAE(**OverridingParamsAEProvider.**java:58)
> ... 32 more
>
> at
> com.ibm.ws.webcontainer.**webapp.**WebAppDispatcherContext.**sendError(**
> WebAppDispatcherContext.java:**624)
> at
> com.ibm.ws.webcontainer.**webapp.**WebAppDispatcherContext.**sendError(**
> WebAppDispatcherContext.java:**642)
> at
> com.ibm.ws.webcontainer.srt.**SRTServletResponse.sendError(**
> SRTServletResponse.java:1235)
> at
> org.apache.solr.servlet.**SolrDispatchFilter.sendError(**
> SolrDispatchFilter.java:380)
> at
> org.apache.solr.servlet.**SolrDispatchFilter.**writeResponse(**
> SolrDispatchFilter.java:326)
> at
> org.apache.solr.servlet.**SolrDispatchFilter.doFilter(**
> SolrDispatchFilter.java:265)
> ....
> ....
>
> Please let me know if you have any insights on what could be the issue.
>
> Thanks in advance,
> Debdoot
>
>
> --
> View this message in context: http://lucene.472066.n3.**
> nabble.com/Solr-with-UIMA-**tp3863324p3987056.html<http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3987056.html>
> Sent from the Solr - User mailing list archive at Nabble.com.
>
Re: Solr with UIMA
Posted by Jack Krupansky <ja...@basetechnology.com>.
Is it failing on the first document? I see "uid 5", suggests that it is not.
If not, how is this document different from the others?
I see the exception
org.apache.uima.resource.ResourceInitializationException, suggesting that
some file cannot be loaded.
It sounds like it may be having trouble loading "aePath" ("analysisEngine").
Or maybe some other file?
-- Jack Krupansky
-----Original Message-----
From: debdoot
Sent: Thursday, May 31, 2012 11:59 AM
To: solr-user@lucene.apache.org
Subject: Re: Solr with UIMA
Hi Tommaso,
I have followed the steps you have listed to try to deploy the example
RoomNumberAnnotator with Solr 3.5.
Here is the error trace that I get:
org.apache.solr.common.SolrException: processing error: null. uid=5,
text="Test Room HAW GN-K35..."
at
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processAdd(UIMAUpdateRequestProcessor.java:107)
at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:158)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)
at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:953)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1655)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1650)
Caused by: org.apache.uima.resource.ResourceInitializationException
at
org.apache.solr.uima.processor.ae.OverridingParamsAEProvider.getAE(OverridingParamsAEProvider.java:86)
at
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processText(UIMAUpdateRequestProcessor.java:144)
at
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processAdd(UIMAUpdateRequestProcessor.java:77)
... 30 more
Caused by: java.lang.NullPointerException
at
org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:118)
at
org.apache.solr.uima.processor.ae.OverridingParamsAEProvider.getAE(OverridingParamsAEProvider.java:58)
... 32 more
at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:624)
at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:642)
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1235)
at
org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilter.java:380)
at
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:326)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265)
....
....
Please let me know if you have any insights on what could be the issue.
Thanks in advance,
Debdoot
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3987056.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Solr with UIMA
Posted by debdoot <de...@gmail.com>.
Hi Tommaso,
I have followed the steps you have listed to try to deploy the example
RoomNumberAnnotator with Solr 3.5.
Here is the error trace that I get:
org.apache.solr.common.SolrException: processing error: null. uid=5,
text="Test Room HAW GN-K35..."
at
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processAdd(UIMAUpdateRequestProcessor.java:107)
at
org.apache.solr.handler.XMLLoader.processUpdate(XMLLoader.java:158)
at org.apache.solr.handler.XMLLoader.load(XMLLoader.java:79)
at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at
com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at
com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
at
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:953)
at
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1655)
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1650)
Caused by: org.apache.uima.resource.ResourceInitializationException
at
org.apache.solr.uima.processor.ae.OverridingParamsAEProvider.getAE(OverridingParamsAEProvider.java:86)
at
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processText(UIMAUpdateRequestProcessor.java:144)
at
org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processAdd(UIMAUpdateRequestProcessor.java:77)
... 30 more
Caused by: java.lang.NullPointerException
at
org.apache.uima.util.XMLInputSource.<init>(XMLInputSource.java:118)
at
org.apache.solr.uima.processor.ae.OverridingParamsAEProvider.getAE(OverridingParamsAEProvider.java:58)
... 32 more
at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:624)
at
com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:642)
at
com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1235)
at
org.apache.solr.servlet.SolrDispatchFilter.sendError(SolrDispatchFilter.java:380)
at
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:326)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265)
....
....
Please let me know if you have any insights on what could be the issue.
Thanks in advance,
Debdoot
--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3987056.html
Sent from the Solr - User mailing list archive at Nabble.com.