Hi Joseph,

The error has occurred because you specified a file path as the value of
the -s option.

The Item Import function uses "DSpace simple archive format" for the import
data. You have to prepare metadata and bitstream of items with this format
and specify the archive directory path as a value of -s option. For the
details
of the format, please refer to "8.3.1 DSpace Simple Archive Format"  of the
DSpace document in [dspace-src]/dspace/docs or at the following url:

http://dspace.org/sites/dspace.org/files/archive/1_6_2Documentation/ch08.html#N159FE

Regards,
Keiji Suzuki

2014-04-16 16:07 GMT+09:00 Joseph Sayah <[email protected]>:

>  Hi Keiji,
>
>
>
> Thank you so much for your reply, you are right, it was the handle of the
> item not the collection, I replaced it by the handle of the collection, the
> command still returning the below error, and when I checked the collection
> I realized that there is no submission under the collection (the requested
> item was not submitted under the collection) and the file batch_import_map
> was created with size = 0 , for more details please see below the command
> and the error message, maybe I missed something:
>
>
>
> */sfw/local/dspace/dspace1.6/bin/dspace import -a -e
> [email protected] <[email protected]> -c 10725/61 -s
> /sfw/local/dspace/dspace1.6/batch_import/formatchecklist.pdf -m
> /sfw/local/dspace/dspace1.6/batch_import_map*
>
>
>
>
>
> *Destination collections:*
>
> *Owning  Collection: Test Collection*
>
> *Adding items from directory:
> /sfw/local/dspace/dspace1.6/batch_import/formatchec
> klist.pdf*
>
> *Generating mapfile: /sfw/local/dspace/dspace1.6/batch_import_map*
>
> *java.lang.NullPointerException*
>
> *        at
> org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:600)*
>
> *        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:500)*
>
> *        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:597)*
>
> *        at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:194)*
>
> *java.lang.NullPointerException*
>
>
>
> Best,
>
>
>
> *Joseph N. SAYAH*
>
> ERP Application Administrator
>
> IT Applications & Solutions, Ext: 1468
>
>
>
> [image: Email signature Beirut] <http://www.lau.edu.lb/>
>
> *P* *please consider the environment before printing this email*
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On Behalf
> Of *SUZUKI Keiji
>
> *Sent:* Tuesday, April 15, 2014 4:26 AM
> *To:* Joseph Sayah
> *Cc:* Hilton Gibson; [email protected]
>
> *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items...
>
>
>
> Hi Joseph,
>
>
>
> The error message says "10724/1578" is not the handle of a collection.
>
> Indeed, when I access to http://hdl.handle.net/10724/1578, this seems
>
> an item.
>
>
>
> Double check the handle (or internal ID) of the collection which you want
>
> to import items within.
>
>
>
> Regards,
>
> Keiji Suzuki
>
>
>
>
>
> 2014-04-14 21:11 GMT+09:00 Joseph Sayah <[email protected]>:
>
> Hi,
>
>
>
> Thank you for your quick reply, also if I put the Database ID I get the
> same error….
>
>
>
> Best,
>
>
>
> *Joseph N. SAYAH*
>
> ERP Application Administrator
>
> IT Applications & Solutions, Ext: 1468
>
>
>
> [image: Email signature Beirut] <http://www.lau.edu.lb/>
>
> *P* *please consider the environment before printing this email*
>
>
>
> *From:* Hilton Gibson [mailto:[email protected]]
> *Sent:* Monday, April 14, 2014 2:53 PM
> *To:* Joseph Sayah
> *Cc:* [email protected]
> *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items...
>
>
>
>
>
> On 14 April 2014 13:47, Joseph Sayah <[email protected]> wrote:
>
> Cannot resolve 10724/1578 to collection
>
>
>
> ​My guess is to check the operation of your handle server.
>
>
>
> Regards
>
>
>
> hg
>
>
>
>   *Hilton Gibson*
>
> Ubuntu Linux Systems Administrator
>
> JS Gericke Library
>
> Room 1025D
>
> Stellenbosch University
>
> Private Bag X5036
>
> Stellenbosch
>
> 7599
>
> South Africa
>
>
>
> Tel: +27 21 808 4100 | Cell: +27 84 646 4758
>
> http://scholar.sun.ac.za
>
> http://bit.ly/goodir
>
> http://library.sun.ac.za
>
> http://za.linkedin.com/in/hiltongibson
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
>
>
> --
> 鈴木敬二@江別市
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>



-- 
鈴木敬二@江別市

<<inline: image001.jpg>>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to