Bug #2174
RCP: 0.7.8, (update 201704201625) XML/w + CSV, XML TEI BFM, etc. import modules broken
Statut: | New | Début: | 28/04/2017 | ||
---|---|---|---|---|---|
Priorité: | Normal | Echéance: | |||
Assigné à: | - | % réalisé: | 20% |
||
Catégorie: | Import | Temps passé: | - | ||
Version cible: | TXM 0.X.X |
Description
When trying to import a sample XML corpus, the following error message appears:
Sauvegarde des paramètres d'importation...
Trying to read import properties file: /media/alavrent/data/Mes documents/Enseignement/E-Philology Paris 2017-03-23/PreparationEtImportDansTXM/corpus/voeux-xml/import.properties
Trying to read metadatas from: /media/alavrent/data/Mes documents/Enseignement/E-Philology Paris 2017-03-23/PreparationEtImportDansTXM/corpus/voeux-xml/metadata.csv
no metadata file: /media/alavrent/data/Mes documents/Enseignement/E-Philology Paris 2017-03-23/PreparationEtImportDansTXM/corpus/voeux-xml/metadata.csv
-- IMPORTER - Reading source files
** Erreur lors de l'exécution du script groovy : groovy.lang.MissingMethodException: No signature of method: org.txm.importer.xml.importer.run() is applicable for argument types: (java.io.File, java.io.File, java.io.File, java.lang.String) values: [/media/alavrent/data/Mes documents/Enseignement/E-Philology Paris 2017-03-23/PreparationEtImportDansTXM/corpus/voeux-xml, ...]
Possible solutions: run(java.io.File, java.io.File, java.io.File, java.lang.String, java.lang.String, java.lang.String), any(), dump(), grep(), find(), wait()
Moteur de recherche lancé.
The same problem experienced with the XML TEI BFM import module.
The XML-XTZ module is working properly.
Diagnostic¶
There was another xmlLoader.groovy file present in the $USER/TXM/scripts/user directory and it was used instead of the $USER/TXM/scripts/import version.
This is possible because when an import module Groovy file is executed, the Groovy Script Engine (GSE) is set with several root directories (directories containing Groovy files to compile) :
- $USER/TXM/scripts/user
- $USER/TXM/scripts/macro
- $USER/TXM/scripts/import (The script parent directory)
The import module script used depends on the root directories order. The classes are compiled first with the Groovy files of the "user" directory", then the "macro" directory and finally the "import" directory.
Solution¶
see https://groupes.renater.fr/wiki/txm-info/public/politique_fichiers
Historique
#1 Mis à jour par Alexey Lavrentev il y a plus de 8 ans
- Sujet changé de RCP: 0.7.8, (update 201704201625) XML/w + CSV import broken à RCP: 0.7.8, (update 201704201625) XML/w + CSV, XML TEI BFM, etc. import modules broken
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Catégorie mis à Import
#3 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 20
#4 Mis à jour par Matthieu Decorde il y a environ 8 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)
see the
#5 Mis à jour par Sebastien Jacquot il y a plus de 7 ans
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0
#6 Mis à jour par Matthieu Decorde il y a plus de 6 ans
- Version cible changé de TXM 0.8.0 à TXM 0.X.X