Re: NULL POINTER EXCEPTION WITH SOLR SUGGESTER
What URL did you use? What is your data like? I tried your exact config but with the field name of name rather than spell_check, using the Solr 4.0 example. Then I added the following data: curl http://localhost:8983/solr/update?commit=true -H 'Content-type:application/csv' -d ' id,name sug-1,aardvark abacus ball bill cat cello sug-2,abate accord band bell cattle check sug-3,adorn border clean clock' Then I issued a suggest request using curl and got the expected response: Jack Krupansky@JackKrupansky ~ $ curl http://localhost:8983/solr/suggest?q=bindent=true; ?xml version=1.0 encoding=UTF-8? response lst name=responseHeader int name=status0/int int name=QTime1/int /lst lst name=spellcheck lst name=suggestions lst name=b int name=numFound5/int int name=startOffset0/int int name=endOffset1/int arr name=suggestion strball/str strband/str strbell/str strbill/str strborder/str /arr /lst str name=collationball/str /lst /lst /response So, try that simple example first and make sure it works for you, then see what else is different in your failing scenario. -- Jack Krupansky -Original Message- From: obi240 Sent: Saturday, January 12, 2013 12:15 PM To: solr-user@lucene.apache.org Subject: NULL POINTER EXCEPTION WITH SOLR SUGGESTER Hi, I'm currently working with SOLR 4. I tried calling my suggester feature and got the error below: 5001java.lang.NullPointerException at org.apache.lucene.search.suggest.fst.FSTCompletionLookup.lookup(FSTCompletionLookup.java:237) at org.apache.solr.spelling.suggest.Suggester.getSuggestions(Suggester.java:190) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:172) at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:206) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1699) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:455) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:276) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) 500 My suggest searchcomponent and request handler are as below: searchComponent class=solr.SpellCheckComponent name=suggest lst name=spellchecker str name=namesuggest/str str name=classnameorg.apache.solr.spelling.suggest.Suggester/str str name=lookupImplorg.apache.solr.spelling.suggest.fst.FSTLookup/str str name=fieldspell_check/str float name=threshold0.005/float str name=buildOnCommittrue/str /lst /searchComponent requestHandler class=org.apache.solr.handler.component.SearchHandler name=/suggest lst name=defaults str name=spellchecktrue/str str name=spellcheck.dictionarysuggest/str str name=spellcheck.onlyMorePopulartrue/str str name=spellcheck.count5/str str name=spellcheck.collatetrue/str /lst arr name=components strsuggest/str /arr /requestHandler Can anyone point out what I'm doing wrong here? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/NULL-POINTER-EXCEPTION-WITH-SOLR-SUGGESTER-tp4032763.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Null Pointer Exception in SOLR
Hmmm, can we have some more details here? What version of Solr? What exactly did you do in the UI? What was the state of your index (i.e. adding documents from some other process? etc.). Best Erick On Wed, May 2, 2012 at 8:17 AM, mechravi25 mechrav...@yahoo.co.in wrote: Hi, When I tried to remove a data from UI (which will in turn hit SOLR), the whole application got stuck up. When we took the log files of the UI, we could see that this set of requests did not reach SOLR itself. In the SOLR log file, we were able to find the following exception occuring at the same time. SEVERE: org.apache.solr.common.SolrException: null__javalangNullPointerException_ null__javalangNullPointerException_ request: http://solr/coreX/select at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request at org.apache.solr.handler.component.HttpCommComponent$1.call at org.apache.solr.handler.component.HttpCommComponent$1.call at java.util.concurrent.FutureTask$Sync.innerRun at java.util.concurrent.FutureTask.run at java.util.concurrent.Executors$RunnableAdapter.call at java.util.concurrent.FutureTask$Sync.innerRun at java.util.concurrent.FutureTask.run at java.util.concurrent.ThreadPoolExecutor$Worker.runTask at java.util.concurrent.ThreadPoolExecutor$Worker.run at java.lang.Thread.run This situation resulted for another few hours. No one was able to perform any operation with the application and If any one tried to perform any action, it resulted in the above exception during that period. But, this situation resolved by itself after few hours and it started working like normal. Can you tell me if this situation was due to deadlock condition or was it due to the CPU utilization going beyond 100%? If it was due to the deadloack, then why did we not get any such messages in the log files?Or is it due to some other problem?Am I missing anything? Can you guide me on this? -- View this message in context: http://lucene.472066.n3.nabble.com/Null-Pointer-Exception-in-SOLR-tp3954952.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Null Pointer Exception in SOLR
Hi, I'm using the following configuration for solr Solr Specification Version: 1.4.0.2010.01.13.08.09.44 Solr Implementation Version: 1.5-dev exported - yonik - 2010-01-13 08:09:44 Lucene Specification Version: 2.9.1-dev Lucene Implementation Version: 2.9.1-dev 888785 - 2009-12-09 18:03:31 Current Time: Thu May 03 05:38:12 MST 2012 Server Start Time:Wed May 02 03:45:58 MST 2012 I was trying to delete a part of a document from the UI. In this situation, the index file got updated only after 2hrs when the application unfroze. Here, I also observed that I was getting the following Highlighting error mostly. Is there a problem with using this highlighting feature? INFO: [corex] webapp=/solr path=/select params={facet=truef.CFacet.facet.limit=160hl.fl=*wt=javabinhl=falserows=2version=1f.rFacet.facet.limit=160fl=uxid,schstart=0f.tFacet.facet.limit=160q=uxid:Plan for Todayfacet.field=CFacetfacet.field=tFacetfacet.field=rFacet?=isShard=truefs=true} hits=1 status=0 QTime=6 SEVERE: java.lang.NullPointerException *at org.apache.solr.highlight.SolrHighlighter.getHighlightFields at org.apache.solr.highlight.DefaultSolrHighlighter.doHighlighting* at org.apache.solr.handler.component.HighlightComponent.process at org.apache.solr.handler.component.SearchHandler.handleRequestBody at org.apache.solr.handler.RequestHandlerBase.handleRequest at org.apache.solr.core.SolrCore.execute at org.apache.solr.servlet.SolrDispatchFilter.execute at org.apache.solr.servlet.SolrDispatchFilter.doFilter at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter at org.mortbay.jetty.servlet.ServletHandler.handle at org.mortbay.jetty.security.SecurityHandler.handle at org.mortbay.jetty.servlet.SessionHandler.handle at org.mortbay.jetty.handler.ContextHandler.handle at org.mortbay.jetty.webapp.WebAppContext.handle at org.mortbay.jetty.handler.ContextHandlerCollection.handle at org.mortbay.jetty.handler.HandlerCollection.handle at org.mortbay.jetty.handler.HandlerWrapper.handle at org.mortbay.jetty.Server.handle at org.mortbay.jetty.HttpConnection.handleRequest at org.mortbay.jetty.HttpConnection$RequestHandler.content at org.mortbay.jetty.HttpParser.parseNext at org.mortbay.jetty.HttpParser.parseAvailable at org.mortbay.jetty.HttpConnection.handle at org.mortbay.jetty.bio.SocketConnector$Connection.run at org.mortbay.thread.BoundedThreadPool$PoolThread.run -- View this message in context: http://lucene.472066.n3.nabble.com/Null-Pointer-Exception-in-SOLR-tp3954952p3959151.html Sent from the Solr - User mailing list archive at Nabble.com.