I keep getting a SAX parsing error when trying to do a batch import. I am using DSpace 1.7.2 on Ubuntu 10.04.
 
Adding item from directory 00001
[Fatal Error] :-1:-1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
        at org.dspace.app.itemimport.ItemImport.loadXML(ItemImport.java:1727)
        at org.dspace.app.itemimport.ItemImport.loadDublinCore(ItemImport.java:927)
        at org.dspace.app.itemimport.ItemImport.loadMetadata(ItemImport.java:912)
        at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:742)
        at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:616)
        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:497)
        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)
org.xml.sax.SAXParseException: Premature end of file.
Has anyone encountered this error before?
 
Also, does anyone have experience using an alternate metadata schema when doing a batch import?
 
When I follow the manual's instructions and use a file with a name formatted as metadata_[schema].xml the import script complains that the dublin_core.xml file is missing. So I tried naming the file dublin_core.xml instead since the contents are similar (just add a schema attribute to the head <dublin_core> element). However, then the script throws the same premature end of file error.
 
Thanks,
Josh
 
Joshua Gomez
Digital Library Programmer Analyst
Gelman Library
George Washington University
(202) 994-8267
jngomez@library.gwu.edu