Dear all,

we'd like to import metadata via the Biblio-Transformation-Engine (BTE) 
from an OAI-PMH interface to DSpace as it is described here: 
https://wiki.duraspace.org/pages/viewpage.action?pageId=34640934 .

After running the command

bin/dspace import -b -m mapFile -e [email protected] -c 
123456789/19  -i oai -s [OAI base_URL]

we get a java.lang.NullPointerException (see below). We tried different 
public OAI-PMH interfaces, also one from a DSpace system. The used 
OAI-PMH service is valid according to http://validator.oaipmh.com/
In dspace/config/spring/api/bte.xml the setting for the OAI prefix were 
not changed (it is oai_dc).

We are working on DSpace 4.2 with XMLUI.

Thanks in advance for your help.

Best,
Jan


System output:

-----------------------------------------

Destination collections:
Owning  Collection: Sonstige
http://oai.xxxxxxxxxx.de/dspace-oai/request
INFO: Dataloader will load data from the address specified in the 
command prompt (and not from the Spring XML configuration file)
INFO: Dataloader gr.ekt.bteio.loaders.OAIPMHDataLoader@4a11c066 will be 
used for the import!
Exception
java.lang.NullPointerException
         at 
gr.ekt.bteio.loaders.OAIPMHDataLoader.oai2bte(OAIPMHDataLoader.java:179)
         at 
gr.ekt.bteio.loaders.OAIPMHDataLoader.getRecords(OAIPMHDataLoader.java:111)
         at 
gr.ekt.bteio.loaders.OAIPMHDataLoader.getRecords(OAIPMHDataLoader.java:141)
         at 
gr.ekt.bte.core.TransformationEngine.transform(TransformationEngine.java:87)
         at 
org.dspace.app.itemimport.ItemImport.addBTEItems(ItemImport.java:712)
         at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:579)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
         at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
         at 
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)
java.lang.NullPointerException
         at 
gr.ekt.bteio.loaders.OAIPMHDataLoader.oai2bte(OAIPMHDataLoader.java:179)
         at 
gr.ekt.bteio.loaders.OAIPMHDataLoader.getRecords(OAIPMHDataLoader.java:111)
         at 
gr.ekt.bteio.loaders.OAIPMHDataLoader.getRecords(OAIPMHDataLoader.java:141)
         at 
gr.ekt.bte.core.TransformationEngine.transform(TransformationEngine.java:87)
         at 
org.dspace.app.itemimport.ItemImport.addBTEItems(ItemImport.java:712)
         at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:579)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
         at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:225)
         at 
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:77)

-----------------------------------------

-- 
Jan Kenter
Digitale Dienste
Universitäts- und Landesbibliothek Bonn
Postfach 2460, D-53014 Bonn
Tel. 0228 / 73 9524
eMail:[email protected]
Internet:http://www.ulb.uni-bonn.de
Twitter:http://twitter.com/ulbbonn
Facebook:http://facebook.com/ulbbonn


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to