Thanks for the hint.
The metadata schemes / fields are made already (I think if not the 
import will sure fail). I added manually only a "standard" item, because 
until now I failed to localise the input forms. My plan was to extend / 
modify the input form after the successfully localisation. Could it be 
that fields missing in the input form prevent the import?
Anyway I will try Your suggestion to see whether there is a problem with 
the XML-format.

Greetings

Robert

---

Fox, Graeme schrieb:
> Failed ItemImport (Robert Roggenbuck)
> 
> Try reversing the process, that is:
>         1/ setup your meta schema registry names, dct, marc, uos and vCard
>         2/ add an item to your repository utlising fields from these meta 
> data registry names
>         3/ Export the item, that is, run ItemExport
>         4/ this will create the required directory with the exported files, 
> handle file, xml files, contents file
>         5/ From there you can import the item, to check the syntax, running 
> ItemImport
> 
> 
> regards
> Graeme Fox
[snip]
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 27 Jun 2008 16:04:04 +0200
> From: Robert Roggenbuck <[EMAIL PROTECTED]>
> Subject: [Dspace-tech] Failed ItemImport
> To: "[email protected] Tech"
>         <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
> 
> Hi all,
> 
> I tried to import metadata containing more then 1 file and using more
> then 1 metatdata schema. As far as I see in the code of ItemImport.java
> this should be possible. But I encounter the an error whent I try to do
> the import:
> 
> $ ./import -a -e [EMAIL PROTECTED] -c 123456789/4 -s /tmp/dc -m
> 080627.map --test
> **Test Run** - not actually importing items.
> Destination collections:
> Owning  Collection: Osnabr?cker E-Dissertationen
> Adding items from directory: /tmp/dc
> Generating mapfile: 080627.map
> java.lang.NullPointerException
>          at
> org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:506)
>          at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:421)
> java.lang.NullPointerException
> ***End of Test Run***
> 
> Here is the data I work with:
> 
> The content of /tmp/dc is only 1 directory named dc0. dc0 contains:
> contents
> dublin_core.xml
> E-Diss6_hepp.tar.gz
> E-Diss6_hepp.tar.gz.sha2
> E-Diss6_Int_Hepp.pdf
> E-Diss6_Int_Hepp.pdf.sha2
> license_text
> metadata_dct.xml
> metadata_marc.xml
> metadata_uos.xml
> metadata_vCard.xml
> 
> The content of dublin_core.xml is
> 
> <?xml version="1.0"?>
> <dublin_core schema="dc">
> <dcvalue element="creator" qualifier="">Hepp, Alexander</dcvalue>
> <dcvalue element="identifier" qualifier="">6</dcvalue>
> <dcvalue element="title" qualifier="">Isolobale Substitution in
> Tetraphosphortrisulfid und in seinen Derivaten</dcvalue>
> <dcvalue element="type" qualifier="">diss</dcvalue>
> </dublin_core>
> 
> And metadata_marc.xml, as an example for the other schemas:
> 
> <?xml version="1.0"?>
> <dublin_core schema="marc">
> <dcvalue element="edt" qualifier="">fangmeier</dcvalue>
> <dcvalue element="rev" qualifier="">Prof. Dr. Roger Blachnik; Dr. habil.
> Konstantin Karaghiosoff</dcvalue>
> <dcvalue element="ths" qualifier="">Prof. Dr. Roger Blachnik</dcvalue>
> </dublin_core>
> 
> The file 'license_text' is empty and 'contents' contains just the
> filenames of the 4 files of the bundle.
> 
> What did I wrong?
> 
> Greetings
> 
> Robert
> 
> 
> --
> 
> ===================================
> Robert Roggenbuck
> Universitaetsbibliothek Osnabrueck
> Germany
> ===================================
> 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to