lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject Inserting shards in overridden SearchComponent prepare method yields null pointer
Date Tue, 01 Jun 2010 20:20:20 GMT
The insert shards code is as follows:

ModifiableSolrParams modParams = new ModifiableSolrParams(params);
modParams.set("shards", shards);
rb.req.setParams(modParams);

Where shards is a valid single shard pseudo URL.

Stacktrace:

HTTP Status 500 - null java.lang.NullPointerException at
org.apache.solr.handler.component.QueryComponent.createRetrieveDocs(QueryComponent.java:497)
at org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:298)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:234)
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:342)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:245)
at

Mime
View raw message