Re: [Dspace-tech] dspace 1.6 - Import Items...

2014-04-16 Thread SUZUKI Keiji
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 joseph.sa...@lau.edu.lb:

  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
 joseph.sa...@lau.edu.lb joseph.sa...@lau.edu.lb -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:* zuki.ebe...@gmail.com [mailto:zuki.ebe...@gmail.com] *On Behalf
 Of *SUZUKI Keiji

 *Sent:* Tuesday, April 15, 2014 4:26 AM
 *To:* Joseph Sayah
 *Cc:* Hilton Gibson; dspace-tech@lists.sourceforge.net

 *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 joseph.sa...@lau.edu.lb:

 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:hilton.gib...@gmail.com]
 *Sent:* Monday, April 14, 2014 2:53 PM
 *To:* Joseph Sayah
 *Cc:* dspace-tech@lists.sourceforge.net
 *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items...





 On 14 April 2014 13:47, Joseph Sayah joseph.sa...@lau.edu.lb 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
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette





 --
 鈴木敬二@江別市


 --
 Learn

[Dspace-tech] dspace 1.6 - Import Items...

2014-04-14 Thread Joseph Sayah
Hi,

Please can somebody help me to resolve the below problem:

When I tried to import items into dspace1.6 using the following command:
/sfw/local/dspace/dspace1.6/bin/dspace import -a -e joseph.sa...@lau.edu.lb -c 
10724/1578 -s batch_import -m batch_import_map

I got the below error:
Destination collections:
Exception: Cannot resolve 10724/1578 to collection
java.lang.IllegalArgumentException: Cannot resolve 10724/1578 to collection
at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:194)


Joseph N. SAYAH
ERP Application Administrator
IT Applications  Solutions, Ext: 1468

[Email signature Beirut]http://www.lau.edu.lb/
P please consider the environment before printing this email

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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] dspace 1.6 - Import Items...

2014-04-14 Thread Hilton Gibson
On 14 April 2014 13:47, Joseph Sayah joseph.sa...@lau.edu.lb 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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] dspace 1.6 - Import Items...

2014-04-14 Thread Joseph Sayah
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

[Email signature Beirut]http://www.lau.edu.lb/
P please consider the environment before printing this email

From: Hilton Gibson [mailto:hilton.gib...@gmail.com]
Sent: Monday, April 14, 2014 2:53 PM
To: Joseph Sayah
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] dspace 1.6 - Import Items...


On 14 April 2014 13:47, Joseph Sayah 
joseph.sa...@lau.edu.lbmailto:joseph.sa...@lau.edu.lb 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
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] dspace 1.6 - Import Items...

2014-04-14 Thread SUZUKI Keiji
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 joseph.sa...@lau.edu.lb:

  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:hilton.gib...@gmail.com]
 *Sent:* Monday, April 14, 2014 2:53 PM
 *To:* Joseph Sayah
 *Cc:* dspace-tech@lists.sourceforge.net
 *Subject:* Re: [Dspace-tech] dspace 1.6 - Import Items...





 On 14 April 2014 13:47, Joseph Sayah joseph.sa...@lau.edu.lb 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
 DSpace-tech@lists.sourceforge.net
 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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette