Friday, 15 June 2012

tomcat7 - Solr 4.4 / tomcat 7.0.56 - NullpointerException -



tomcat7 - Solr 4.4 / tomcat 7.0.56 - NullpointerException -

i'm trying solr index , running stuck. guess solrdispatchfilter what? exception have catalina.out:

22676 [http-bio-9090-exec-1] error org.apache.solr.servlet.solrdispatchfilter - null:org.apache.solr.common.solrexception: solrcore 'people' not available due init failure: error opening new searcher @ org.apache.solr.core.corecontainer.getcore(corecontainer.java:860) @ org.apache.solr.servlet.solrdispatchfilter.dofilter(solrdispatchfilter.java:251) @ org.apache.solr.servlet.solrdispatchfilter.dofilter(solrdispatchfilter.java:158) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:241) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:208) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:220) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:122) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:170) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:103) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:950) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:116) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:421) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1070) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:611) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:314) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(thread.java:722) caused by: org.apache.solr.common.solrexception: error opening new searcher @ org.apache.solr.core.solrcore.<init>(solrcore.java:835) @ org.apache.solr.core.solrcore.<init>(solrcore.java:629) @ org.apache.solr.core.corecontainer.createfromlocal(corecontainer.java:622) @ org.apache.solr.core.corecontainer.create(corecontainer.java:657) @ org.apache.solr.core.corecontainer$1.call(corecontainer.java:364) @ org.apache.solr.core.corecontainer$1.call(corecontainer.java:356) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.executors$runnableadapter.call(executors.java:471) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) ... 1 more caused by: org.apache.solr.common.solrexception: error opening new searcher @ org.apache.solr.core.solrcore.opennewsearcher(solrcore.java:1522) @ org.apache.solr.core.solrcore.getsearcher(solrcore.java:1634) @ org.apache.solr.core.solrcore.<init>(solrcore.java:810) ... 13 more caused by: org.apache.solr.common.solrexception: error opening reader @ org.apache.solr.search.solrindexsearcher.getreader(solrindexsearcher.java:177) @ org.apache.solr.search.solrindexsearcher.<init>(solrindexsearcher.java:188) @ org.apache.solr.search.solrindexsearcher.<init>(solrindexsearcher.java:184) @ org.apache.solr.core.solrcore.opennewsearcher(solrcore.java:1497) ... 15 more caused by: java.lang.nullpointerexception @ org.apache.lucene.codecs.blocktreetermsreader.<init>(blocktreetermsreader.java:162) @ org.apache.lucene.codecs.lucene41.lucene41postingsformat.fieldsproducer(lucene41postingsformat.java:437) @ org.apache.lucene.codecs.perfield.perfieldpostingsformat$fieldsreader.<init>(perfieldpostingsformat.java:194) @ org.apache.lucene.codecs.perfield.perfieldpostingsformat.fieldsproducer(perfieldpostingsformat.java:233) @ org.apache.lucene.index.segmentcorereaders.<init>(segmentcorereaders.java:127) @ org.apache.lucene.index.segmentreader.<init>(segmentreader.java:56) @ org.apache.lucene.index.standarddirectoryreader$1.dobody(standarddirectoryreader.java:62) @ org.apache.lucene.index.segmentinfos$findsegmentsfile.run(segmentinfos.java:812) @ org.apache.lucene.index.standarddirectoryreader.open(standarddirectoryreader.java:52) @ org.apache.lucene.index.directoryreader.open(directoryreader.java:88) @ org.apache.solr.core.standardindexreaderfactory.newreader(standardindexreaderfactory.java:34) @ org.apache.solr.search.solrindexsearcher.getreader(solrindexsearcher.java:174) ... 18 more

the log localhost.yyyy-mm-dd.log has no exception.

i have tried set requestdispatcher handleselect="true" in solrconfig.xml both true , false , comment out nil helps.

any ideas?

edit: future reference had corrupt index, not sure how exception linked anyhow solved fixing index.

i ran issue today. i'm using solr 4.10.2

this page helpful. got similar error message in solr log file. deleted files in /solr.4.10.2/blah_blah/solr/core_name/data/index/. replace blah_blah , core_name directory name , core name have. then, restarted solr. then, performed data-import full-index alternative core cause of error.

tomcat7 solr4

No comments:

Post a Comment