I have Nuxeo EP 5.2M1 installed on a Window machine with the Nuxeo Shell.

I am trying to load multiple large files so I am using the Shell app.  I am 
able to log in and create folders in my workspace using the Shell client but 
when I try to import files I get a NullPointer exception.

I am using the following command:

import C:/file_name.log /default_domain/workspaces/my_workspace

Can someone help me with this?

Thanks

SHELL Console Log:
|> ls
Connecting to nuxeo server at 128.160.64.139:62474 as system
128.160.64.139> help
Syntax: application command [options]

The following commands are supported:
 * auditsync - Sync audit logs with repository
 * cd - Change directory (on remote)
 * commands - Print the list of available commands
 * debug - Print the result of the command line parser
 * export - List directory content (on remote)
 * fsimport - Create a new file document from a local file
 * help - The Help
 * import - Import data into the repository
 * index - Re-index database
 * interactive - Enter interactive mode
 * ls - List directory content (on remote)
 * mkdir - Create a document of the specified type (or Folder) at
        the given path (or in the current path).
 * mtfsimport - Create a new file document from a local file
 * pwd - Display the current path (on remote)
 * repostats - Gather statistics on the repository
 * rm - Remove specified (or current) document
 * script - Executes scripts
 * tree - List directory content and subdirectory content (on remote)
        reprensented by a tree
 * view - View the info about a document (on remote)

Global options:
  --port [shortcut: -p]
      The port where to connect to. By default '62474' is used.
  --password [shortcut: -P]
      The password to use when connecting.
  --host [shortcut: -h]
      The host where to connect to. By default 'localhost' is
      used.
  --username [shortcut: -u]
      The username to use when connecting. If not specified the
      'system' user will be used.

For more information on a command run "applicaton help command".
For auto-completion press TAB key.

128.160.64.139> commands
auditsync
cd
commands
debug
export
fsimport
help
import
index
interactive
ls
mkdir
mtfsimport
pwd
repostats
rm
script
tree
view
128.160.64.139> interactive
128.160.64.139> pwd
/
128.160.64.139> ls
default-domain
1 docs listed in 31ms
128.160.64.139> view
--------------------------------------------------------------------
UID: 48b8e850-929f-4d73-8a8c-ae778a6a8c83
Path: /
Type: Root
--------------------------------------------------------------------
Title: 48b8e850-929f-4d73-8a8c-ae778a6a8c83
Author: null
Created: null
Last Modified: null
--------------------------------------------------------------------
Description: 48b8e850-929f-4d73-8a8c-ae778a6a8c83
--------------------------------------------------------------------
128.160.64.139> tree


+ default-domain
|
| |-+ workspaces
| | |
| | |-+ jeod
| | | |
| | | |- xml
| |-+ sections
| | |
| |-+ templates
| | |

6 docs listed in 63ms

128.160.64.139> cd default-domain/workspaces/jeod
128.160.64.139> ls
xml
1 docs listed in 0ms
128.160.64.139> cd xml
128.160.64.139> help
Syntax: application command [options]

The following commands are supported:
 * auditsync - Sync audit logs with repository
 * cd - Change directory (on remote)
 * commands - Print the list of available commands
 * debug - Print the result of the command line parser
 * export - List directory content (on remote)
 * fsimport - Create a new file document from a local file
 * help - The Help
 * import - Import data into the repository
 * index - Re-index database
 * interactive - Enter interactive mode
 * ls - List directory content (on remote)
 * mkdir - Create a document of the specified type (or Folder) at
        the given path (or in the current path).
 * mtfsimport - Create a new file document from a local file
 * pwd - Display the current path (on remote)
 * repostats - Gather statistics on the repository
 * rm - Remove specified (or current) document
 * script - Executes scripts
 * tree - List directory content and subdirectory content (on remote)
        reprensented by a tree
 * view - View the info about a document (on remote)

Global options:
  --port [shortcut: -p]
      The port where to connect to. By default '62474' is used.
  --password [shortcut: -P]
      The password to use when connecting.
  --host [shortcut: -h]
      The host where to connect to. By default 'localhost' is
      used.
  --username [shortcut: -u]
      The username to use when connecting. If not specified the
      'system' user will be used.

For more information on a command run "applicaton help command".
For auto-completion press TAB key.

128.160.64.139> mkdir temp
128.160.64.139> ls
layers
temp
2 docs listed in 15ms
128.160.64.139> ls
layers
temp
2 docs listed in 0ms
128.160.64.139> cd temp
128.160.64.139> ls
0 docs listed in 15ms
128.160.64.139> import
Usage : import src dest
128.160.64.139> import

PUT_HERE_Unziped_Nuxeo_Shell.txt    app
client.log                          launcher.properties
lib                                 log4j.properties
nxshell.sh                          run.cmd
run.sh
128.160.64.139> import

PUT_HERE_Unziped_Nuxeo_Shell.txt    app
client.log                          launcher.properties
lib                                 log4j.properties
nxshell.sh                          run.cmd
run.sh
128.160.64.139> pwd
/default-domain/workspaces/jeod/xml/temp
128.160.64.139> import C:/pivot.log /default-domain/workspaces/jeod/xml/temp
Command failed with error:
java.lang.NullPointerException
        at org.nuxeo.ecm.core.io.impl.plugins.XMLDirectoryReader.read(XMLDirecto
ryReader.java:88)
        at org.nuxeo.ecm.core.io.impl.AbstractDocumentReader.read(AbstractDocume
ntReader.java:46)
        at org.nuxeo.ecm.core.io.impl.DocumentPipeImpl.readAndWriteDocs(Document
PipeImpl.java:119)
        at org.nuxeo.ecm.core.io.impl.DocumentPipeImpl.run(DocumentPipeImpl.java
:95)
        at org.nuxeo.ecm.shell.commands.io.ImportCommand.importTree(ImportComman
d.java:81)
        at org.nuxeo.ecm.shell.commands.io.ImportCommand.run(ImportCommand.java:
62)
        at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.
java:282)
        at org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(Interactiv
eCommand.java:108)
        at org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(Interact
iveCommand.java:95)
        at org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveComman
d.java:77)
        at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.
java:282)
        at org.nuxeo.ecm.shell.commands.InteractiveCommand.runCommand(Interactiv
eCommand.java:108)
        at org.nuxeo.ecm.shell.commands.InteractiveCommand.processInput(Interact
iveCommand.java:95)
        at org.nuxeo.ecm.shell.commands.InteractiveCommand.run(InteractiveComman
d.java:77)
        at org.nuxeo.ecm.shell.CommandLineService.runCommand(CommandLineService.
java:282)
        at org.nuxeo.ecm.shell.Main.main(Main.java:96)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at Launcher.startMain(Launcher.java:64)
        at Launcher.main(Launcher.java:144)
128.160.64.139> import
Usage : import src dest
128.160.64.139>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to