[GeoNetwork-users] Cannot find the declaration of the element OAI-PMH

Hello,

I just downloaded the new GN2.6 and I wanted to harvest an existing OAI
provider. Unfortunately I receive an error like

    <error id="operation-aborted">

      <message>Raised exception when searching</message>

      <class>OperationAbortedEx</class>

      <stack>

        <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="171" method="search" />

        <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="107" method="harvest" />

        <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.OaiPmhHarvester"
file="OaiPmhHarvester.java" line="218" method="doHarvest" />

        <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$Harvest
WithIndexProcessor" file="AbstractHarvester.java" line="379"
method="process" />

        <at class="org.fao.geonet.kernel.MetadataIndexerProcessor"
file="MetadataIndexerProcessor.java" line="39"
method="processWithFastIndexing" />

        <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester"
file="AbstractHarvester.java" line="406" method="harvest" />

        <at class="org.fao.geonet.kernel.harvest.harvester.Executor"
file="Executor.java" line="87" method="run" />

      </stack>

      <object>org.jdom.JDOMException: Exception in startElement:
cvc-elt.1: Cannot find the declaration of element 'OAI-PMH'.</object>

    </error>

I checked the OAI xml format and it seems ok. Do you have any suggestion
for this error?

Maurizio Nagni

Software Developer

British Atmospheric Data Centre

Rutherford Appleton Laboratory

Chilton, Didcot, OX11 0QX

United Kingdom

Phone: +44 (0)1235 567196

E-mail: maurizio.nagni@anonymised.com

--
Scanned by iCritical.

(attachments)

image001.png

Hi Maurizio,

I would suggest you to check your OAI harvester is accessing the Internet
because I remember I got an issue with OAI validation against XSD reference
on the Web...

HTH,

Mathieu

On Wed, Nov 17, 2010 at 1:47 PM, <maurizio.nagni@anonymised.com> wrote:

Hello,

I just downloaded the new GN2.6 and I wanted to harvest an existing OAI
provider. Unfortunately I receive an error like

   <error id="operation-aborted">

     <message>Raised exception when searching</message>

     <class>OperationAbortedEx</class>

     <stack>

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="171" method="search" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="107" method="harvest" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.OaiPmhHarvester"
file="OaiPmhHarvester.java" line="218" method="doHarvest" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$Harvest
WithIndexProcessor" file="AbstractHarvester.java" line="379"
method="process" />

       <at class="org.fao.geonet.kernel.MetadataIndexerProcessor"
file="MetadataIndexerProcessor.java" line="39"
method="processWithFastIndexing" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester"
file="AbstractHarvester.java" line="406" method="harvest" />

       <at class="org.fao.geonet.kernel.harvest.harvester.Executor"
file="Executor.java" line="87" method="run" />

     </stack>

     <object>org.jdom.JDOMException: Exception in startElement:
cvc-elt.1: Cannot find the declaration of element 'OAI-PMH'.</object>

   </error>

I checked the OAI xml format and it seems ok. Do you have any suggestion
for this error?

Maurizio Nagni

Software Developer

British Atmospheric Data Centre

Rutherford Appleton Laboratory

Chilton, Didcot, OX11 0QX

United Kingdom

Phone: +44 (0)1235 567196

E-mail: maurizio.nagni@anonymised.com

--
Scanned by iCritical.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Hello Mathieu,

If you are referring to the proxy configuration in the "System
Configuration" it is already setup.

As far regards the specific OAI configuration the "Validate" check is
not selected.

Also now it fails.

If have time you try to harvest it by yourself at
http://badc.nerc.ac.uk/badc_oai/provider

Maurizio Nagni

Software Developer

British Atmospheric Data Centre

Rutherford Appleton Laboratory

Chilton, Didcot, OX11 0QX

United Kingdom

Phone: +44 (0)1235 567196

E-mail: maurizio.nagni@anonymised.com

From: Mathieu Coudert [mailto:mathieu.coudert@anonymised.com]
Sent: 17 November 2010 13:28
To: Nagni, Maurizio (STFC,RAL,SSTD)
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Cannot find the declaration of the
element OAI-PMH

Hi Maurizio,

I would suggest you to check your OAI harvester is accessing the
Internet because I remember I got an issue with OAI validation against
XSD reference on the Web...

HTH,

Mathieu

On Wed, Nov 17, 2010 at 1:47 PM, <maurizio.nagni@anonymised.com> wrote:

Hello,

I just downloaded the new GN2.6 and I wanted to harvest an existing OAI
provider. Unfortunately I receive an error like

   <error id="operation-aborted">

     <message>Raised exception when searching</message>

     <class>OperationAbortedEx</class>

     <stack>

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="171" method="search" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="107" method="harvest" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.OaiPmhHarvester"
file="OaiPmhHarvester.java" line="218" method="doHarvest" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$Harvest
WithIndexProcessor" file="AbstractHarvester.java" line="379"
method="process" />

       <at class="org.fao.geonet.kernel.MetadataIndexerProcessor"
file="MetadataIndexerProcessor.java" line="39"
method="processWithFastIndexing" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester"
file="AbstractHarvester.java" line="406" method="harvest" />

       <at class="org.fao.geonet.kernel.harvest.harvester.Executor"
file="Executor.java" line="87" method="run" />

     </stack>

     <object>org.jdom.JDOMException: Exception in startElement:
cvc-elt.1: Cannot find the declaration of element 'OAI-PMH'.</object>

   </error>

I checked the OAI xml format and it seems ok. Do you have any suggestion
for this error?

Maurizio Nagni

Software Developer

British Atmospheric Data Centre

Rutherford Appleton Laboratory

Chilton, Didcot, OX11 0QX

United Kingdom

Phone: +44 (0)1235 567196

E-mail: maurizio.nagni@anonymised.com

--
Scanned by iCritical.

------------------------------------------------------------------------
------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
Scanned by iCritical.

(attachments)

image001.png

Maurizio,

On Wed, Nov 17, 2010 at 5:15 PM, <maurizio.nagni@anonymised.com> wrote:

Hello Mathieu,

If you are referring to the proxy configuration in the “System
Configuration” it is already setup.

As far regards the specific OAI configuration the “Validate” check is not
selected.

Also now it fails.

I did not refer to the validate option which refers to the metadata
validation but more to the OAI-PMH response which seems to be validated
with the following specified schema location :
<OAI-PMH xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd&quot;&gt;

Moreover, it seems that this validation does not take care of the proxy
configuration in Settings, unfortunately.

If have time you try to harvest it by yourself at
http://badc.nerc.ac.uk/badc_oai/provider

FYI, I managed to query this data provider using the geonetwork harvester
without any exception but I retrieve no results for the set 'SOLAS' and for
both metadata prefix 'dif' or 'oai_dc'.
At least I did not catch any exception.. So far I suspect an xsd validation
against the remote schemaLocation URL but maybe I'm totally wrong!

Regards,

Mathieu

Maurizio Nagni

Software Developer

British Atmospheric Data Centre

Rutherford Appleton Laboratory

Chilton, Didcot, OX11 0QX

United Kingdom

Phone: +44 (0)1235 567196

E-mail: maurizio.nagni@anonymised.com

*From:* Mathieu Coudert [mailto:mathieu.coudert@anonymised.com]
*Sent:* 17 November 2010 13:28
*To:* Nagni, Maurizio (STFC,RAL,SSTD)
*Cc:* geonetwork-users@lists.sourceforge.net
*Subject:* Re: [GeoNetwork-users] Cannot find the declaration of the
element OAI-PMH

Hi Maurizio,

I would suggest you to check your OAI harvester is accessing the Internet
because I remember I got an issue with OAI validation against XSD reference
on the Web...

HTH,

Mathieu

On Wed, Nov 17, 2010 at 1:47 PM, <maurizio.nagni@anonymised.com> wrote:

Hello,

I just downloaded the new GN2.6 and I wanted to harvest an existing OAI
provider. Unfortunately I receive an error like

   <error id="operation-aborted">

     <message>Raised exception when searching</message>

     <class>OperationAbortedEx</class>

     <stack>

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="171" method="search" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.Harvester"
file="Harvester.java" line="107" method="harvest" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.oaipmh.OaiPmhHarvester"
file="OaiPmhHarvester.java" line="218" method="doHarvest" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester$Harvest
WithIndexProcessor" file="AbstractHarvester.java" line="379"
method="process" />

       <at class="org.fao.geonet.kernel.MetadataIndexerProcessor"
file="MetadataIndexerProcessor.java" line="39"
method="processWithFastIndexing" />

       <at
class="org.fao.geonet.kernel.harvest.harvester.AbstractHarvester"
file="AbstractHarvester.java" line="406" method="harvest" />

       <at class="org.fao.geonet.kernel.harvest.harvester.Executor"
file="Executor.java" line="87" method="run" />

     </stack>

     <object>org.jdom.JDOMException: Exception in startElement:
cvc-elt.1: Cannot find the declaration of element 'OAI-PMH'.</object>

   </error>

I checked the OAI xml format and it seems ok. Do you have any suggestion
for this error?

Maurizio Nagni

Software Developer

British Atmospheric Data Centre

Rutherford Appleton Laboratory

Chilton, Didcot, OX11 0QX

United Kingdom

Phone: +44 (0)1235 567196

E-mail: maurizio.nagni@anonymised.com

--
Scanned by iCritical.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
Scanned by iCritical.

(attachments)

image001.png