Re: Exception during integration of Solr with UIMA

2017-03-20 Thread aruninfo100
Hi Tommaso,

Thanks for the reply.
In the UIMAUpdateRequestProcessor I have only OpenCalais  liscence entry and
no other entries.So I need to remove the same right.
   VALID_OPENCALAIS_KEY .

Do i need to make modifications/remove in the
OverridingParamsExtServicesAE.xml file for OpenCalais ?

Thanks and Regards,
Arun



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Exception-during-integration-of-Solr-with-UIMA-tp4325897p4325910.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Exception during integration of Solr with UIMA

2017-03-20 Thread Tommaso Teofili
> org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(Exec
> uteProduceConsume.java:156)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
> l.java:654)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
> .java:572)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.net.UnknownHostException: api.opencalais.com
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
> :184)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:589)
> at java.net.Socket.connect(Socket.java:538)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
> at sun.net.www.http.HttpClient.(HttpClient.java:211)
> at sun.net.www.http.HttpClient.New(HttpClient.java:308)
> at sun.net.www.http.HttpClient.New(HttpClient.java:326)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
>
> .
>
> solr.log:
>
> 2017-03-19 05:41:24.466 WARN  (qtp1389647288-13) [   x:star]
> o.a.s.u.p.UIMAUpdateRequestProcessor skip the text processing due to null.
> id=3aedc166-c9ad-4b30-8bcb-d27177d2ae16,  text="nullget acquainted with ams
> application release readiness  confidential – not for distribution1
> ..."
> 2017-03-19 05:41:24.492 INFO  (qtp1389647288-13) [   x:star]
> o.a.s.u.p.LogUpdateProcessorFactory [star]  webapp=/solr path=/update
> params={wt=javabin&version=2}{add=[3aedc166-c9ad-4b30-8bcb-d27177d2ae16
> (1562275568121020416)]} 0 12088
> 2017-03-19 05:41:39.493 INFO  (commitScheduler-10-thread-1) [   x:star]
> o.a.s.u.DirectUpdateHandler2 start
> ...
>
> Kindly let me know what I am doing wrong here and the possible solution for
> it.I have been spending time to rectify this issue without success.
>
> Thanks
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Exception-during-integration-of-Solr-with-UIMA-tp4325897.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Exception during integration of Solr with UIMA

2017-03-20 Thread aruninfo100
vaBinUpdateRequestCodec.unmars 
hal(JavaBinUpdateRequestCodec.java:186) 
at
org.apache.solr.handler.loader.JavabinLoader.parseAndLoadDocs(Javabin 
Loader.java:107) 
at
org.apache.solr.handler.loader.JavabinLoader.load(JavabinLoader.java: 
54) 
at
org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHand 
ler.java:97) 
at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(Co 
ntentStreamHandlerBase.java:69) 
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl 
erBase.java:156) 
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2036) 
at
org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:657) 
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464) 
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte 
r.java:257) 
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte 
r.java:208) 
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet 
Handler.java:1668) 
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java 
:581) 
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j 
ava:143) 
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav 
a:548) 
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl 
er.java:226) 
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl 
er.java:1160) 
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java: 
511) 
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle 
r.java:185) 
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle 
r.java:1092) 
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j 
ava:141) 
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Cont 
extHandlerCollection.java:213) 
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColl 
ection.java:119) 
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper 
.java:134) 
at org.eclipse.jetty.server.Server.handle(Server.java:518) 
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) 
at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.jav 
a:244) 
at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Abstra 
ctConnection.java:273) 
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) 
at
org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoin 
t.java:93) 
at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceA 
ndRun(ExecuteProduceConsume.java:246) 
at
org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(Exec 
uteProduceConsume.java:156) 
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo 
l.java:654) 
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool 
.java:572) 
at java.lang.Thread.run(Thread.java:745) 
Caused by: java.net.UnknownHostException: api.opencalais.com
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java 
:184) 
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 
at java.net.Socket.connect(Socket.java:589) 
at java.net.Socket.connect(Socket.java:538) 
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) 
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) 
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) 
at sun.net.www.http.HttpClient.(HttpClient.java:211) 
at sun.net.www.http.HttpClient.New(HttpClient.java:308) 
at sun.net.www.http.HttpClient.New(HttpClient.java:326) 
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC 

. 

solr.log:

2017-03-19 05:41:24.466 WARN  (qtp1389647288-13) [   x:star]
o.a.s.u.p.UIMAUpdateRequestProcessor skip the text processing due to null.
id=3aedc166-c9ad-4b30-8bcb-d27177d2ae16,  text="nullget acquainted with ams
application release readiness  confidential – not for distribution1 ..." 
2017-03-19 05:41:24.492 INFO  (qtp1389647288-13) [   x:star]
o.a.s.u.p.LogUpdateProcessorFactory [star]  webapp=/solr path=/update
params={wt=javabin&version=2}{add=[3aedc166-c9ad-4b30-8bcb-d27177d2ae16
(1562275568121020416)]} 0 12088 
2017-03-19 05:41:39.493 INFO  (commitScheduler-10-thread-1) [   x:star]
o.a.s.u.DirectUpdateHandler2 start 
... 

Kindly let me know what I am doing wrong here and the possible solution for
it.I have been spending time to rectify this issue without success. 

Thanks 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Excepti

Re: Solr with UIMA

2012-08-13 Thread introfini

Rahul Warawdekar wrote
> 
> Hi Divakar,
> 
> Try making your updateRequestProcessorChain as default. Simply add
> default="true" as follows and check if that works.
> 
> 
> 
> 

Rahul,

This fixed my problem, you saved my week!

I was following the README.txt instructions and they didn't work, after
adding the default="true" it immediately start working. 

Maybe that should go into the README.txt?

Thank you.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p4001014.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr with UIMA

2012-06-04 Thread Tommaso Teofili
Hi all,

2012/6/1 Jack Krupansky 

> 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(**UIMAUpdat

Re: Solr with UIMA

2012-05-31 Thread Jack Krupansky
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

2012-05-31 Thread debdoot
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



 
   
   
 uima
   
  



  

  
  
  C:\ex1\RoomNumberAnnotator.xml
  false
  
  
false

  content

  
  

  org.apache.uima.tutorial.RoomNumber
  
building
UIMAname
  

  

  
  
  



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

2012-05-31 Thread debdoot
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

2012-04-20 Thread dsy99
Hi Rahul,
Thank you for the reply. I tried by modifying the
updateRequestProcessorChain as follows:



 But still I am not able to see the UIMA fields in the result. I executed
the following curl command to index a file named "test.docx"

curl
"http://localhost:8983/solr/update/extract?fmap.content=content&literal.id=doc47&commit=true";
-F "file=@test.docx"

When I searched the same document with
"http://localhost:8983/solr/select?q=id:doc47"; command, got the following
result.


  
 divakar
 

  
application/vnd.openxmlformats-officedocument.wordprocessingml.document

 
 doc47
 2012-04-18T14:19:00Z
  


Could you please help where I am wrong?

With Thaks & Regds:
Divakar

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3925670.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr with UIMA

2012-04-19 Thread Rahul Warawdekar
Hi Divakar,

Try making your updateRequestProcessorChain as default. Simply add
default="true" as follows and check if that works.




On Thu, Apr 19, 2012 at 12:01 PM, dsy99  wrote:

> Hi Chris,
> Are you been able to get success to integrate the UIMA in SOLR.
>
> I too  tried to integrate Uima in Solr by following the instructions
> provided in README i.e. the following four steps:
>
> Step1. I set  tags in solrconfig.xml appropriately to point the jar
> files.
>
>   
>
>
> Step2. modified my "schema.xml" adding the fields I wanted to  hold
> metadata
> specifying proper values for type, indexed, stored and multiValued options
> as follows:
>
> required="false"/>
>   multiValued="true" required="false"/>
>multiValued="true" required="false" />
>
> Step3. modified my solrconfig.xml adding the following snippet:
>
>  
> class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
>  
>
>   VALID_ALCHEMYAPI_KEY
>  VALID_ALCHEMYAPI_KEY
>  VALID_ALCHEMYAPI_KEY
>  VALID_ALCHEMYAPI_KEY
>  VALID_ALCHEMYAPI_KEY
>  VALID_OPENCALAIS_KEY
>
>
> name="analysisEngine">/org/apache/uima/desc/OverridingParamsExtServicesAE.xml
>
>true
>
> 
>  false
>  
> text
>   
>
>
>  
> name="name">org.apache.uima.alchemy.ts.concept.ConceptFS
>
>  text
>  concept
>
>  
>  
> name="name">org.apache.uima.alchemy.ts.language.LanguageFS
>
>  language
>  language
>
>  
>  
>org.apache.uima.SentenceAnnotation
>
>  coveredText
>  sentence
> 
>  
>
>  
>
>
>
>  
>
> Step 4: and finally created a new UpdateRequestHandler with the following:
>   
>
>  uima
>
>
>
> Further I  indexed a word file called text.docx using the following
> command:
>
> curl
> "
> http://localhost:8983/solr/update/extract?literal.id=doc1&uprefix=attr_&fmap.content=attr_content&commit=true
> "
> -F "myfile=@UIMA_sample_test.docx"
>
> When I searched the file I am not able to see the additional UIMA fields.
>
> Can you please help if you been able to solve the problem.
>
>
> With Regds & Thanks
> Divakar
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3923443.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Thanks and Regards
Rahul A. Warawdekar


Re: Solr with UIMA

2012-04-19 Thread dsy99
Hi Chris,
Are you been able to get success to integrate the UIMA in SOLR.

I too  tried to integrate Uima in Solr by following the instructions
provided in README i.e. the following four steps:

Step1. I set  tags in solrconfig.xml appropriately to point the jar
files.

   
   

Step2. modified my "schema.xml" adding the fields I wanted to  hold metadata
specifying proper values for type, indexed, stored and multiValued options
as follows:


  
  

Step3. modified my solrconfig.xml adding the following snippet:

  

  

  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_ALCHEMYAPI_KEY
  VALID_OPENCALAIS_KEY

/org/apache/uima/desc/OverridingParamsExtServicesAE.xml

true


  false
  
text
  


  
org.apache.uima.alchemy.ts.concept.ConceptFS

  text
  concept

  
  
org.apache.uima.alchemy.ts.language.LanguageFS

  language
  language

  
  
org.apache.uima.SentenceAnnotation

  coveredText
  sentence

  

  



  

Step 4: and finally created a new UpdateRequestHandler with the following:
  

  uima



Further I  indexed a word file called text.docx using the following command: 

curl
"http://localhost:8983/solr/update/extract?literal.id=doc1&uprefix=attr_&fmap.content=attr_content&commit=true";
-F "myfile=@UIMA_sample_test.docx"

When I searched the file I am not able to see the additional UIMA fields.

Can you please help if you been able to solve the problem.


With Regds & Thanks
Divakar

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3923443.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr with UIMA

2012-04-09 Thread chris3001
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

2012-04-04 Thread Tommaso Teofili
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  element)

  
  
  

If you want to know what's going wrong I'd advice to not ignore errors
within the UIMAUpdateProcessor configuration:
false

What I get if I run your same curl command and then make a *:* query is :


  
   0
   2
   
 xml
 0
 *:*
 10
   
   
   
 
   4
Test Room HAW GN-K35

   Hawthorne
 
  

   

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 

> 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

2012-03-28 Thread chris3001
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

2012-03-28 Thread Tommaso Teofili
Hi Chris,

I did never tried the Nutch integration so I can't help with that.
However I'll try to repeat your same setup and will let you know what it
comes out for me.

Tommaso

2012/3/28 chris3001 

> Still not getting there on Solr with UIMA...
> Has anyone taken example 1 (RoomAnnotator) and successfully tested this by
> any chance?
>
> Thanks to Tommaso my curl statement has changed to /update:
>
> curl http://localhost:8080/solr/update?commit=true -H "Content-Type:
> text/xml" --data-binary '4 name="content">Test Room HAW GN-K35'
>
> Next- my solrconfig has these two parts:
> Part1:
>   
>
>  uima
>
>  
>
> Part2:
> 
>   class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
>
>  
>  
>  
> name="analysisEngine">C:\uima\examples\descriptors\tutorial\ex1\RoomNumberAnnotator.xml
>   true
>  id
>  
>false
>
>  content
>
>  
>  
>
>   org.apache.uima.tutorial.RoomNumber
>  
>building
> UIMAname
>  
>
>  
>
>  
>  
>  
> 
>
> Finally, my schema.xml:
>
>  multiValued="true" required="false"/>
>
> When I run this example AE XML Descriptor in the Document Analyzer I see
> the
> token GN-K35 highlighted. However, when I try integrating into Solr using
> above settings and search for *:* in: http://localhost:8080/solr/admin/ I
> do
> not see the UIMAname tag at all. Nor with any data (namely, GN-K35 in this
> example).
>
> Thank you for your time in reading this.
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3864810.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: Solr with UIMA

2012-03-28 Thread chris3001
Still not getting there on Solr with UIMA...
Has anyone taken example 1 (RoomAnnotator) and successfully tested this by
any chance?

Thanks to Tommaso my curl statement has changed to /update:

curl http://localhost:8080/solr/update?commit=true -H "Content-Type:
text/xml" --data-binary '4Test Room HAW GN-K35'

Next- my solrconfig has these two parts:
Part1:
  

  uima

  

Part2:

  

  
  
  C:\uima\examples\descriptors\tutorial\ex1\RoomNumberAnnotator.xml
  true
  id
  
false

  content

  
  

  org.apache.uima.tutorial.RoomNumber
  
building
UIMAname
  

  

  
  
  


Finally, my schema.xml:



When I run this example AE XML Descriptor in the Document Analyzer I see the
token GN-K35 highlighted. However, when I try integrating into Solr using
above settings and search for *:* in: http://localhost:8080/solr/admin/ I do
not see the UIMAname tag at all. Nor with any data (namely, GN-K35 in this
example).

Thank you for your time in reading this.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3864810.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr with UIMA

2012-03-28 Thread chris3001
Tommaso-
Thank you so much for your reply and pointing this out! I will look into it.
However, when I run nutch I still dont see the new fields:

$ bin/nutch crawl urls -solr http://localhost:8080/solr/ -depth 1 -topN 2

Does that still have to do with the update/extract call?

Thanks again for your time.

Chris

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3864418.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr with UIMA

2012-03-28 Thread Tommaso Teofili
Hi Chris,

2012/3/28 chris3001 

> I am having a hard time integrating UIMA with Solr. I have downloaded the
> Solr 3.5 dist and have it successfully running with nutch and tika on
> windows 7 using solrcell and curl via cygwin. To begin, I copied the 6 jars
> from solr/contrib/uima/lib to the working /lib in solr. Next, I read the
> readme.txt file in solr/contrib/uima/lib and edited both my solrconfig.xml
> and schema.xml accordingly to no avail. I then found this link which seemed
> a bit more applicable since I didnt care to use Alchemy or OpenCalais:
> http://code.google.com/a/apache-extras.org/p/rondhuit-uima/?redir=1 Still-
> when I run a curl command that imports a pdf via solrcell I do not get the
> additional UIMA fields nor do I get anything on my logs. The test.pdf is
> parsed though and I see the pdf in Solr using:
> curl
> '
> http://localhost:8080/solr/update/extract?fmap.content=content&literal.id=doc1&commit=true
> '
> -F "file=@test.pdf"
>
> What I added to my SolrConfig.XML:
>
> /
>   class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
>
>  
>  
>  
> name="analysisEngine">C:\web\solrcelluimacrawler\com\rondhuit\uima\desc\KeyphraseExtractAnnotatorDescriptor.xml
>  true
>  id
>  
>false
>
>  content
>
>  
>  
>
>  com.rondhuit.uima.yahoo.Keyphrase
>  
>keyphrase
>UIMAname
>  
>
>  
>
>  
>  
>  
> 
> /
> I also adjusted my requestHander:
>
> /
>
>  uima
>
>  /
>
> Finally, my added entries in my Schema.xml
>
> /
>  multiValued="true" required="false"/>
> 
> /
>
> All I am trying to do is have test *any* UIMA AE in Solr and cannot figure
> out what I am doing wrong. Thank you in advance for reading this.
>
>
if I understood things correctly the problem is that you're using the
/update/extract call which uses the SolrCell ExtractingRequestHandler while
the UIMA update processor chain is available via the /update path, see:


   
 uima
   
 /

HTH
Tommaso

>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3863324.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>


Solr with UIMA

2012-03-27 Thread chris3001
I am having a hard time integrating UIMA with Solr. I have downloaded the
Solr 3.5 dist and have it successfully running with nutch and tika on
windows 7 using solrcell and curl via cygwin. To begin, I copied the 6 jars
from solr/contrib/uima/lib to the working /lib in solr. Next, I read the
readme.txt file in solr/contrib/uima/lib and edited both my solrconfig.xml
and schema.xml accordingly to no avail. I then found this link which seemed
a bit more applicable since I didnt care to use Alchemy or OpenCalais:
http://code.google.com/a/apache-extras.org/p/rondhuit-uima/?redir=1 Still-
when I run a curl command that imports a pdf via solrcell I do not get the
additional UIMA fields nor do I get anything on my logs. The test.pdf is
parsed though and I see the pdf in Solr using:
curl
'http://localhost:8080/solr/update/extract?fmap.content=content&literal.id=doc1&commit=true'
-F "file=@test.pdf"

What I added to my SolrConfig.XML:

/
  

  
  
  C:\web\solrcelluimacrawler\com\rondhuit\uima\desc\KeyphraseExtractAnnotatorDescriptor.xml
  true
  id
  
false

  content

  
  

  com.rondhuit.uima.yahoo.Keyphrase
  
keyphrase
UIMAname
  

  

  
  
  

/
I also adjusted my requestHander:

/

  uima

  /

Finally, my added entries in my Schema.xml

/


/

All I am trying to do is have test *any* UIMA AE in Solr and cannot figure
out what I am doing wrong. Thank you in advance for reading this.


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-with-UIMA-tp3863324p3863324.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Problems using Solr with UIMA

2011-07-04 Thread Sowmya V.B.
Hello Tomasso


I noticed that though I can see the Solr Admin interface, when I click on
links "schema" and "conf", its not taking me to the pages inside solr/conf/
folder of the webapp, again, I guess because of eclipse paths.

This is the stack trace on console:
INFO: Solr home set to 'solr/./'
Jul 4, 2011 4:57:58 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
classpath or 'solr/./conf/',
cwd=/Users/svajjala/Documents/eclipse/Eclipse.app/Contents/MacOS
at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:268)
at
org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:234)
at org.apache.solr.core.Config.(Config.java:141)
at org.apache.solr.core.SolrConfig.(SolrConfig.java:131)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:435)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316)
at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:133)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
at
org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
at
org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Jul 4, 2011 4:57:58 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: user.dir=/Users/svajjala/Documents/eclipse/Eclipse.app/Contents/MacOS
Jul 4, 2011 4:57:58 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init() done
Jul 4, 2011 4:57:58 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init()
Jul 4, 2011 4:57:58 PM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: No /solr/home in JNDI
Jul 4, 2011 4:57:58 PM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property or
JNDI)
Jul 4, 2011 4:57:58 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
Jul 4, 2011 4:57:58 PM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: No /solr/home in JNDI
Jul 4, 2011 4:57:58 PM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property or
JNDI)
Jul 4, 2011 4:57:58 PM org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done
Jul 4, 2011 4:57:58 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 4, 2011 4:57:58 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 4, 2011 4:57:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3661 ms
Jul 4, 2011 4:58:02 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/apache-solr-3.3.0 path=/admin/file/
params={file=schema.xml&contentType=text/xml;charset%3Dutf-8} status=0
QTime=1

I used solr before...from command line...and I never had such errors. Iam
new to IDE usage than Solr. So, I don't understand the path errors :(

S

On Mon, Jul 4, 2011 at 3:41 PM, Sowmya V.B.  wrote:

> Hello Tomasso
>
> It was indeed a relative path issue inside eclipse. I key-ed in the total
> path instead of ../../ and it ran without throwing an error.
>
> However, when I gave the path for index as an old lucene index directory's
> path and modified schema.xml accordingly, it still says numDocs = 0, on
> stats.jsp page.
> How can I tell Solr to use an already existing lucene index (which also
> used UIMA)... this is just to check if the integration works and ensure that
> i am on right track
>
> S.
>
>
> On Mon, Jul 4, 2011 at 2:55 PM, Tommaso Teofili  > wrote:
>
>> Hello Sowmya,
>>
>> I've just made a fresh checkout from
>> http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/ then
>> I've
>> done the following:
>>
>> 1. cd solr
>> 2. ant example
>> 3. cd solr/contrib/uima
>> 4. ant dist
>> 5. cd ../../example
>> 6. edit solr/conf/solrconfig.xml
>> 7. copied-pasted lib directives:
>>  
>> 
>> 8. copied-pasted   element at
>> point
>> 3 in README [1] inside solrconfig
>> 9. created the request handler as in point

Re: Problems using Solr with UIMA

2011-07-04 Thread Sowmya V.B.
Hello Tomasso

It was indeed a relative path issue inside eclipse. I key-ed in the total
path instead of ../../ and it ran without throwing an error.

However, when I gave the path for index as an old lucene index directory's
path and modified schema.xml accordingly, it still says numDocs = 0, on
stats.jsp page.
How can I tell Solr to use an already existing lucene index (which also used
UIMA)... this is just to check if the integration works and ensure that i am
on right track

S.

On Mon, Jul 4, 2011 at 2:55 PM, Tommaso Teofili
wrote:

> Hello Sowmya,
>
> I've just made a fresh checkout from
> http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/ then I've
> done the following:
>
> 1. cd solr
> 2. ant example
> 3. cd solr/contrib/uima
> 4. ant dist
> 5. cd ../../example
> 6. edit solr/conf/solrconfig.xml
> 7. copied-pasted lib directives:
>  
> 
> 8. copied-pasted   element at
> point
> 3 in README [1] inside solrconfig
> 9. created the request handler as in point 4 of README
> 10. then ran java -jar start.jar from command line
>
> It worked for me, since you said you were running the webapp from inside
> Eclipse I wonder if that's a classpath problem related to Eclipse.
> Hope this helps,
> Tommaso
>
>
>
> [1] :
>
> https://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/solr/contrib/uima/README.txt
>
>
> 2011/7/4 Sowmya V.B. 
>
> > Hi Tommaso,
> >
> >
> > I am using: Solr 3.3, that got released last week.
> > The Readme on the Solr version I have also had the same info as the read
> me
> > on that link.
> >
> > There exists a lib element in my solrconfig.xml.> regex="apache-solr-uima-\d.*\.jar" />
> >
> > Here is my trace: from this, it seemed like a class not found exception.
> >
> > The server encountered an internal error (Severe errors in solr
> > configuration.
> > Check your log files for more detailed information on what may be wrong.
> If
> > you want solr to continue after configuration errors, change:
> > false in solr.xml
> > -
> > org.apache.solr.common.SolrException: Error loading class
> > 'org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory' at
> >
> >
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
> > at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:423) at
> > org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:445) at
> > org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1569) at
> >
> >
> org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:57)
> > at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447) at
> > org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1553) at
> > org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1547) at
> >
> org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:620)
> > at org.apache.solr.core.SolrCore.(SolrCore.java:561) at
> > org.apache.solr.core.CoreContainer.create(CoreContainer.java:463) at
> > org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) at
> >
> >
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:133)
> > at
> >
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
> > at
> >
> >
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)
> > at
> >
> >
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
> > at
> >
> org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
> > at
> >
> org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
> > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> > java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > at java.lang.Thread.run(Thread.java:680)
> > *Caused by: java.lang.ClassNotFoundException*:
> > org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory at
> > java.net.URLClassLoader$1.run(URLClassLoader.java:202) at
> > java.security.AccessController.doPrivileged(Native Method) at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:307) at
> > java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627) at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:248) at
> > java.lang.Class.forName0(Native Method) at
> > java.lang.Class.forName(Class.java:247) at
> 

Re: Problems using Solr with UIMA

2011-07-04 Thread Tommaso Teofili
Hello Sowmya,

I've just made a fresh checkout from
http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/ then I've
done the following:

1. cd solr
2. ant example
3. cd solr/contrib/uima
4. ant dist
5. cd ../../example
6. edit solr/conf/solrconfig.xml
7. copied-pasted lib directives:
 

8. copied-pasted   element at point
3 in README [1] inside solrconfig
9. created the request handler as in point 4 of README
10. then ran java -jar start.jar from command line

It worked for me, since you said you were running the webapp from inside
Eclipse I wonder if that's a classpath problem related to Eclipse.
Hope this helps,
Tommaso



[1] :
https://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_3/solr/contrib/uima/README.txt


2011/7/4 Sowmya V.B. 

> Hi Tommaso,
>
>
> I am using: Solr 3.3, that got released last week.
> The Readme on the Solr version I have also had the same info as the read me
> on that link.
>
> There exists a lib element in my solrconfig.xml.regex="apache-solr-uima-\d.*\.jar" />
>
> Here is my trace: from this, it seemed like a class not found exception.
>
> The server encountered an internal error (Severe errors in solr
> configuration.
> Check your log files for more detailed information on what may be wrong. If
> you want solr to continue after configuration errors, change:
> false in solr.xml
> -
> org.apache.solr.common.SolrException: Error loading class
> 'org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory' at
>
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
> at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:423) at
> org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:445) at
> org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1569) at
>
> org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:57)
> at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447) at
> org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1553) at
> org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1547) at
> org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:620)
> at org.apache.solr.core.SolrCore.(SolrCore.java:561) at
> org.apache.solr.core.CoreContainer.create(CoreContainer.java:463) at
> org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) at
>
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:133)
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
> at
>
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
> at
>
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
> at
>
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
> at
>
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)
> at
>
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
> at
> org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
> at
> org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:680)
> *Caused by: java.lang.ClassNotFoundException*:
> org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory at
> java.net.URLClassLoader$1.run(URLClassLoader.java:202) at
> java.security.AccessController.doPrivileged(Native Method) at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
> java.lang.ClassLoader.loadClass(ClassLoader.java:307) at
> java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627) at
> java.lang.ClassLoader.loadClass(ClassLoader.java:248) at
> java.lang.Class.forName0(Native Method) at
> java.lang.Class.forName(Class.java:247) at
>
> org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373)
> ... 25 more ) that prevented it from fulfilling this request.
>
>
> Thanks.
> Sowmya.
> On Mon, Jul 4, 2011 at 2:15 PM, Tommaso Teofili
> wrote:
>
> > Hello Sowmya,
> > Is the problem a ClassNotFoundException?
> > If so check there exist a  element referencing the solr-uima jar.
> > Otherwise it may be some configuration error.
> > By the way, which version of Solr are you using ? I ask since you're
> seeing
> > README for trunk but you may be using Solr jars with different versions.
> > Cheers,
> > Tommaso
> >
> > 2011/7/4 Sowmya V.B. 
> >
> > > Hi All
> > >
> > > I tried integrating UIMA in to Solr, following the instructions here:
> > >
> > >
> >
> https://svn.apache.org/repos/asf/lucene/dev/trunk/so

Re: Problems using Solr with UIMA

2011-07-04 Thread Sowmya V.B.
Hi Tommaso,


I am using: Solr 3.3, that got released last week.
The Readme on the Solr version I have also had the same info as the read me
on that link.

There exists a lib element in my solrconfig.xml.   

Here is my trace: from this, it seemed like a class not found exception.

The server encountered an internal error (Severe errors in solr
configuration.
Check your log files for more detailed information on what may be wrong. If
you want solr to continue after configuration errors, change:
false in solr.xml
-
org.apache.solr.common.SolrException: Error loading class
'org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory' at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:423) at
org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:445) at
org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1569) at
org.apache.solr.update.processor.UpdateRequestProcessorChain.init(UpdateRequestProcessorChain.java:57)
at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447) at
org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1553) at
org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1547) at
org.apache.solr.core.SolrCore.loadUpdateProcessorChains(SolrCore.java:620)
at org.apache.solr.core.SolrCore.(SolrCore.java:561) at
org.apache.solr.core.CoreContainer.create(CoreContainer.java:463) at
org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:133)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)
at
org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5240)
at
org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5235)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
java.util.concurrent.FutureTask.run(FutureTask.java:138) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
*Caused by: java.lang.ClassNotFoundException*:
org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory at
java.net.URLClassLoader$1.run(URLClassLoader.java:202) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:190) at
java.lang.ClassLoader.loadClass(ClassLoader.java:307) at
java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627) at
java.lang.ClassLoader.loadClass(ClassLoader.java:248) at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:247) at
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:373)
... 25 more ) that prevented it from fulfilling this request.


Thanks.
Sowmya.
On Mon, Jul 4, 2011 at 2:15 PM, Tommaso Teofili
wrote:

> Hello Sowmya,
> Is the problem a ClassNotFoundException?
> If so check there exist a  element referencing the solr-uima jar.
> Otherwise it may be some configuration error.
> By the way, which version of Solr are you using ? I ask since you're seeing
> README for trunk but you may be using Solr jars with different versions.
> Cheers,
> Tommaso
>
> 2011/7/4 Sowmya V.B. 
>
> > Hi All
> >
> > I tried integrating UIMA in to Solr, following the instructions here:
> >
> >
> https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/contrib/uima/README.txt
> >
> > However, I set  a solrconfig error, when I try to run Solr as a webapp,
> on
> > Eclipse.
> >
> > org.apache.solr.common.SolrException: Error loading class
> > 'org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory'
> >
> > But, the class does exist in the JAR snapshot created from the
> > solr/contrib/uima.
> >
> > Any suggestions? I did search the past archives, but did not find
> anything
> > addressing this particular error...
> >
> > S.
> >
> > --
> > Sowmya V.B.
> > 
> > Losing optimism is blasphemy!
> > http://vbsowmya.wordpress.com
> > 
> >
>



-- 
Sowmya V.B.

Losing optimism is blasphemy!
http://vbsowmya.wordpress.com



Re: Problems using Solr with UIMA

2011-07-04 Thread Tommaso Teofili
Hello Sowmya,
Is the problem a ClassNotFoundException?
If so check there exist a  element referencing the solr-uima jar.
Otherwise it may be some configuration error.
By the way, which version of Solr are you using ? I ask since you're seeing
README for trunk but you may be using Solr jars with different versions.
Cheers,
Tommaso

2011/7/4 Sowmya V.B. 

> Hi All
>
> I tried integrating UIMA in to Solr, following the instructions here:
>
> https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/contrib/uima/README.txt
>
> However, I set  a solrconfig error, when I try to run Solr as a webapp, on
> Eclipse.
>
> org.apache.solr.common.SolrException: Error loading class
> 'org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory'
>
> But, the class does exist in the JAR snapshot created from the
> solr/contrib/uima.
>
> Any suggestions? I did search the past archives, but did not find anything
> addressing this particular error...
>
> S.
>
> --
> Sowmya V.B.
> 
> Losing optimism is blasphemy!
> http://vbsowmya.wordpress.com
> 
>


Problems using Solr with UIMA

2011-07-04 Thread Sowmya V.B.
Hi All

I tried integrating UIMA in to Solr, following the instructions here:
https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/contrib/uima/README.txt

However, I set  a solrconfig error, when I try to run Solr as a webapp, on
Eclipse.

org.apache.solr.common.SolrException: Error loading class
'org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory'

But, the class does exist in the JAR snapshot created from the
solr/contrib/uima.

Any suggestions? I did search the past archives, but did not find anything
addressing this particular error...

S.

-- 
Sowmya V.B.

Losing optimism is blasphemy!
http://vbsowmya.wordpress.com