AnsweredAssumed Answered

fail import ldap users: SearcherException:Index has no root

Question asked by bparis on Nov 16, 2006
Hi,

I first succesfully imported users into alfresco from LDAP with alfresco synchronization.  After making lot of  changes in ldap-authentication-context.xml and restarting tomcat several times I now get errors on import after the ExportSourceImporter-xxx.xml has been completely writen.  I really don't understand what this message mean.
I've tried to reload a brandnew ldap-authentication-context.xml file but the SearcherException exception is still threw. 
Could someone tell me how to throw this problem away ?


….
13:51:37,164 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for mhorlin
13:51:37,205 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for tuy
13:51:37,246 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for fer
13:51:37,287 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for hom
13:51:37,328 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for vande
13:51:37,389 DEBUG [org.alfresco.repo.importer.view.ViewParser] Pushed ParentContext[parent=workspace://SpacesStore/bb635f9d-3e71-11db-bddf-2fc1e99b8205,assocType=null]
13:51:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]
…..

13:51:57,110 DEBUG [org.alfresco.repo.importer.view.ViewParser]  Pushed NodeContext[childName=cm:person,type={http://www.alfresco.org/model/content/1.0}person,nodeRef=null,aspects=[],parentContext=ParentContext[parent=workspace://SpacesStore/bb635f9d-3e71-11db-bddf-2fc1e99b8205,assocType=null]]
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed aspect {http://www.alfresco.org/model/content/1.0}ownable
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}owner
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}userName
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}firstName
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}lastName
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}email
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}organizationId
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}homeFolder
13:51:57,111 DEBUG [org.alfresco.repo.importer.view.ViewParser]  Popped NodeContext[childName=cm:person,type={http://www.alfresco.org/model/content/1.0}person,nodeRef=null,aspects=[ClassDef [ name={http://www.alfresco.org/model/content/1.0}ownable]],parentContext=ParentContext[parent=workspace://SpacesStore/bb635f9d-3e71-11db-bddf-2fc1e99b8205,assocType=null]]
13:51:58,099 DEBUG [org.alfresco.repo.importer.view.ViewParser] Popped ParentContext[parent=workspace://SpacesStore/bb635f9d-3e71-11db-bddf-2fc1e99b8205,assocType=null]
13:51:58,442 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.ldapPeopleJobDetail threw an unhandled Exception:
org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:206)
   at org.alfresco.repo.importer.ImporterJob.execute(ImporterJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: org.alfresco.repo.search.SearcherException: Index has no root node.  Check that the correct index locations are being used.
   at org.alfresco.repo.search.impl.lucene.query.LeafScorer.initialise(LeafScorer.java:224)
   at org.alfresco.repo.search.impl.lucene.query.LeafScorer.<init>(LeafScorer.java:134)
   at org.alfresco.repo.search.impl.lucene.query.PathScorer.createPathScorer(PathScorer.java:159)
   at org.alfresco.repo.search.impl.lucene.query.PathQuery$StructuredFieldWeight.scorer(PathQuery.java:250)
   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:85)
   at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64)
   at org.apache.lucene.search.Hits.<init>(Hits.java:43)
   at org.apache.lucene.search.Searcher.search(Searcher.java:33)
   at org.apache.lucene.search.Searcher.search(Searcher.java:27)
   at org.alfresco.repo.search.impl.lucene.LuceneSearcherImpl.query(LuceneSearcherImpl.java:254)
   at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:77)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.resolveImportedNodeRef(ImporterComponent.java:1007)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.end(ImporterComponent.java:730)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:345)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:211)
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:174)
   … 3 more
13:51:58,443 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.ldapPeopleJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.repo.importer.ExportSourceImporterException: Failed to import]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
* Nested Exception (Underlying Cause) —————
org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:206)
   at org.alfresco.repo.importer.ImporterJob.execute(ImporterJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: org.alfresco.repo.search.SearcherException: Index has no root node.  Check that the correct index locations are being used.
   at org.alfresco.repo.search.impl.lucene.query.LeafScorer.initialise(LeafScorer.java:224)
   at org.alfresco.repo.search.impl.lucene.query.LeafScorer.<init>(LeafScorer.java:134)
   at org.alfresco.repo.search.impl.lucene.query.PathScorer.createPathScorer(PathScorer.java:159)
   at org.alfresco.repo.search.impl.lucene.query.PathQuery$StructuredFieldWeight.scorer(PathQuery.java:250)
   at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:85)
   at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:64)
   at org.apache.lucene.search.Hits.<init>(Hits.java:43)
   at org.apache.lucene.search.Searcher.search(Searcher.java:33)
   at org.apache.lucene.search.Searcher.search(Searcher.java:27)
   at org.alfresco.repo.search.impl.lucene.LuceneSearcherImpl.query(LuceneSearcherImpl.java:254)
   at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:77)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.resolveImportedNodeRef(ImporterComponent.java:1007)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.end(ImporterComponent.java:730)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:345)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:211)
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:174)
   … 3 more


Thanks for any help,
Bernard

Outcomes