Agree, a better error message could help to resolve the problem in no time, 
instead of forcing the user to double check every settings until you find the 
wrong one.

Also the official page in the wiki is outdated because it refers to Solr4, 
while for Solr5 you need to do some little modification to the configuration. 
It would be also useful if the official documentation explain to the user how 
to modify the standard configuration, ex removing the OpenCalais api or 
something similar. 

Gian Maria.

-----Original Message-----
From: Jack Krupansky [mailto:jack.krupan...@gmail.com] 
Sent: lunedì 1 febbraio 2016 21:19
To: solr-user@lucene.apache.org
Subject: Re: Error configuring UIMA

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.p
> > ro cessUpdate(JsonLoader.java:143)\n\tat
> > org.apache.solr.handler.loader.JsonLoader$SingleThreadedJsonLoader.l
> > oa
> > 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(UpdateRequestHan
> > dl
> > er.java:98)\n\tat
> > org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(C
> > on tentStreamHandlerBase.java:74)\n\tat
> > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHand
> > le
> > 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\t
> > at 
> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilt
> > er
> > .java:210)\n\tat
> > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilt
> > er
> > .java:179)\n\tat
> > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servle
> > tH
> > 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.ja
> > va
> > :577)\n\tat
> > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHand
> > le
> > r.java:223)\n\tat
> > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHand
> > le
> > r.java:1127)\n\tat
> > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java
> > :5
> > 15)\n\tat
> > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandl
> > er
> > .java:185)\n\tat
> > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandl
> > er
> > .java:1061)\n\tat
> > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.
> > ja
> > va:141)\n\tat
> > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Con
> > te
> > xtHandlerCollection.java:215)\n\tat
> > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCol
> > le
> > 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.ja
> > va
> > :257)\n\tat
> > org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:
> > 540)\n\tat
> > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPo
> > ol
> > .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>     >
> >
> >
>

Reply via email to