[GeoNetwork-users] CSW GetRecords

Hi,

I installed the BlueNet MEST version of GeoNetwork with the included sample data. I tried to create some test queries with the CSW test application to get familiarized with CSW.

I'm using the 'filter-example.xml' file as it is except changing lines 6 and 7 to that:

      <PropertyName>any</PropertyName>
      <Literal>%aus%</Literal>

When I'm setting the Result type to 'hits', I get 10 matching records. But when I set it to 'results' I get an exception:

Exception : org.fao.geonet.csw.common.exceptions.NoApplicableCodeEx: code=NoApplicableCode, locator=null, message=Rised exception while getting metadata :javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.

But that doensn't happen always. For example, if I'm changing the search string to %camera%, it works correctly. 'hits' will display 1 matching record, and 'results' will produce the expected record.

Can someone explain this behavior?

Many thanks,
    Michael

--
Michael Stegherr <Michael.Stegherr@anonymised.com>
Software Engineer, CSIRO Exploration and Mining
AARC (Australian Resources Research Centre)
26 Dick Perry Ave, Kensington WA 6151, Australia

Hi,

Sorry, I forgot to add that I'm using version 1.1 of BlueNet MEST.

Cheers,
    Michael

Hi Michael,

Are you sure metadata you retrieve are in a well known schema (iso19139,
dublin-core or fgdc, not in a specific iso profile ?), and is there a
corresponding stylesheet to perform the transformation for result (ie brief,
summary or full).
Indeed, the stylesheet path used for transformation is defined using the
metadata schema. It should be a reason why you get this exception with the
request and you d'ont get with another one.

In any case, the exception you're getting is coming from the
SearchController.java file, in the retrieveMetadata method.

I suspect a such problem but maybe I'm wrong.
thanks for let me know what's the problem.

HTH,
Cheers,

Mathieu

On Fri, Jan 16, 2009 at 8:58 AM, <Michael.Stegherr@anonymised.com> wrote:

Hi,

I installed the BlueNet MEST version of GeoNetwork with the included sample
data. I tried to create some test queries with the CSW test application to
get familiarized with CSW.

I'm using the 'filter-example.xml' file as it is except changing lines 6
and 7 to that:

                       <PropertyName>any</PropertyName>
                       <Literal>%aus%</Literal>

When I'm setting the Result type to 'hits', I get 10 matching records. But
when I set it to 'results' I get an exception:

Exception : org.fao.geonet.csw.common.exceptions.NoApplicableCodeEx:
code=NoApplicableCode, locator=null, message=Rised exception while getting
metadata :javax.xml.transform.TransformerConfigurationException: Failed to
compile stylesheet. 1 error detected.

But that doensn't happen always. For example, if I'm changing the search
string to %camera%, it works correctly. 'hits' will display 1 matching
record, and 'results' will produce the expected record.

Can someone explain this behavior?

Many thanks,
   Michael

--
Michael Stegherr <Michael.Stegherr@anonymised.com>
Software Engineer, CSIRO Exploration and Mining
AARC (Australian Resources Research Centre)
26 Dick Perry Ave, Kensington WA 6151, Australia

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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

--
Mathieu Coudert
mcoudert@anonymised.com

Hello Mathieu,

Thank you for the info. I did some more tests and created a few metadata records based on all the templates in BlueNet MEST 1.1.

Everything worked well except for this template:

MCP19139 - CORE Metadata for Marine Geographic Datasets (v1.3 19139)

I'm just starting to get familiarized with GeoNetwork and I'm not an XML specialist (yet), so any help would be appreciated.

Cheers,
    Michael

-----Original Message-----
From: Mathieu Coudert [mailto:mcoudert@anonymised.com]
Sent: Friday, 16 January 2009 8:03 PM
To: Stegherr, Michael (E&M, Kensington)
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] CSW GetRecords

Hi Michael,

Are you sure metadata you retrieve are in a well known schema
(iso19139, dublin-core or fgdc, not in a specific iso profile
?), and is there a corresponding stylesheet to perform the
transformation for result (ie brief, summary or full).
Indeed, the stylesheet path used for transformation is
defined using the metadata schema. It should be a reason why
you get this exception with the request and you d'ont get
with another one.

In any case, the exception you're getting is coming from the
SearchController.java file, in the retrieveMetadata method.

I suspect a such problem but maybe I'm wrong.
thanks for let me know what's the problem.

HTH,
Cheers,

Mathieu

On Fri, Jan 16, 2009 at 8:58 AM, <Michael.Stegherr@anonymised.com> wrote:

  Hi,
  
  I installed the BlueNet MEST version of GeoNetwork with
the included sample data. I tried to create some test queries
with the CSW test application to get familiarized with CSW.
  
  I'm using the 'filter-example.xml' file as it is except
changing lines 6 and 7 to that:
  
                         <PropertyName>any</PropertyName>
                         <Literal>%aus%</Literal>
  
  When I'm setting the Result type to 'hits', I get 10
matching records. But when I set it to 'results' I get an exception:
  
  Exception :
org.fao.geonet.csw.common.exceptions.NoApplicableCodeEx:
code=NoApplicableCode, locator=null, message=Rised exception
while getting metadata
:javax.xml.transform.TransformerConfigurationException:
Failed to compile stylesheet. 1 error detected.
  
  But that doensn't happen always. For example, if I'm
changing the search string to %camera%, it works correctly.
'hits' will display 1 matching record, and 'results' will
produce the expected record.
  
  Can someone explain this behavior?
  
  Many thanks,
     Michael
  
  --
  Michael Stegherr <Michael.Stegherr@anonymised.com>
  Software Engineer, CSIRO Exploration and Mining
  AARC (Australian Resources Research Centre)
  26 Dick Perry Ave, Kensington WA 6151, Australia
  
--------------------------------------------------------------
----------------
  This SF.net email is sponsored by:
  SourcForge Community
  SourceForge wants to tell your story.
  http://p.sf.net/sfu/sf-spreadtheword
  _______________________________________________
  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
  
--
Mathieu Coudert
mcoudert@anonymised.com