Hi Daan
Looking into it, I see that a scheduled job is not in the recommended
crontab.
https://wiki.duraspace.org/display/DSDOC4x/OAI+2.0+Server#OAI2.0Server-UsingSolr
https://wiki.duraspace.org/display/DSDOC4x/Scheduled+Tasks+via+Cron
Maybe the DSpace docs need updating.
I am going to add the "compile-items" task to my docs:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Daily_Admin/4.X
A while back during a particular "load shedding" my OAI index became
corrupt.
So I rebuilt it with:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Harvesting/4.X#If_using_the_SOLR_DB_.28solr.29
Hope this helps.
Cheers
hg
*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa
Tel: +27 21 808 4100 | Cell: +27 84 646 4758
On 18 February 2015 at 10:23, Daan Lessing <daan.less...@up.ac.za> wrote:
> Good morning,
>
>
> We are using DSpace 4.2
>
>
> When running the following command *dspace-run/bin/dspace oai import
> -c *to import SOLR Indexes it runs 100% until I get the following error;
>
>
> 4800 items imported so far...
>
> 4900 items imported so far...
>
> 5000 items imported so far...
>
> 5100 items imported so far...
>
> 5200 items imported so far...
>
> 5300 items imported so far...
>
> 5400 items imported so far...
>
> 5500 items imported so far...
>
> java.lang.NullPointerException
>
> at org.dspace.xoai.app.XOAI.index(XOAI.java:275)
>
> at org.dspace.xoai.app.XOAI.index(XOAI.java:229)
>
> at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:210)
>
> at org.dspace.xoai.app.XOAI.index(XOAI.java:128)
>
> at org.dspace.xoai.app.XOAI.main(XOAI.java:439)
>
> 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)
>
>
> Please can someone help with a solution on this problem.
>
>
> Regards,
>
> Daan
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette