Bug #2306

RCP: 0.7.8, XTZ import module with 'css' and 'xsl' directories, broken on Windows 7, 8 and 10

Added by Serge Heiden about 2 years ago. Updated 10 months ago.

Status:New Start date:12/18/2017
Priority:Normal Due date:
Assignee:- % Done:

0%

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

Description

With Bernard/Paraboles2 or Hortusla corpus, the XTZ import module breaks on access rights with the following stacktrace on Windows 7, 8 and 10 :

Diagnostics

Two examples below.

example 1 : Bernard/Paraboles2

java.io.FileNotFoundException: C:\Users\Laurence\Desktop\PARABOLES2\css (Accès refusé)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at org.txm.utils.FileCopy.copy(FileCopy.java:79)
    at org.txm.utils.FileCopy.copy(FileCopy.java:56)
    at org.txm.utils.FileCopy$copy.call(Unknown Source)
    at org.txm.importer.xtz.XTZImporter.doFixSurrogates(XTZImporter.groovy:158)
    at org.txm.importer.xtz.XTZImporter.process(XTZImporter.groovy:119)
    at org.txm.importer.xtz.ImportModule.start(ImportModule.java:104)
    at org.txm.importer.xtz.XTZImport.super$2$start(XTZImport.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.txm.importer.xtz.XTZImport.start(XTZImport.groovy:85)
    at org.txm.importer.xtz.ImportModule.process(ImportModule.java:233)
    at org.txm.importer.xtz.ImportModule$process$2.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.txm.importer.xtz.xtzLoader.run(xtzLoader.groovy:81)
    at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
    at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
** Erreur lors de l'exécution du script groovy : java.lang.NullPointerException
java.lang.NullPointerException
    at org.txm.utils.FileCopy.copy(FileCopy.java:90)
    at org.txm.utils.FileCopy.copy(FileCopy.java:56)
    at org.txm.utils.FileCopy$copy.call(Unknown Source)
    at org.txm.importer.xtz.XTZImporter.doFixSurrogates(XTZImporter.groovy:158)
    at org.txm.importer.xtz.XTZImporter.process(XTZImporter.groovy:119)
    at org.txm.importer.xtz.ImportModule.start(ImportModule.java:104)
    at org.txm.importer.xtz.XTZImport.super$2$start(XTZImport.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.txm.importer.xtz.XTZImport.start(XTZImport.groovy:85)
    at org.txm.importer.xtz.ImportModule.process(ImportModule.java:233)
    at org.txm.importer.xtz.ImportModule$process$2.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.txm.importer.xtz.xtzLoader.run(xtzLoader.groovy:81)
    at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
    at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Chargement des sous-corpus et des partitions... Terminé.
Sauvegarde des paramètres d'importation...
java.io.FileNotFoundException: C:\Users\Laurence\Desktop\PARABOLES2\xsl (Accès refusé)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at org.txm.utils.FileCopy.copy(FileCopy.java:79)
    at org.txm.utils.FileCopy.copy(FileCopy.java:56)
    at org.txm.utils.FileCopy$copy.call(Unknown Source)
    at org.txm.importer.xtz.XTZImporter.doFixSurrogates(XTZImporter.groovy:158)
    at org.txm.importer.xtz.XTZImporter.process(XTZImporter.groovy:119)
    at org.txm.importer.xtz.ImportModule.start(ImportModule.java:104)
    at org.txm.importer.xtz.XTZImport.super$2$start(XTZImport.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.txm.importer.xtz.XTZImport.start(XTZImport.groovy:85)
    at org.txm.importer.xtz.ImportModule.process(ImportModule.java:233)
    at org.txm.importer.xtz.ImportModule$process$2.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.txm.importer.xtz.xtzLoader.run(xtzLoader.groovy:81)
    at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
    at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
** Erreur lors de l'exécution du script groovy : java.lang.NullPointerException
java.lang.NullPointerException
    at org.txm.utils.FileCopy.copy(FileCopy.java:90)
    at org.txm.utils.FileCopy.copy(FileCopy.java:56)
    at org.txm.utils.FileCopy$copy.call(Unknown Source)
    at org.txm.importer.xtz.XTZImporter.doFixSurrogates(XTZImporter.groovy:158)
    at org.txm.importer.xtz.XTZImporter.process(XTZImporter.groovy:119)
    at org.txm.importer.xtz.ImportModule.start(ImportModule.java:104)
    at org.txm.importer.xtz.XTZImport.super$2$start(XTZImport.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.txm.importer.xtz.XTZImport.start(XTZImport.groovy:85)
    at org.txm.importer.xtz.ImportModule.process(ImportModule.java:233)
    at org.txm.importer.xtz.ImportModule$process$2.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.txm.importer.xtz.xtzLoader.run(xtzLoader.groovy:81)
    at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
    at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Chargement des sous-corpus et des partitions... Terminé.

example 2 : Hortusla

Retriving C:\Users\cecille-l\TXM\scripts\import\xtzLoader.groovy from Toolbox plugin if script.date < toolbox_script.date
Retrieving file_path from org.txm.toolbox plugin.
Chargement des paramètres d'import depuis le fichier : C:\Users\cecille-l\Documents\hortusla\import.xml
Params: BaseParameters [name=HORTUSLA, date=Wed May 11 00:00:00 CEST 2016, author=alavrent, version=0.7.8, description=<pre><br/>- HORTUSLA
<br/>- alavrent
<br/>- 2016-05-11</pre>,
 links={}, corpora={HORTUSLA=[corpus: null]},
 root=[import: null], corporaElement=[corpora: null], keyValueParameters=org.txm.objects.BaseParameters@98e893d]
Paramètres du module : {textualplans=true, parallel=false, editions-pageelement=true, pAttributes=false, lang=true, uis=true, tokenizer-advanced=true, xslt=false, encoding=false, sAttributes=false, preBuild=false, queries=false, tokenizer=true, options=true, editions-wordsperpage=true}
Sauvegarde des paramètres d'importation...
Checking corpus name validity with '[A-Z][-A-Z0-9]+': HORTUSLA
Retriving C:\Users\cecille-l\TXM\scripts\import\xtzLoader.groovy from Toolbox plugin if script.date < toolbox_script.date
Retrieving file_path from org.txm.toolbox plugin.
Initialized TXMClassLoader with 108 bundles.
Exécution du scriptC:\Users\cecille-l\TXM\scripts\import\xtzLoader.groovy
java.io.FileNotFoundException: C:\Users\cecille-l\Documents\hortusla\css (Accès refusé)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at org.txm.utils.FileCopy.copy(FileCopy.java:79)
    at org.txm.utils.FileCopy.copy(FileCopy.java:56)
    at org.txm.utils.FileCopy$copy.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
    at org.txm.importer.xtz.XTZImporter.doFixSurrogates(XTZImporter.groovy:158)
    at org.txm.importer.xtz.XTZImporter.process(XTZImporter.groovy:119)
    at org.txm.importer.xtz.ImportModule.start(ImportModule.java:104)
    at org.txm.importer.xtz.XTZImport.super$2$start(XTZImport.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.txm.importer.xtz.XTZImport.start(XTZImport.groovy:85)
    at org.txm.importer.xtz.ImportModule.process(ImportModule.java:233)
    at org.txm.importer.xtz.ImportModule$process$2.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.txm.importer.xtz.xtzLoader.run(xtzLoader.groovy:81)
    at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
    at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
** Erreur lors de l'exécution du script groovy : java.lang.NullPointerException
java.lang.NullPointerException
    at org.txm.utils.FileCopy.copy(FileCopy.java:90)
    at org.txm.utils.FileCopy.copy(FileCopy.java:56)
    at org.txm.utils.FileCopy$copy.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
    at org.txm.importer.xtz.XTZImporter.doFixSurrogates(XTZImporter.groovy:158)
    at org.txm.importer.xtz.XTZImporter.process(XTZImporter.groovy:119)
    at org.txm.importer.xtz.ImportModule.start(ImportModule.java:104)
    at org.txm.importer.xtz.XTZImport.super$2$start(XTZImport.groovy)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1085)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
    at org.txm.importer.xtz.XTZImport.start(XTZImport.groovy:85)
    at org.txm.importer.xtz.ImportModule.process(ImportModule.java:233)
    at org.txm.importer.xtz.ImportModule$process$2.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    at org.txm.importer.xtz.xtzLoader.run(xtzLoader.groovy:81)
    at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:577)
    at org.txm.rcpapplication.commands.ExecuteImportScript$2.run(ExecuteImportScript.java:244)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Starting NullSearchEngineServer: [C:\Program Files (x86)\TXM\TXM\plugins\CQP.win32_1.1.0.201708301344\res\win64\cqpserver.exe, -I, C:\Program Files (x86)\TXM\TXM\plugins\CQP.win32_1.1.0.201708301344\res\cqpserver.init, -r, C:\Users\cecille-l\TXM\corpora\graal\registry;C:\Users\cecille-l\TXM\corpora\VOEUX\registry, -b, 1000000, -d, OFF, -P, null] ... 
Chargement des sous-corpus et des partitions... Terminé.

Solution

History

#1 Updated by Serge Heiden about 2 years ago

  • Description updated (diff)

#2 Updated by Serge Heiden about 2 years ago

  • Description updated (diff)

#3 Updated by Sebastien Jacquot over 1 year ago

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

#4 Updated by Matthieu Decorde 10 months ago

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

Also available in: Atom PDF