Hi all,

I need to access the metadata of my DSpace items from an external script 
and figured I would do so using the OAI webapp and the GetRecord verb (I 
run DSpace 3.0). For some reason, however, OAI only displays a very 
small subset of my items, all uploaded before a certain date. When 
running "[dspace]/bin/dspace oai import" OAI tells me it is searching 
for documents modified after that date ("incremental import") but fails 
with a:

org.apache.solr.common.SolrException: Bad Request

Here's the stacktrace:
request: http://localhost:8080/solr/oai/update?wt=javabin&version=2
     at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:435)
     at 
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
     at 
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
     at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:64)
     at org.dspace.xoai.app.XOAI.index(XOAI.java:217)
     at org.dspace.xoai.app.XOAI.index(XOAI.java:183)
     at org.dspace.xoai.app.XOAI.index(XOAI.java:141)
     at org.dspace.xoai.app.XOAI.main(XOAI.java:427)
     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:601)
     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)

I also tried this on my dev instance of DSpace 3.0-rc3, with the same 
result except that the avaliable options for "[dspace]/bin/dspace oai" 
change to "clean-cache", "compile-items" and "erase-compiled-items". 
"compile-items" fails with a java.lang.NullPointerException
     at 
org.dspace.xoai.util.XOAICacheManager.getMetadataCache(XOAICacheManager.java:81)
     at 
org.dspace.xoai.util.XOAICacheManager.compileItem(XOAICacheManager.java:87)
     at org.dspace.xoai.app.XOAI.compile(XOAI.java:490)
     at org.dspace.xoai.app.XOAI.main(XOAI.java:438)
     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:616)
     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)

Is the "oai import" the right command at all? Or do I need to adjust 
some other things for OAI to access all my items? Collections and 
communities are displayed fine, btw.

Thanks for your help,
Joachim

-- 
Joachim Bingel
Institut für Deutsche Sprache, Zentrale Forschung
R5, 6-13, 68161 Mannheim
+49 - (0)621-1581-456 | http://www.ids-mannheim.de


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
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