Re: NPE in MoreLikeThis referenced doc not found and debugQuery=True

2010-01-05 Thread Chris Hostetter

: 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=3mlt.fl=bodymlt.mintf=1mlt.maxwl=15mlt.maxqt=20version=1.2rows=5mlt.mindf=1fl=nid,title,path,url,digest,teaserstart=0q=nid:16036qt=mltdebugQuery=true
: 
: Is this desired behavior? 

An NPE is never desired behavior ... can you elaborate on which version of 
Solr you are using?  and to clarify: you are saying you only get this when 
debugQuery=true ... correct?

: org.apache.solr.util.SolrPluginUtils.doStandardDebug(SolrPluginUtils.java:399)
:     at
: 
org.apache.solr.handler.MoreLikeThisHandler.handleRequestBody(MoreLikeThisHandle
: r.java:189)

The MLT Handler (not to be confused with the MLT Component) does things a 
bit differnetly then most other handlers, so it's not suprising that 
something like this might have gotten overlooked.  skimming the code i 
don't see any obvious reason why it should encounter an NPE however.

can you reproduce this using hte example configs/data, or is it something 
special about your data?



-Hoss


Re: NPE in MoreLikeThis referenced doc not found and debugQuery=True

2009-12-15 Thread Shalin Shekhar Mangar
On Thu, Dec 10, 2009 at 6:34 PM, david.stu...@progressivealliance.co.uk 
david.stu...@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=3mlt.fl=bodymlt.mintf=1mlt.maxwl=15mlt.maxqt=20version=1.2rows=5mlt.mindf=1fl=nid,title,path,url,digest,teaserstart=0q=nid:16036qt=mltdebugQuery=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.


NPE in MoreLikeThis referenced doc not found and debugQuery=True

2009-12-10 Thread david.stu...@progressivealliance.co.uk
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=3mlt.fl=bodymlt.mintf=1mlt.maxwl=15mlt.maxqt=20version=1.2rows=5mlt.mindf=1fl=nid,title,path,url,digest,teaserstart=0q=nid:16036qt=mltdebugQuery=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.

Regards,

Dave