From 7ac8d252d0f9d65baf813587e6175c1f3fdbd1dc Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 17 Dec 2017 17:18:06 +0200 Subject: [PATCH] Update notes for 2017-12-17 --- content/post/2017-12.md | 27 +++++++++++++++++++++++++++ public/2017-12/index.html | 36 +++++++++++++++++++++++++++++++++--- public/sitemap.xml | 10 +++++----- 3 files changed, 65 insertions(+), 8 deletions(-) diff --git a/content/post/2017-12.md b/content/post/2017-12.md index 1fcac9db0..c3bde4daa 100644 --- a/content/post/2017-12.md +++ b/content/post/2017-12.md @@ -212,3 +212,30 @@ UPDATE 1 ``` $ JAVA_OPTS="-Xmx512m -Dfile.encoding=UTF-8" ~/dspace/bin/dspace import --add --eperson=aorth@mjanja.ch --collection=10568/89338 --source /Users/aorth/Downloads/2016\ bulk\ upload\ thumbnails/SimpleArchiveFormat --mapfile=/tmp/ccafs.map &> /tmp/ccafs.log ``` + +- It's the same on DSpace Test, I can't import the SAF bundle without specifying the collection: + +``` +$ dspace import --add --eperson=aorth@mjanja.ch --mapfile=/tmp/ccafs.map --source=/tmp/ccafs-2016/SimpleArchiveFormat +No collections given. Assuming 'collections' file inside item directory +Adding items from directory: /tmp/ccafs-2016/SimpleArchiveFormat +Generating mapfile: /tmp/ccafs.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) +java.lang.NullPointerException +Started: 1513521856014 +Ended: 1513521858573 +Elapsed time: 2 secs (2559 msecs) +``` + +- For now I'll import into a collection in DSpace Test but I'm really not sure what's up with this! diff --git a/public/2017-12/index.html b/public/2017-12/index.html index b974d5211..8e6a3df0f 100644 --- a/public/2017-12/index.html +++ b/public/2017-12/index.html @@ -23,7 +23,7 @@ The list of connections to XMLUI and REST API for today: - + @@ -56,9 +56,9 @@ The list of connections to XMLUI and REST API for today: "@type": "BlogPosting", "headline": "December, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-12/", - "wordCount": "1231", + "wordCount": "1330", "datePublished": "2017-12-01T13:53:54+03:00", - "dateModified": "2017-12-17T10:56:56+02:00", + "dateModified": "2017-12-17T11:22:21+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -359,6 +359,36 @@ UPDATE 1
$ JAVA_OPTS="-Xmx512m -Dfile.encoding=UTF-8" ~/dspace/bin/dspace import --add --eperson=aorth@mjanja.ch --collection=10568/89338 --source /Users/aorth/Downloads/2016\ bulk\ upload\ thumbnails/SimpleArchiveFormat --mapfile=/tmp/ccafs.map &> /tmp/ccafs.log
 
+ + +
$ dspace import --add --eperson=aorth@mjanja.ch --mapfile=/tmp/ccafs.map --source=/tmp/ccafs-2016/SimpleArchiveFormat
+No collections given. Assuming 'collections' file inside item directory
+Adding items from directory: /tmp/ccafs-2016/SimpleArchiveFormat
+Generating mapfile: /tmp/ccafs.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)
+java.lang.NullPointerException
+Started: 1513521856014
+Ended: 1513521858573
+Elapsed time: 2 secs (2559 msecs)
+
+ + + diff --git a/public/sitemap.xml b/public/sitemap.xml index f1a4d7d94..ddb7ee80c 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-12/ - 2017-12-17T10:56:56+02:00 + 2017-12-17T11:22:21+02:00 @@ -139,7 +139,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-12-17T10:56:56+02:00 + 2017-12-17T11:22:21+02:00 0 @@ -150,7 +150,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-12-17T10:56:56+02:00 + 2017-12-17T11:22:21+02:00 0 @@ -162,13 +162,13 @@ https://alanorth.github.io/cgspace-notes/post/ - 2017-12-17T10:56:56+02:00 + 2017-12-17T11:22:21+02:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-12-17T10:56:56+02:00 + 2017-12-17T11:22:21+02:00 0