Yeah, that's exactly the kind of innocent user error that UIMA simply has no code to detect and reasonably report.
-- Jack Krupansky On Mon, Feb 1, 2016 at 12:13 PM, Gian Maria Ricci - aka Alkampfer < alkamp...@nablasoft.com> wrote: > It was a stupid error, I've mistyped the logField configuration in UIMA > > I'd like error not to use the Id but another field, but I've mistyped in > solrconfig.xml and then I've got that error. > > Gian Maria. > > -- > Gian Maria Ricci > Cell: +39 320 0136949 > > > -----Original Message----- > From: Jack Krupansky [mailto:jack.krupan...@gmail.com] > Sent: lunedì 1 febbraio 2016 16:54 > To: solr-user@lucene.apache.org > Subject: Re: Error configuring UIMA > > What was the specific error you had to correct? The NPE appears to be in > exception handling code so the actual exception is not indicated in the > stack trace. > > The UIMA code is rather poor in terms of failing to check and report > missing parameters or bad parameters which in turn reference data that does > not exist. > > -- Jack Krupansky > > On Mon, Feb 1, 2016 at 10:18 AM, alkampfer <alkamp...@nablasoft.com> > wrote: > > > > > > > From: outlook_288fbf38c031d...@outlook.com > > To: solr-user@lucene.apache.org > > Cc: > > Date: Mon, 1 Feb 2016 15:59:02 +0100 > > Subject: Error configuring UIMA > > > > I've solved the problem, it was caused by wrong configuration in > > solrconfig.xml. > > > > Thanks. > > > > > > > > > Hi,> > I’ve followed the guide > > https://cwiki.apache.org/confluence/display/solr/UIMA+Integration to > > setup a UIMA integration to test this feature. The doc is not updated > > for Solr5, I’ve followed the latest comment to that guide and did some > > other changes but now each request to /update handler fails with the > > following error.> > Someone have a clue on what I did wrong?> > Thanks > in advance.> > > > {> "responseHeader": {> "status": 500,> "QTime": 443> },> > > "error": {> "trace": "java.lang.NullPointerException\n\tat > > org.apache.solr.uima.processor.UIMAUpdateRequestProcessor.processAdd(U > > IMAUpdateRequestProcessor.java:105)\n\tat > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.pro > > cessUpdate(JsonLoader.java:143)\n\tat > > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.loa > > d(JsonLoader.java:113)\n\tat > > org.apache.solr.handler.loader.JsonLoader.load(JsonLoader.java:76)\n\t > > at > > org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandl > > er.java:98)\n\tat > > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(Con > > tentStreamHandlerBase.java:74)\n\tat > > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandle > > rBase.java:143)\n\tat > > org.apache.solr.core.SolrCore.execute(SolrCore.java:2068)\n\tat > > org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:669)\n\ > > tat > > org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:462)\n\tat > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter > > .java:210)\n\tat > > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter > > .java:179)\n\tat > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH > > andler.java:1652)\n\tat > > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java: > > 585)\n\tat > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja > > va:143)\n\tat > > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java > > :577)\n\tat > > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandle > > r.java:223)\n\tat > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandle > > r.java:1127)\n\tat > > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:5 > > 15)\n\tat > > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler > > .java:185)\n\tat > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler > > .java:1061)\n\tat > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.ja > > va:141)\n\tat > > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Conte > > xtHandlerCollection.java:215)\n\tat > > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerColle > > ction.java:110)\n\tat > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper. > > java:97)\n\tat > > org.eclipse.jetty.server.Server.handle(Server.java:499)\n\tat > > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\n\ta > > t > > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java > > :257)\n\tat > > org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java: > > 540)\n\tat > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool > > .java:635)\n\tat > > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)\n\tat > > java.lang.Thread.run(Thread.java:745)\n",> "code": 500> }> }> > -- > > > Gian Maria Ricci > > > Cell: +39 320 0136949> > > > > > >