Hello,

I've created a SimpleArchiveFormat (SAF) bundle using the SAFBuilder tool.
This is something I've done successfully dozens of times in the past, but
for some reason I'm getting a NullPointerException now:

$ dspace import --add [email protected] --mapfile=/tmp/import.map
--source=/tmp/SimpleArchiveFormat
No collections given. Assuming 'collections' file inside item directory
Adding items from directory: /tmp/SimpleArchiveFormat
Generating mapfile: /tmp/import.map
Processing collections file: collections
Adding item from directory item_1
java.lang.NullPointerException
        at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:865)
        at
org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:736)
        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:498)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
        at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)

Collections are specified in each item directory's `collections` file, but
the import only works if I specify a collection using --collection on the
command line. The behavior is the same on my local macOS test machine as
well as on our Linux staging server. Our DSpace version is 5.5.

Thank you for any ideas or tips,
-- 

Alan Orth
[email protected]
https://picturingjordan.com
https://englishbulgaria.net
https://mjanja.ch

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to