Hi Spencer,

I can't see your error in your log... :S
Do you have a dublincore.xml file in all directories?
All metadata you've used in dublincore.xml are in your repository's metadata definition?

Best,




Al 21/10/2010 23:32, En/na Spencer Lamm ha escrit:
Hi-
I've run successful batch imports with our DSpace instance before but now I am 
getting an error right off the bat that I'm having problems troubleshooting. 
The --test batch imprt didn't create any entries in /var/dspace/log/dspace.log 
or catalina.out so I created a fake collection and ran it without --test and 
still didn't get any entries. Below is what I get from the command line. I'm 
running Red Hat Enterprise Linux 4, DSpace 1.5.2. I have effectivey zero 
knowledge of Java so any ideas will be warmly appreciated!

Thanks!
Spencer

sudo /var/dspace/bin/import --test -a -e [email protected] -c 10066/5840 -s 
/mnt/dspace/swat_films/archive_directory -m /home/slamm1/mapfile.txt
**Test Run** - not actually importing items.
Destination collections:
Owning  Collection: Historical Films of Swarthmore College
Adding items from directory: /mnt/dspace/swat_films/archive_directory
Generating mapfile: /home/slamm1/mapfile.txt
Adding item from directory item_000
java.lang.NullPointerException
        at 
org.dspace.app.itemimport.ItemImport.loadDublinCore(ItemImport.java:826)
        at 
org.dspace.app.itemimport.ItemImport.loadMetadata(ItemImport.java:804)
        at org.dspace.app.itemimport.ItemImport.addItem(ItemImport.java:642)
        at org.dspace.app.itemimport.ItemImport.addItems(ItemImport.java:514)
        at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:421)
java.lang.NullPointerException
***End of Test Run***

I turned on DEBUG in log4j and got the following:

2010-10-21 17:20:04,668 INFO  org.dspace.core.ConfigurationManager @ Loading 
from classloader: file:/var/dspace/config/dspace.cfg
2010-10-21 17:20:04,676 INFO  org.dspace.core.ConfigurationManager @ Using 
dspace provided log configuration (log.init.config)
2010-10-21 17:20:04,676 INFO  org.dspace.core.ConfigurationManager @ Loading: 
/var/dspace/config/log4j.properties
2010-10-21 17:20:04,841 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query 
"select * from eperson where email = ? "  with parameters: [email protected]
2010-10-21 17:20:04,901 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query 
"select * from handle where handle = ? "  with parameters: 10066/5840
2010-10-21 17:20:04,916 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query 
"select * from collection where collection_id = ? "  with parameters: 267
2010-10-21 17:20:04,919 DEBUG org.dspace.content.Collection @ 
[email protected]::find_collection:collection_id=267
2010-10-21 17:20:04,925 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query 
"select * from epersongroup where eperson_group_id = ? "  with parameters: 593
2010-10-21 17:20:04,926 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query 
"select * from epersongroup where eperson_group_id = ? "  with parameters: 592
2010-10-21 17:20:04,927 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query 
"SELECT handle FROM Handle WHERE resource_type_id = ? AND resource_id = ?"  
with parameters: 3,267
2010-10-21 17:20:04,928 DEBUG org.dspace.handle.HandleManager @ Resolved handle 
10066/5840 to collection 267

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps&  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Oriol Olivé Comadira
*Biblioteca Universitat de Girona*
/Projectes/
DUGi: Repositori Digital de la Universitat de Girona <http://dugi.udg.edu>
DUGiDoc: Repositori Digital de Documents de la Universitat de Girona <http://dugi-doc.udg.edu> DUGiMedia: Repositori Digital d'Àudio i Vídeo de la Universitat de Girona <http://diobma.udg.edu> DUGiFonsEspecials: Repositori dels Fons Especials de la Biblioteca de la Universitat de Girona <http://dugifonsespecials.udg.edu>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to