Problem with the bulk document importer

Bonjour

J'ai installé nuxeo-platform-importer-1.3.0 avec succès.

J'ai testé avec succès en utilisant le randomImporter

curl -v --basic -u "Administrator:Administrator" "http://localhost:8081/nuxeo/site/randomImporter/run?targetPath=/&batchSize=1&nbNodes=3&nbThreads=1"

Puis j'ai essayé d'importer un petit dossier contenant l'arborescence suivante:

 Répertoire de C:\tmp\A
               B
        12 686 CCC.docx
       183 802 OOO.pdf

 Répertoire de C:\tmp\A\B
        12 686 CCC.docx

avec la commande:

curl -v --basic -u "Administrator:Administrator" "http://localhost:8081/nuxeo/site/fileImporter/run?targetPath=/&inputPath=/tmp/A:&batchSize=1&nbNodes=3&nbThreads=1&folderishType=Folder&leafType=File"

mais aucun résultat

* Adding handle: conn: 0x206620
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x206620) send_pipe: 1, recv_pipe: 0
* About to connect() to localhost port 8081 (#0)
*   Trying ::1...
* Connected to localhost (::1) port 8081 (#0)
* Server auth using Basic with user 'Administrator'
> GET /nuxeo/site/fileImporter/run?targetPath=/&inputPath=tmp/A:&batchSize=1&nbNodes=3&nbThreads=1&folderishType=Folder&
leafType=File HTTP/1.1
> Authorization: Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y
> User-Agent: curl/7.33.0
> Host: localhost:8081
> Accept: */*
>
< HTTP/1.1 200 OK
* Server Apache-Coyote/1.1 is not blacklisted
< Server: Apache-Coyote/1.1
< X-UA-Compatible: IE=Edge,chrome=1
< Content-Type: text/plain;charset=UTF-8
< Transfer-Encoding: chunked
< Date: Tue, 25 Feb 2014 09:08:17 GMT
<
Started* Connection #0 to host localhost left intact

voici le log file obtenu par la commande:

curl -v --basic -u "Administrator:Administrator" "http://localhost:8081/nuxeo/site/fileImporter/log"

DEBUG : Filter with blockSyncPostCommitProcessing set false, blockAsyncProcessing set false, blockMimeTypeDetection set
false and blockNotifications set true, was added on the importer with the hash code 565730774. The source node name is A
:
DEBUG : Running filter with blockSyncPostCommitProcessing set false, blockAsyncProcessing set false, blockMimeTypeDetect
ion set false and blockNotifications set true, on the importer with the hash code 565730774. The source node name is A:
DEBUG : Unable to create leaf document for C:\tmp\A::org.nuxeo.ecm.core.api.ClientException: Failed to create document:
A:org.nuxeo.ecm.core.api.DocumentException: java.io.FileNotFoundException: C:\tmp\A: (La syntaxe du nom de fichier, de r
├®pertoire ou de volume est incorrecte)
INFO : All Threads terminated
INFO : 0 docs created
INFO : 0.0 docs/s
INFO : Nuxeo-Importer-1-T0 --> 0
INFO : Simon Stopwatch: [org.nuxeo.ecm.platform.importer.create_leaf INHERIT] total 61.1 ms, counter 5, max 34.9 ms, min
 5.52 ms, mean 12.2 ms
* Connection #0 to host localhost left intact

enfin, voici le log du serveur nuxeo:

Caused by: org.nuxeo.ecm.platform.mimetype.MimetypeDetectionException: C:\tmp\A: (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
    at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.getMimetypeFromBlob(MimetypeRegistryService.java:356)
    at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.getMimetypeFromFilenameAndBlobWithDefault(MimetypeRegistryService.java:414)
    at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.updateMimetype(MimetypeRegistryService.java:435)
    at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.updateMimetype(MimetypeRegistryService.java:442)
    at org.nuxeo.ecm.platform.filemanager.core.listener.MimetypeIconUpdater.updateBlobProperty(MimetypeIconUpdater.java:158)
    at org.nuxeo.ecm.platform.filemanager.core.listener.MimetypeIconUpdater.handleEvent(MimetypeIconUpdater.java:109)
    ... 17 more
Caused by: java.io.FileNotFoundException: C:\tmp\A: (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:146)
    at org.nuxeo.ecm.core.api.impl.blob.FileBlob.getStream(FileBlob.java:97)
    at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.getMimetypeFromBlob(MimetypeRegistryService.java:345)

Qui peut m'aider?

Merci d'avance Christian Arnault

0 votes

0 answers

1218 views

ANSWER