Yes, thank you, this was what was generating the error. I was trying to use
the item handle instead of the collection one.
However, now that I¹ve got past that, I¹m getting this error:
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:850)
at edu.sdsc.grid.io.local.LocalFile.createNewFile(LocalFile.java:481)
at
org.dspace.storage.bitstore.BitstreamStorageManager.store(BitstreamStorageMa
nager.java:325)
at org.dspace.content.Bitstream.create(Bitstream.java:184)
at org.dspace.content.Bundle.createBitstream(Bundle.java:355)
at
org.dspace.app.itemimport.ItemImport.processContentFileEntry(ItemImport.java
:1045)
at
org.dspace.app.itemimport.ItemImport.processContentsFile(ItemImport.java:972
)
at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:609)
at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:476)
at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:385)
java.io.IOException: No such file or directory
I¹ve tried uploading a smaller subset (the full batch has over 800 files),
and it keeps stopping three or four bitstreams in (a different one each
time). Any ideas?
Thanks,
--
Karen S
From: Stuart Lewis <s.le...@auckland.ac.nz>
Date: Tue, 7 Apr 2009 09:02:53 +1200
To: Karen Savage <karen_sav...@baylor.edu>,
<dspace-tech@lists.sourceforge.net>
Subject: RE: [Dspace-tech] <no subject>
Hi Karen,
Is 3029/2039 definitely a Collection? This error gets thrown if you try to
deposit items into a handle that is an Item, rather than a Collection.
Thanks,
Stuart Lewis
Digital Services Programmer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz <http://www.library.auckland.ac.nz/> /
From: Karen_Savage [mailto:karen_sav...@baylor.edu]
Sent: Tuesday, 7 April 2009 3:36 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] <no subject>
Hi,
I'm trying to do a batch import of files to a particular etd in our
collection, but I keep getting the following error:
Destination collections:
Exception in thread "main" java.lang.ClassCastException:
org.dspace.content.Item
at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:341)
This is the command I'm running (I¹ve switched out the ids):
/dspace/bin/dsrun org.dspace.app.itemimport.ItemImport -a -e 2039 -c
3029/2039 -s import -m /mapfiles/mapfile_ball -t
This is my directory structure:
import
001
contents
dublin_core.xml
various files to upload
We're running Dspace 1.3.2. I double-checked all the log files and didn¹t
see any errors for the time that I last ran the command.
I'd appreciate any help or suggestions!
--
Karen Savage
Baylor University
Central Libraries
Electronic Libraries
ext. 3275
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech