Don't be too hard on yourself.

Sometimes, mistakes like that can happen even to the most brilliant and most
experienced.

On Thu, Oct 1, 2009 at 2:15 PM, Andrew Clegg <andrew.cl...@gmail.com> wrote:

>
> Sorry! I'm officially a complete idiot.
>
> Personally I'd try to catch things like that and rethrow a
> 'QueryParseException' or something -- but don't feel under any obligation
> to
> listen to me because, well, I'm an idiot.
>
> Thanks :-)
>
> Andrew.
>
>
> Erik Hatcher-4 wrote:
> >
> > don't forget q=...  :)
> >
> >       Erik
> >
> > On Oct 1, 2009, at 9:49 AM, Andrew Clegg wrote:
> >
> >>
> >> Hi folks,
> >>
> >> I'm using the 2009-09-30 build, and any single or double quotes in
> >> the query
> >> string cause an NPE. Is this normal behaviour? I never tried it with
> >> my
> >> previous installation.
> >>
> >> Example:
> >>
> >> http://myserver:8080/solr/select/?title:%22Creatine+kinase%22
> >>
> >> (I've also tried without the URL encoding, no difference)
> >>
> >> Response:
> >>
> >> HTTP Status 500 - null java.lang.NullPointerException at
> >> java.io.StringReader.<init>(StringReader.java:33) at
> >> org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:
> >> 173) at
> >> org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:
> >> 78) at
> >> org.apache.solr.search.QParser.getQuery(QParser.java:131) at
> >> org
> >> .apache
> >> .solr.handler.component.QueryComponent.prepare(QueryComponent.java:89)
> >> at
> >> org
> >> .apache
> >> .solr
> >> .handler
> >> .component.SearchHandler.handleRequestBody(SearchHandler.java:174)
> >> at
> >> org
> >> .apache
> >> .solr
> >> .handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
> >> at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at
> >> org
> >> .apache
> >> .solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
> >> at
> >> org
> >> .apache
> >> .solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
> >> at
> >> org
> >> .apache
> >> .catalina
> >> .core
> >> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> >> 235)
> >> at
> >> org
> >> .apache
> >> .catalina
> >> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >> at
> >> org
> >> .apache
> >> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> >> 233)
> >> at
> >> org
> >> .apache
> >> .catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> >> 175)
> >> at
> >> org
> >> .apache
> >> .catalina.valves.RequestFilterValve.process(RequestFilterValve.java:
> >> 269)
> >> at
> >> org
> >> .apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:
> >> 81)
> >> at
> >> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
> >> 568)
> >> at
> >> org
> >> .apache
> >> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> >> at
> >> org
> >> .jstripe
> >> .tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
> >> at
> >> org
> >> .jstripe
> >> .tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
> >> at
> >> org
> >> .jstripe
> >> .tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
> >> at
> >> org
> >> .jstripe
> >> .tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
> >> 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:
> >> 844)
> >> at
> >> org.apache.coyote.http11.Http11Protocol
> >> $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >> at org.apache.tomcat.util.net.JIoEndpoint
> >> $Worker.run(JIoEndpoint.java:447)
> >> at java.lang.Thread.run(Thread.java:619)
> >>
> >> Single quotes have the same effect.
> >>
> >> Is there another way to specify exact phrases?
> >>
> >> Thanks,
> >>
> >> Andrew.
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Quotes-in-query-string-cause-NullPointerException-tp25702207p25702207.html
> >> Sent from the Solr - User mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Quotes-in-query-string-cause-NullPointerException-tp25702207p25704050.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
"Good Enough" is not good enough.
To give anything less than your best is to sacrifice the gift.
Quality First. Measure Twice. Cut Once.

Reply via email to