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 Eugene Dzhurinsky <bo...@redwerk.com> on 2009/11/17 17:09:56 UTC
java.lang.NullPointerException at
org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:421)
Hi there!
I am trying to test the distributed search on 2 servers. I've created simple
application which adds sample documents to 2 different solr servers (version 1.3.0).
While it is possible to search for certain keyphrase on any of these servers,
I am getting weird error when trying to search on both of these servers (like
it was described at http://wiki.apache.org/solr/DistributedSearch)
HTTP ERROR: 500
null
java.lang.NullPointerException
at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:421)
at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:265)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:264)
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.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
These servers are using the same configuration. What may cause this error?
Thank you in advance.
--
Eugene N Dzhurinsky
Re: java.lang.NullPointerException at
org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:421)
Posted by "asis.indian@gmail.com" <as...@gmail.com>.
Hi
thanks for posting this, was getting same error and had same stored false
ID.
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Re: java.lang.NullPointerException at
org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:421)
Posted by Eugene Dzhurinsky <bo...@redwerk.com>.
On Tue, Nov 17, 2009 at 06:09:56PM +0200, Eugene Dzhurinsky wrote:
> java.lang.NullPointerException
> at org.apache.solr.handler.component.QueryComponent.mergeIds(QueryComponent.java:421)
I compared schema.xml from Solr installation package with the one I created,
and found out that my unique key was not marked as storable. After I made it
storable and re-indexed things - everything started to work fine. Just to
record this for someone who may experience the same problem.
--
Eugene N Dzhurinsky