eXtensibleCatalog / OAI-Toolkit

Synchronize MARC metadata in most ILSs with XC
5 stars 1 forks source link

NullPointerException (can't harvest) #111

Closed patrickzurek closed 8 years ago

patrickzurek commented 8 years ago

JIRA issue created by: rcook Originally opened: 2012-06-26 09:30 AM

Issue body: GC Issue http://code.google.com/p/xcoaitoolkit/issues/detail?id=88

Reported by project member banderson@library.rochester.edu, Oct 20, 2011

In attempting to recreate this issue: http://code.google.com/p/xcmetadataservicestoolkit/issues/detail?id=316

The first file (bib2marcxml-roman.xml) loaded OK, but when I went to harvest, I got the following exception:

ax.servlet.ServletException: java.lang.NullPointerException org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:617) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.NullPointerException
info.extensiblecatalog.OAIToolkit.utils.TextUtil.luceneToDate(TextUtil.java:185)
info.extensiblecatalog.OAIToolkit.oai.dataproviders.LuceneFacadeDataProvider.initializeCachedFullHarvest(LuceneFacadeDataProvider.java:103)
info.extensiblecatalog.OAIToolkit.oai.dataproviders.LuceneFacadeDataProvider.prepareQuery(LuceneFacadeDataProvider.java:354)
info.extensiblecatalog.OAIToolkit.api.Facade.handleRecordLists(Facade.java:666)
info.extensiblecatalog.OAIToolkit.api.Facade.doCachedSearch(Facade.java:387)
info.extensiblecatalog.OAIToolkit.api.Facade.doListRecords(Facade.java:357)
info.extensiblecatalog.OAIToolkit.struts.action.OaiRequestAction.execute(OaiRequestAction.java:80)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Chris, if you're able to fix this and get it running - could you either capture 2 harvest out files so we can import them into the mst or let John know when an oai-toolkit is available to he can capture them to a file?

This would be a 2-phased load/harvest, load/harvest since it has to do with updates.