Hi,
My testbed runs Dataverse v5.5. I try to harvest an Elsevier Pure repo and get a java error. The dataset seems correct to me.
For example:
<?xml version="1.0" encoding="UTF-8"?>
<OAI-PMH xmlns="
http://www.openarchives.org/OAI/2.0/" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2021-09-07T09:00:04Z</responseDate>
<request metadataPrefix="oai_dc" set="openaire_cris_products" verb="ListRecords">
https://pure.unamur.be/ws/oai</request>
<ListRecords>
<record>
<header>
<identifier>oai:pure.unamur.be:openaire_cris_products/c6de93dd-4a18-45f1-bf41-b92838f945ee</identifier>
<datestamp>2018-06-11T08:52:47Z</datestamp>
<setSpec>openaire_cris_products</setSpec>
</header>
<metadata>
<oai_dc:dc xmlns="
http://purl.org/dc/elements/1.1/" xmlns:oai_dc="
http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:ns2="
http://purl.org/dc/terms/">
<title xml:lang="fra">L'écrin aux trésors</title>
<creator>Biart, Guy</creator>
<creator>Wattecamps, Paul</creator>
<creator>Delvaux, Jean</creator>
<creator>Lepièce, Didier</creator>
<creator>Duchateau, Edouard</creator>
<publisher>FUNDP. Centre interfacultaire des médias de l'éducation</publisher>
<date>2000</date>
<type>other</type>
<identifier>
https://researchportal.unamur.be/en/publications/lecrin-aux-tresors(c6de93dd-4a18-45f1-bf41-b92838f945ee).html</identifier>
<source>Biart , G , Wattecamps , P , Delvaux , J , Lepièce , D & Duchateau , E , L'écrin aux trésors , 2000 , Produits numériques ou (audio)visuels , FUNDP. Centre interfacultaire des médias de l'éducation , Namur .</source>
<language>fra</language>
<rights>info:eu-repo/semantics/restrictedAccess</rights>
</oai_dc:dc>
</metadata>
</record>
......
......
</ListRecords>
</OAI-PMH>
and the harvest log says:
<record>
<date>2021-09-07T06:10:56.869795Z</date>
<millis>1630995056869</millis>
<nanos>795000</nanos>
<sequence>18444</sequence>
<logger>edu.harvard.iq.dataverse.harvest.client.HarvesterServiceBean.unamur2021-09-07T08-10-55</logger>
<level>SEVERE</level>
<class>edu.harvard.iq.dataverse.harvest.client.HarvesterServiceBean</class>
<method>logGetRecordException</method>
<thread>227</thread>
<message>Exception processing getRecord(), oaiUrl=
https://pure.unamur.be/ws/oai, identifier=oai:pure.unamur.be:openaire_cris_products/c6de93dd-4a18-45f1-bf41-b92838f945ee, javax.ejb.EJBTransactionRolledbackException, Exception thrown from bean: java.lang.NullPointerException</message>
</record>
and the server.log:
[2021-09-07T08:13:48.650+0200] [Payara 5.2020.6] [WARNING] [AS-EJB-00056] [javax.enterprise.ejb.container] [tid: _ThreadID=227 _ThreadName=__ejb-thread-pool10] [timeMillis: 1630995228650] [levelValue: 900] [[
A system exception occurred during an invocation on EJB ImportServiceBean, method: public edu.harvard.iq.dataverse.Dataset edu.harvard.iq.dataverse.api.imports.ImportServiceBean.doImportHarvestedDataset(edu.harvard.iq.dataverse.engine.command.DataverseRequest,edu.harvard.iq.dataverse.harvest.client.HarvestingClient,java.lang.String,java.lang.String,java.io.File,java.util.Date,java.io.PrintWriter) throws edu.harvard.iq.dataverse.api.imports.ImportException,java.io.IOException]]
[2021-09-07T08:13:48.650+0200] [Payara 5.2020.6] [WARNING] [] [javax.enterprise.ejb.container] [tid: _ThreadID=227 _ThreadName=__ejb-thread-pool10] [timeMillis: 1630995228650] [levelValue: 900] [[
javax.ejb.EJBTransactionRolledbackException: Exception thrown from bean: java.lang.NullPointerException
at com.sun.ejb.containers.BaseContainer.mapLocal3xException(BaseContainer.java:2368)
......
......
How to debug the issue ?
Regards,
Patrick