AnsweredAssumed Answered

je suis dans un premier temps parvenu à importer...

Question asked by unknown-user on Nov 16, 2006
Bonjour,

je suis dans un premier temps parvenu à importer des utilisateurs depuis LDAP dans alfresco (1.3.0) via la synchronisation. 
Après plusieurs tests et changements dans le fichier ldap-authentication-context.xml avec chaque fois  redémarrage de tomcat, l'import provoque une exception après que le fichier ExportSourceImporter-xxx.xml ait été complètement créé et rempli.
J'ai essayé avec un nouveau fichier ldap-authentication-context.xml mais le problème persiste.

Quelqu'un aurait-il une idée de ce qui se passe et comment résoudre ce problème ?
Je n'ai rien modifié dans le bean "ldapPeopleImport" par rapport à sa définition originale, sauf "clearAllChildren" que j'ai tenté de mettre à true.  Je n'importe pas les groupes.

….
13:51:37,164 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for tintin
13:51:37,205 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for haddock
13:51:37,246 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for tournesol
13:51:37,287 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for dupont
13:51:37,328 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for dupond
….. etc …
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]  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:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed aspect {http://www.alfresco.org/model/content/1.0}ownable
13:51:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}owner
13:51:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}userName
13:51:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}firstName
13:51:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}lastName
13:51:37,390 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}email
13:51:37,391 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}organizationId
13:51:37,391 DEBUG [org.alfresco.repo.importer.view.ViewParser]   Processed property {http://www.alfresco.org/model/content/1.0}homeFolder
13:51:37,391 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:37,441 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]]
….. etc …
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
Merci d'avance pour toute aide,
Bernard

Outcomes