[GeoNetwork-devel] XPath exception in ANZLIC Profile Package view - New GUI

Hello,

I am getting a xpath expression error whenever I try to view an ANZLIC
profile metadata record in "Package View". I am using my own build of the
GeoNetwork from the latest trunk (2.7) and have set the view in
config-gui.xml to use the new widgets interface. I loaded the ANZLIC Plugin
schema with no problem other than this error when I switch to package view:

http://osgeo-org.1560.n6.nabble.com/file/n4866344/GN-Error.png

I have noticed this error for several months, but about a week ago it
disappeared for some unknown reason - I assumed that a fix had been made to
the ANZLIC plugin schema. Now it is back. I am not sure if there is
something I am doing wrong (other schema dependencies or such?) or if this
is truly a bug.

Please advise.

Byron Cochrane

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XPath-exception-in-ANZLIC-Profile-Package-view-New-GUI-tp4866344p4866344.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Byron,

Looking at the logs, I can see that the error is occurring because more than one label is selected via an xpath from the labels.xml file used by the iso19139.anzlic schema. (The labels.xml file is used to display the user friendly name of an XML element in context.)

Along with the recent simplification of plugin schemas etc, this is a good opportunity to reorganize this file (and the codelists.xml file) as they should only have ANZLIC specific overrides (eg. from ANZLIC metadata guidelines or extra codelist elements in ANZLIC jurisdiction eg scope codes) for the base iso19139 (ISO19115/19139) schema. I've done that by slimming them down in preparation for any ANZLIC specific overrides to be added later.

Cheers,
Simon

PS: At a guess I'd say the error disappeared recently because the labels file probably wasn't being picked up at all following the change from two letter to three letter language codes.

________________________________________
From: ByronCinNZ [cochranes4@anonymised.com]
Sent: Friday, 13 April 2012 7:57 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: [GeoNetwork-devel] XPath exception in ANZLIC Profile Package view - New GUI

Hello,

I am getting a xpath expression error whenever I try to view an ANZLIC
profile metadata record in "Package View". I am using my own build of the
GeoNetwork from the latest trunk (2.7) and have set the view in
config-gui.xml to use the new widgets interface. I loaded the ANZLIC Plugin
schema with no problem other than this error when I switch to package view:

http://osgeo-org.1560.n6.nabble.com/file/n4866344/GN-Error.png

I have noticed this error for several months, but about a week ago it
disappeared for some unknown reason - I assumed that a fix had been made to
the ANZLIC plugin schema. Now it is back. I am not sure if there is
something I am doing wrong (other schema dependencies or such?) or if this
is truly a bug.

Please advise.

Byron Cochrane

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XPath-exception-in-ANZLIC-Profile-Package-view-New-GUI-tp4866344p4866344.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Simon,

Thanks for this. It should fix my problem.

But now I ran across something new. when I tried to update the schema, it
bailed on me and would not let me load the corrected schema. On restarting
GeoNetwork, I found the service would not start due to some errors with the
ANZLIC schema. Here is the message:

/OperationAbortedEx : Failed whilst reading schema-ident file
C:\geonetwork\web\geonetwork\WEB-INF\data\config\schema_plugins\iso19139.anzlic/schema-ident.xml.
Exception message if any is
C:\geonetwork\web\geonetwork\WEB-INF\data\config\schema_plugins\iso19139.anzlic\schema-ident.xml
(The system cannot find the file specified) Message Failed whilst reading
schema-ident file
C:\geonetwork\web\geonetwork\WEB-INF\data\config\schema_plugins\iso19139.anzlic/schema-ident.xml.
Exception message if any is
C:\geonetwork\web\geonetwork\WEB-INF\data\config\schema_plugins\iso19139.anzlic\schema-ident.xml
(The system cannot find the file specified)/

I have not yet tried to clean this up. I figured you may know immediately
what was going on here.

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XPath-exception-in-ANZLIC-Profile-Package-view-New-GUI-tp4866344p4875251.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Simon,

To tell you the truth I never have had much luck with the update schema
option. At best it deletes the schema and then I can reload it. But that
doesn't keep me from trying . . .

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XPath-exception-in-ANZLIC-Profile-Package-view-New-GUI-tp4866344p4875415.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi Byron,

No problems for me (at least in the recent versions I'm working with now). It does do a delete and reload and it should work so try it with the latest rev and if it still fails then please open a ticket.

Cheers,
Simon
________________________________________
From: ByronCinNZ [cochranes4@anonymised.com]
Sent: Friday, 13 April 2012 12:39 PM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] XPath exception in ANZLIC Profile Package view - New GUI

Simon,

To tell you the truth I never have had much luck with the update schema
option. At best it deletes the schema and then I can reload it. But that
doesn't keep me from trying . . .

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XPath-exception-in-ANZLIC-Profile-Package-view-New-GUI-tp4866344p4875415.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net

GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork