Greetings
I have created a Dublin Core file and a contents file with the following 
UCU10020100216B.pdf statement and put them inside one folder together with a 
pdf file name UCU10020100216B.pdf and run the batch import command and i get 
the following error

root@debian:/opt/dspace/dspace/bin# ./dspace dsrun 
org.dspace.app.itemimport.ItemImport --add [email protected] 
--collection=123456789/2 --source='/home/stephen/Desktop/sisi' 
--mapfile=/home/ghh.txt 
Destination collections:
Owning  Collection: UCU
Adding items from directory: /home/stephen/Desktop/sisi
Generating mapfile: /home/ghh.txt
Adding item from directory HASH013823ae67168e24b8522960
    Loading dublin core from 
/home/stephen/Desktop/sisi/HASH013823ae67168e24b8522960/dublin_core.xml
    Schema: dc Element: publisher Qualifier: none Value: Kenyatta University
    Schema: dc Element: creator Qualifier: none Value: Common Units
    Schema: dc Element: language Qualifier: none Value: EN
    Schema: dc Element: description Qualifier: none Value: UCU 100
    Schema: dc Element: type Qualifier: none Value: Bachelor of Education
    Schema: dc Element: coverage Qualifier: none Value: First Semester
    Schema: dc Element: date Qualifier: none Value: 20100816
    Schema: dc Element: title Qualifier: none Value: Communication Skills
    Schema: dc Element: rights Qualifier: none Value: 2010
    Schema: dc Element: identifier Qualifier: none Value: 2009/2010
    Schema: dc Element: contributor Qualifier: none Value: Regular
    Processing contents file: 
/home/stephen/Desktop/sisi/HASH013823ae67168e24b8522960/contents
    Bitstream: UCU10020100816.pdf
Processing handle file: handle
It appears there is no handle file -- generating one
java.sql.SQLException: bad_dublin_core schema=dc, coverage null
    at org.dspace.content.Item.update(Item.java:1580)
    at org.dspace.content.InstallItem.finishItem(InstallItem.java:228)
    at org.dspace.content.InstallItem.installItem(InstallItem.java:83)
    at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:790)
    at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:617)
    at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:498)
    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:183)
java.sql.SQLException: bad_dublin_core schema=dc, coverage null
Started: 1349889161392
Ended: 1349889162024
Elapsed time: 0 secs (632 msecs)
root@debian:/opt/dspace/dspace/bin# 

The Dublin Core
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<dublin_core schema="dc">
  <dcvalue element="publisher" qualifier="none" language="">Kenyatta 
University</dcvalue>
  <dcvalue element="creator" qualifier="none" language="">Common Units</dcvalue>
  <dcvalue element="language" qualifier="none" language="">EN</dcvalue>
  <dcvalue element="description" qualifier="none" language="">UCU 100</dcvalue>
  <dcvalue element="type" qualifier="none" language="">Bachelor of 
Education</dcvalue>
  <dcvalue element="coverage" qualifier="none" language="">IOL</dcvalue>
  <dcvalue element="date" qualifier="none" language="">20100216B</dcvalue>
  <dcvalue element="title" qualifier="none" language="">Communication 
Skills</dcvalue>
  <dcvalue element="rights" qualifier="none" language="">2010</dcvalue>
  <dcvalue element="identifier" qualifier="none" language="">2009/2010</dcvalue>
  <dcvalue element="contributor" qualifier="none" language="">Regular</dcvalue>
</dublin_core>

contents file 
UCU10020100216B.pdf
















------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to