Bug #2174

RCP: 0.7.8, (update 201704201625) XML/w + CSV, XML TEI BFM, etc. import modules broken

Added by Alexey Lavrentev almost 3 years ago. Updated 11 months ago.

Status:New Start date:04/28/2017
Priority:Normal Due date:
Assignee:- % Done:


Category:Import Spent time: -
Target version:TXM X.X


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.


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.


see https://groupes.renater.fr/wiki/txm-info/public/politique_fichiers


#1 Updated by Alexey Lavrentev almost 3 years ago

  • Subject changed from RCP: 0.7.8, (update 201704201625) XML/w + CSV import broken to RCP: 0.7.8, (update 201704201625) XML/w + CSV, XML TEI BFM, etc. import modules broken
  • Description updated (diff)

#2 Updated by Matthieu Decorde almost 3 years ago

  • Category set to Import

#3 Updated by Matthieu Decorde almost 3 years ago

  • Description updated (diff)
  • % Done changed from 0 to 20

#4 Updated by Matthieu Decorde over 2 years ago

  • Description updated (diff)
  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

see the

#5 Updated by Sebastien Jacquot over 1 year ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#6 Updated by Matthieu Decorde 11 months ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF