lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: NPE in MoreLikeThis referenced doc not found and debugQuery=True
Date Tue, 15 Dec 2009 15:58:36 GMT
On Thu, Dec 10, 2009 at 6:34 PM, david.stuart@progressivealliance.co.uk <
david.stuart@progressivealliance.co.uk> wrote:

> Hi All,
>
> When I do a specific MLT search on a document with debugQuery=True I am
> getting
> a NullPoniterException both on screen and in my catalina logs. The query is
> as
> follows
>
>
> http://localhost:8080/solr2/select/?mlt.minwl=3&mlt.fl=body&mlt.mintf=1&mlt.maxwl=15&mlt.maxqt=20&version=1.2&rows=5&mlt.mindf=1&fl=nid,title,path,url,digest,teaser&start=0&q=nid:16036&qt=mlt&debugQuery=true
>
> Is this desired behavior?
>
> java.lang.RuntimeException: java.lang.NullPointerException
>     at org.apache.solr.search.QueryParsing.toString(QueryParsing.java:470)
>     at
>
> org.apache.solr.util.SolrPluginUtils.doStandardDebug(SolrPluginUtils.java:399)
>     at
>
> org.apache.solr.handler.MoreLikeThisHandler.handleRequestBody(MoreLikeThisHandle
> r.java:189)
>     at
>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java
> :131)
>     at org.apache.solr.core.SolrCore.execute(SolrCore.java:1204)
>     at
>
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:303)
>     at
>
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:232)
>     at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
> erChain.java:235)
>     at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
> java:206)
>     at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
> 33)
>     at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
> 91)
>     at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>     at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
> )
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
>     at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
> otocol.java:583)
>     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>     at java.lang.Thread.run(Thread.java:637)
> Caused by: java.lang.NullPointerException
>     at org.apache.solr.search.QueryParsing.toString(QueryParsing.java:439)
>     at org.apache.solr.search.QueryParsing.toString(QueryParsing.java:467)
>     ... 18 more
>
>
> Apologies if this has been discussed or deemed desired, but thought I would
> mention this and offer a patch as a entry into helping with the project.
>
>
Thanks for reporting this Dave. It'd be great if you can open a Jira issue
and attach a unit test reproducing this issue. A fix would be even better :)

http://wiki.apache.org/solr/HowToContribute

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message