Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 58EFE200C51 for ; Sun, 9 Apr 2017 17:49:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5783E160BA4; Sun, 9 Apr 2017 15:49:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 791C7160B7D for ; Sun, 9 Apr 2017 17:49:15 +0200 (CEST) Received: (qmail 8804 invoked by uid 500); 9 Apr 2017 15:49:14 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 8793 invoked by uid 99); 9 Apr 2017 15:49:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Apr 2017 15:49:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 036301A077D for ; Sun, 9 Apr 2017 15:49:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.424 X-Spam-Level: ** X-Spam-Status: No, score=2.424 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, FROM_MISSPACED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id B3ZZAg2UUXDQ for ; Sun, 9 Apr 2017 15:49:12 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 458795F1E7 for ; Sun, 9 Apr 2017 15:49:12 +0000 (UTC) Received: from localhost (cust-asf.ponee.io [163.172.22.183]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7AD28E0069 for ; Sun, 9 Apr 2017 15:49:11 +0000 (UTC) MIME-Version: 1.0 Message-ID: Subject: Integrating UIMA-OpenNLP pear file with Solr Request Handler References: From: "arun abraham" In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: 396f8b4c7859ff9bc20dbb8498c2a20528c0642e Date: Sun, 09 Apr 2017 15:49:10 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Sun, 09 Apr 2017 15:49:16 -0000 Hi, I am trying to integrate Solr - UIMA with openNLP support. I had posted this query earlier.I have been working around this to make it work.But no luck. PF the thread name: Exception-while-integrating-UIMA-with-Solr I have created the pear file(packaged and installed)- opennlp.uima.OpenNlpTextAnalyzer_pear.xml I am using openNLP -uima annotators for document analysis. The pear(xml) file is located at path:D:\temp\opennlp.uima.OpenNlpTextAnalyzer folder structure: desc,lib,metadata,models and the pear file itself. content of pear file: D:\temp\opennlp.uima.OpenNlpTextAnalyzer I have tested the pear file with CAS visual debugger and could see the analysis. I referred the https://cwiki.apache.org/confluence/display/solr/UIMA+Integration for integration. I am providing the location path of the pear file in the AE tag. D/:temp/opennlp.uima.OpenNlpTextAnalyzer/opennlp.uima.OpenNlpTextAnalyzer_pear.xml But when I try to index documents,following exception is thrown: 2017-03-25 17:43:35.263 INFO (qtp1389647288-18) [ x:star] o.a.s.c.S.Request [star] webapp=/solr path=/update params={waitSearcher=true&commit=true&softCommit=false&wt=javabin&version=2} status=500 QTime=3 2017-03-25 17:43:35.263 ERROR (qtp1389647288-18) [ x:star] o.a.s.s.HttpSolrCall null:org.apache.solr.common.SolrException: org.apache.uima.resource.ResourceInitializationException at org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory.getInstance(UIMAUpdateRequestProcessorFactory.java:63) at org.apache.solr.update.processor.UpdateRequestProcessorChain.createProcessor(UpdateRequestProcessorChain.java:216) at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:55) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.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(SolrDispatchFilter.java:257) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1160) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1092) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.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.java:244) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:246) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:156) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.uima.resource.ResourceInitializationException at org.apache.lucene.analysis.uima.ae.BasicAEProvider.getAE(BasicAEProvider.java:58) at org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory.getInstance(UIMAUpdateRequestProcessorFactory.java:60) ... 32 more Caused by: java.lang.NullPointerException at org.apache.uima.util.XMLInputSource.(XMLInputSource.java:118) at org.apache.lucene.analysis.uima.ae.BasicAEProvider.getInputSource(BasicAEProvider.java:84) at org.apache.lucene.analysis.uima.ae.BasicAEProvider.getAE(BasicAEProvider.java:50) ... 33 more I could see that its not reading the pear(xml) file, but I am not able to find the cause for it.Am I giving the AE incorrectly?Kindly help me on the same. Thanks and Regards, Arun