Hello,

Which versions (of Nuxeo and Nuxeo Shell) do you use?
Could you try with a "/" instead of "./" as second parameter?

|> help import
Command: import - Import data into the repository

Aliases: imp

Options:
  --update
      Whether to update by ID existing documents. If this
      flag is not used the document path will be used as
      the document identifier and missing documents will
      be created.

Imports data into the repository. The imported data
should be a directory tree. Zip archives are not yet
supported by this client.

The first parameter represents the filesystem path to
the archive to import.

The second parameter is the Nuxeo path to a document
that will be used as the root of the target subtree.
When using the update mode (--update option) the root
doesn't matter (you can use / as the root).

In default mode (non-update), documents are matched by
path. If a document already exists at the path specified
in the import file, it will be updated with the new
data. Otherwise a new document is created.

In update mode, documents are matched by ID, and their
path doesn't matter. Documents are only updated, never
created (an ID not present in the repository will be
ignored at import time).

The update mode is recommended if you want to update a
repository and not create new data, as it is faster and
doesn't have a problem with documents that have moved.



Le 30/07/10 20:43, Maxime Alarie a écrit :
>
> Please help.
>
>  
>
> I use import /root/Dire1  ./
>
>  
>
> Command failed.
>
> java.lang.NullPointerException
>
>         at 
> org.nuxeo.ecm.core.io.impl.plugins.XMLDirectoryReader.read(XMLDirectoryReader.java:88)
>
>         at 
> org.nuxeo.ecm.core.io.impl.AbstractDocumentReader.read(AbstractDocumentReader.java:46)
>
>         at 
> org.nuxeo.ecm.core.io.impl.DocumentPipeImpl.readAndWriteDocs(DocumentPipeImpl.java:115)
>
>         at 
> org.nuxeo.ecm.core.io.impl.DocumentPipeImpl.run(DocumentPipeImpl.java:95)
>
>         at 
> org.nuxeo.ecm.shell.commands.io.ImportCommand.importTree(ImportCommand.java:85)
>
>         at 
> org.nuxeo.ecm.shell.commands.io.ImportCommand.run(ImportCommand.java:66)
>
>         at 
> org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:329)
>
>         at 
> org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(InteractiveCommand.java:137)
>
>         at 
> org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(InteractiveCommand.java:117)
>
>         at 
> org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveCommand.java:97)
>
>         at 
> org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.java:329)
>
>         at org.nuxeo.ecm.shell.Main.main(Main.java:101)
>
>         at 
> org.nuxeo.ecm.shell.CommandLineService$1.run(CommandLineService.java:357)
>
>         at 
> org.nuxeo.osgi.application.StandaloneApplication.main(StandaloneApplication.java:324)
>
>         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:616)
>
>         at org.nuxeo.osgi.application.Main.main(Main.java:64)
>
>         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:616)
>
>         at org.nuxeo.runtime.launcher.Main.main(Main.java:83)
>
>  
>
>
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
> To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

-- 
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to