No response on –users, anyone on –devel have any ideas please?
Just.
From: Justin Rowles (C)
Sent: 18 January 2011 11:00
To: geonetwork-users@lists.sourceforge.net
Subject: CSW Harvesting between Geonetwork nodes.
Hallo,
I have installed two completely clean geonetwork 2.6.1 instances, and put a single record in one of them. I am now attempting to harvest it into the other one. I am getting a null pointer exception from within apache commons.
According to the log, the correct data is being sent back, but the problem is being thrown in the ‘finally’ block of CatalogRequest.doExecute.
Can anyone suggest what is going wrong?
2011-01-18 05:52:47,656 WARN [geonetwork.harvester] - Raised exception when searching : java.lang.NullPointerException
at org.apache.commons.httpclient.HttpMethodBase.getStatusText(HttpMethodBase.java:801)
at org.fao.geonet.csw.common.requests.CatalogRequest.setupReceivedData(CatalogRequest.java:512)
at org.fao.geonet.csw.common.requests.CatalogRequest.doExecute(CatalogRequest.java:434)
at org.fao.geonet.csw.common.requests.CatalogRequest.execute(CatalogRequest.java:184)
at org.fao.geonet.kernel.harvest.harvester.csw.Harvester.doSearch(Harvester.java:417)
at org.fao.geonet.kernel.harvest.harvester.csw.Harvester.search(Harvester.java:251)
at org.fao.geonet.kernel.harvest.harvester.csw.Harvester.harvest(Harvester.java:93)
at org.fao.geonet.kernel.harvest.harvester.csw.CswHarvester.doHarvest(CswHarvester.java:212)
at org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$HarvestWithIndexProcessor.process(AbstractHarvester.java:379)
at org.fao.geonet.kernel.MetadataIndexerProcessor.processWithFastIndexing(MetadataIndexerProcessor.java:39)
at org.fao.geonet.kernel.harvest.harvester.AbstractHarvester.harvest(AbstractHarvester.java:406)
at org.fao.geonet.kernel.harvest.harvester.Executor.run(Executor.java:87)
This means that I then get an exception thrown in the Harvester class, “Raised exception when searching”.
My CSW entries are as follows:
Service URL = http://46.51.141.1/brian1/srv/en/csw?request=GetCapabilities&service=CSW&acceptVersions=2.0.2
Use account = true, credentials are correct.
No privileges are selected
Justin.
This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.
Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.
Thank you for your cooperation.
Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
http://www.ordnancesurvey.co.uk