Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSW Harvesting: Missing 'nextRecord' attribute in 'SearchResults' #1429

Closed
darndtrvr opened this issue Feb 5, 2016 · 3 comments
Closed

CSW Harvesting: Missing 'nextRecord' attribute in 'SearchResults' #1429

darndtrvr opened this issue Feb 5, 2016 · 3 comments

Comments

@darndtrvr
Copy link

After migration from GeoNetwork 3.0.2 to 3.0.3 I get an error harvesting metadata from Terra Catalog:

2016-02-05 00:02:24,793 ERROR [CSW] - Unknown error trying to harvest 2016-02-05 00:02:24,794 ERROR [CSW] - Missing 'nextRecord' attribute in 'SearchResults' 2016-02-05 00:02:24,794 ERROR [CSW] - Missing 'nextRecord' attribute in 'SearchResults' OperationAbortedEx : Missing 'nextRecord' attribute in 'SearchResults' at org.fao.geonet.kernel.harvest.harvester.csw.Harvester.getSearchResultAttribute(Harvester.java:593) at org.fao.geonet.kernel.harvest.harvester.csw.Harvester.search(Harvester.java:291) at org.fao.geonet.kernel.harvest.harvester.csw.Harvester.harvest(Harvester.java:110) at org.fao.geonet.kernel.harvest.harvester.csw.CswHarvester.doHarvest(CswHarvester.java:174) at org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$HarvestWithIndexProcessor.process(AbstractHarvester.java:497) at org.fao.geonet.kernel.harvest.harvester.AbstractHarvester.harvest(AbstractHarvester.java:566) at org.fao.geonet.kernel.harvest.harvester.HarvesterJob.execute(HarvesterJob.java:28) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)

@etj
Copy link
Member

etj commented Apr 27, 2016

The nextRecord attribute is required according to the CSW specification, so the "bad behaviour" seems to be on the side of the server being harvested.
Can you please provide the CSW URL in order to perform some tests and find a possible workaround?

@darndtrvr
Copy link
Author

You can try the URL of the Geocatalog from NRW in Germany: https://www.geoportal1.nrw.de/soapServices/CSWStartup?version=2.0.2&request=GetCapabilities&service=CSW

@etj
Copy link
Member

etj commented Apr 27, 2016

Ok ty, some basic tests performed on that URL.
These are the returned SearchResults attributes, when the startPosition is low enough to get some results:

    <csw:SearchResults numberOfRecordsMatched="1399" numberOfRecordsReturned="20">

When the requested startPosition is greater than the numberOfRecordsMatched attribute, we get a 0 in the numberOfRecordsReturned:

    <csw:SearchResults numberOfRecordsMatched="1399" numberOfRecordsReturned="0"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants