Θέμα: Re: [Dspace-general] exception when importing items

Claudia Jürgen Claudia.Juergen at ub.uni-dortmund.de
Wed Nov 28 09:27:21 EST 2007


Hello Anna,

the output of the test run you listed below is not "Ok". If you're 
running a test import, e.g. [dspace] being your installation directory

[dspace]\bin\dsrun.bat
org.dspace.app.itemimport.ItemImport
-t (for testing only)
-a  (add items)
-e 1 (The user id)
-c 6 (The collection id)
-s D:\dspace_import_test1 (your Source dircectory)
-m D:\dspaceTestImportMapfile.map (Location of map file)

Your output would be something like:

Using DSpace installation in: [dspace]
**Test Run** - not actually importing items.
Destination collections:
Owning  Collection: "Name of Your Collection"
Adding items from directory: D:\dspace_import_test1
Generating mapfile: D:\dspaceTestImportMapfile.map
Adding item from directory "NameOfTheFirstSubdirectory in 
D:\dspace_import_test1"
Loading dublin core from 
D:\dspace_import_test1\SubdirectoryPerItem\dublin_core.xml

Then follows the output of the processing of the dublin_core.xml file in 
the form, e.g.:

Schema: dc Element: contributor Qualifier: author Value: Anglin, J. R.
Schema: dc Element: contributor Qualifier: author Value: Busch, Th.
Schema: dc Element: date Qualifier: created Value: 2001
Schema: dc Element: date Qualifier: issued Value: 2003-06-03

...
Then the contents file is processed:

Processing contents file: D:\dspace_import_test1\Subdirectory\contents
Bitstream: foo.pdf
Processing handle file: handle
It appears there is no handle file -- generating one
0 SubdirectoryName

...
and so on until the import ist completed.

so you better check the command especially the paths again.

Sunny greetings

Claudia



anna mavroudi schrieb:
> the directory path was D:/dspace_import_test1. After changing to
> D:/import_item_test1, the test run was ok,as following:
> **Test Run** - not actually importing items.
> Destination Collections:
> Owning Collection:????????    ?????????
> Adding Items from directory:import_item_test1
> Generating mapfile: mapfile3
> ***End of Test Run ***
> 
> But when i run the same command without the test flag, the item isn't inserted in dspace, only an empty mapfile is generated....
> Anna
> 
> Claudia JΓΌrgen <Claudia.Juergen at ub.uni-dortmund.de> έγραψε: Hi Anna,
> 
> seems as if the source directory you specified is not valid, check the 
> source path specified with the -s option.
> 
> 
> hope that helps
> 
> Claudia
> 
> 
> anna mavroudi schrieb:
>> Hi all,
>> i'm trying to import items in dspace using the item importer in org.dspace.app.itemimport.ItemImport, but i get an exception as following:
>> **Test Run** - not actually importing items.
>> Destination Collections:
>> Owning Collection:????????    ?????????
>> Adding Items from directory:
>> Generating mapfile:mapfile7
>> java.lang.NullPointerException
>> at org.dspace.app.itemimport.ItemImport.addItems
>> at org.dspace.app.itemimport.ItemImport.main
>> java.lang.NullPointerException
>> ***End of Test Run ***
>> Any ideas?
>> Thanks in advance,
>> Anna
>>
>>
>>    
>> ---------------------------------
>>  Χρησιμοποιείτε Yahoo!
>>  Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
>>  http://login.yahoo.com/config/mail?.intl=gr 
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Dspace-general mailing list
>> Dspace-general at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/dspace-general
> 
> 
>  		
> ---------------------------------
>  Χρησιμοποιείτε Yahoo!
>  Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
>  http://login.yahoo.com/config/mail?.intl=gr 



More information about the Dspace-general mailing list