AnsweredAssumed Answered

when delete non_empty folder,search has exception

Question asked by mathcaoli on Sep 26, 2012
Hello,everyone:

I test alfresco community 4.0.d AND alfresco community 4.0.e with (tomcat + postgres + solr + suse11 linux),

I create folder  "testone" by alfresco Explorer "create Space",and upload test file "index_test.txt" in "testone" folder, at this time ,I search by solr admin, everything is OK,the "testone" and "index_test.txt" indexed in solr.

but when I delete the folder "testone",the alfresco log display :
"Sep 26, 2012 9:52:30 AM org.alfresco.solr.tracker.CoreTracker indexNode
WARNING: Node index failed and skipped for 847 in Tx 64"

when I search by solr admin ,the new EXCEPTIONSTACK Doc in the search result:
{
    "INTXID":["64"],
    "ID":["ERROR-847"],
    "EXCEPTIONSTACK":["java.lang.NullPointerException\n\tat org.alfresco.solr.tracker.CoreTracker.mayHaveChildren(CoreTracker.java:2518)\n\tat org.alfresco.solr.tracker.CoreTracker.updateDescendantAuxDocs(CoreTracker.java:2434)\n\tat org.alfresco.solr.tracker.CoreTracker.indexNode(CoreTracker.java:2084)\n\tat org.alfresco.solr.tracker.MultiThreadedCoreTracker$NodeIndexWorkerRunnable.doWork(MultiThreadedCoreTracker.java:796)\n\tat org.alfresco.solr.tracker.MultiThreadedCoreTracker$AbstractWorkerRunnable.run(MultiThreadedCoreTracker.java:737)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)\n\tat java.lang.Thread.run(Thread.java:662)\n"],
    "DBID":["847"]},

and when I search something by alfresco Explorer,the alfresco log display fellow error info:

Sep 26, 2012 9:52:34 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
        at org.alfresco.solr.query.SolrCachingPathScorer.createPathScorer(SolrCachingPathScorer.java:75)
        at org.alfresco.solr.query.SolrCachingPathQuery$SolrCachingPathQueryWeight.scorer(SolrCachingPathQuery.java:195)
        at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297)
        at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297)
        at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:268)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:258)
        at org.apache.lucene.search.Searcher.search(Searcher.java:171)
        at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:988)
        at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:884)
        at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341)
        at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
        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:338)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at java.lang.Thread.run(Thread.java:662)

Sep 26, 2012 9:52:34 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
        at org.alfresco.solr.query.SolrCachingPathScorer.createPathScorer(SolrCachingPathScorer.java:75)
        at org.alfresco.solr.query.SolrCachingPathQuery$SolrCachingPathQueryWeight.scorer(SolrCachingPathQuery.java:195)
        at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297)
        at org.apache.lucene.search.BooleanQuery$BooleanWeight.scorer(BooleanQuery.java:297)
        at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:268)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:258)
        at org.apache.lucene.search.Searcher.search(Searcher.java:171)
        at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:988)
        at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:884)
        at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:341)
        at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:182)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
        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:338)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)

I test more than once,this problem happened again, I want to know why this problem happen and how to resolved? thank you.

Outcomes