You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Cody Caughlan <to...@gmail.com> on 2007/11/20 19:27:26 UTC

BooleanQuery exception

I am trying to run a very simple query via the Admin interface and  
receive the exception below.

The query is:

description_t:guard AND title_t:help

I am using dynamic fields (hence the underscored suffix).

Any ideas?

Thanks in advance
/cody

Nov 19, 2007 3:01:31 PM org.apache.solr.core.SolrException log
SEVERE: java.lang.NoSuchMethodError:  
org.apache.lucene.search.BooleanQuery.clauses()Ljava/util/List;
         at  
org.apache.solr.search.QueryUtils.isNegative(QueryUtils.java:38)
         at  
org.apache.solr.search.QueryUtils.makeQueryable(QueryUtils.java:92)
         at  
org 
.apache 
.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:827)
         at  
org 
.apache 
.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:805)
         at  
org 
.apache 
.solr.search.SolrIndexSearcher.getDocList(SolrIndexSearcher.java:698)
         at  
org 
.apache 
.solr 
.request 
.StandardRequestHandler.handleRequestBody(StandardRequestHandler.java: 
122)
         at  
org 
.apache 
.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java: 
77)
         at org.apache.solr.core.SolrCore.execute(SolrCore.java:658)
         at  
org 
.apache 
.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:191)
         at  
org 
.apache 
.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:159)
         at  
org 
.apache 
.catalina 
.core 
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 
215)
         at  
org 
.apache 
.catalina 
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at  
org 
.apache 
.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 
213)
         at  
org 
.apache 
.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 
174)
         at  
org 
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 
127)
         at  
org 
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 
117)
         at  
org 
.apache 
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at  
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
151)
         at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
874)
         at org.apache.coyote.http11.Http11BaseProtocol 
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at  
org 
.apache 
.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at  
org 
.apache 
.tomcat 
.util 
.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java: 
81)
         at org.apache.tomcat.util.threads.ThreadPool 
$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:619)



Re: BooleanQuery exception

Posted by Chris Hostetter <ho...@fucit.org>.
: Nov 19, 2007 3:01:31 PM org.apache.solr.core.SolrException log
: SEVERE: java.lang.NoSuchMethodError:
: org.apache.lucene.search.BooleanQuery.clauses()Ljava/util/List;
:         at org.apache.solr.search.QueryUtils.isNegative(QueryUtils.java:38)

that's a pretty gnarly exception.  unless there was an earlier exception
you aren't showing us, that suggests that the version of the BooleanQuery
class loaded by Solr at runtime isn't the same version it was compiled 
against.  have you odn't anything funky with your classpath? like swap he 
lucene jar in the solr.war, or put another lucene jar somewhere else in 
your your classpath when running your servlet container?
          




-Hoss