Hello.
I am trying to insert the attached iso 19139 metadata into geonetwork 2.1.0-beta2 using "XML Metadata Insert". It does not work and the error message on the web page says "The requested operation could not be performed." Here are the relevant(?) lines from the server console:
2007-06-04 13:34:21,107 ERROR [jeeves.service] - (C) Exc : java.lang.IllegalStateException: Root element not set
2007-06-04 13:34:21,108 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
<message>Root element not set</message>
<class>IllegalStateException</class>
<stack>
<at class="org.jdom.Document" file="Document.java" line="218" method="getRootElement" />
<at class="jeeves.utils.Xml" file="Xml.java" line="119" method="transform" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java" line="293" method="extractUUID" />
<at class="org.fao.geonet.services.metadata.Insert" file="Insert.java" line="114" method="exec" />
It looks like it fails to extract the uuid gmd:MD_Metadata/gmd:fileIdentifier/gco:CharacterString . Is this entry wrong in my file or is there something else wrong?
Regards,
- Tore.
<?xml version="1.0" encoding="UTF-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/schemas/2005/gmd" xmlns:gco="http://www.isotc211.org/schemas/2005/gco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.isotc211.org/schemas/2005/gmd ../gmd/gmd.xsd">
<gmd:fileIdentifier>
<gco:CharacterString>be10b0c0-13ee-1ab6a-000f1f1azzz1</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:contact>
<gmd:CI_ResponsibleParty>
<gmd:organisationName>
<gco:CharacterString>bla bla bla</gco:CharacterString>
</gmd:organisationName>
<gmd:role codeList="./resources/codeList.xml#CI_RoleCode" codeListValue="custodian">custodian</gmd:role>
</gmd:CI_ResponsibleParty>
</gmd:contact>
<gmd:dateStamp>
<gco:Date>2007-05-14</gco:Date>
</gmd:dateStamp>
<gmd:identificationInfo>
<gmd:MD_DataIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>tjobing</gco:CharacterString>
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gco:Date>2007-05-14</gco:Date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="./resources/codeList.xml#CI_DateTypeCode" codeListValue="publication">publication</gmd:CI_DateTypeCode>
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
</gmd:CI_Citation>
</gmd:citation>
<gmd:abstract>
<gco:CharacterString>hei og hopp</gco:CharacterString>
</gmd:abstract>
<gmd:language>
<gmd:LanguageCode codeList="./resources/codeList.xml#LanguageCode" codeListValue="eng">eng</gmd:LanguageCode>
</gmd:language>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>transportation</gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:extent>
<gmd:EX_Extent>
<gmd:geographicElement>
<gmd:EX_GeographicBoundingBox>
<gmd:westBoundLongitude>
<gco:Decimal>15.9675890000</gco:Decimal>
</gmd:westBoundLongitude>
<gmd:eastBoundLongitude>
<gco:Decimal>18.0000010000</gco:Decimal>
</gmd:eastBoundLongitude>
<gmd:southBoundLatitude>
<gco:Decimal>77.5000000000</gco:Decimal>
</gmd:southBoundLatitude>
<gmd:northBoundLatitude>
<gco:Decimal>78.0000000000</gco:Decimal>
</gmd:northBoundLatitude>
</gmd:EX_GeographicBoundingBox>
</gmd:geographicElement>
</gmd:EX_Extent>
</gmd:extent>
</gmd:MD_DataIdentification>
</gmd:identificationInfo>
</gmd:MD_Metadata>
Hi Tore,
you have to update the namespaces to latest versions:
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
Basically, the 'schemas' part has been removed.
Cheers,
Andrea
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/schemas/2005/gmd"
xmlns:gco="http://www.isotc211.org/schemas/2005/gco"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.isotc211.org/schemas/2005/gmd ../gmd/
gmd.xsd">
<gmd:fileIdentifier>
<gco:CharacterString>be10b0c0-13ee-1ab6a-000f1f1azzz1</
gco:CharacterString>
</gmd:fileIdentifier>
<gmd:contact>
<gmd:CI_ResponsibleParty>
<gmd:organisationName>
<gco:CharacterString>bla bla bla</gco:CharacterString>
</gmd:organisationName>
<gmd:role codeList="./resources/codeList.xml#CI_RoleCode"
codeListValue="custodian">custodian</gmd:role>
</gmd:CI_ResponsibleParty>
</gmd:contact>
<gmd:dateStamp>
<gco:Date>2007-05-14</gco:Date>
</gmd:dateStamp>
<gmd:identificationInfo>
<gmd:MD_DataIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>tjobing</gco:CharacterString>
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gco:Date>2007-05-14</gco:Date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="./resources/
codeList.xml#CI_DateTypeCode"
codeListValue="publication">publication</gmd:CI_DateTypeCode>
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
</gmd:CI_Citation>
</gmd:citation>
<gmd:abstract>
<gco:CharacterString>hei og hopp</gco:CharacterString>
</gmd:abstract>
<gmd:language>
<gmd:LanguageCode codeList="./resources/
codeList.xml#LanguageCode" codeListValue="eng">eng</gmd:LanguageCode>
</gmd:language>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>transportation</
gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:extent>
<gmd:EX_Extent>
<gmd:geographicElement>
<gmd:EX_GeographicBoundingBox>
<gmd:westBoundLongitude>
<gco:Decimal>15.9675890000</gco:Decimal>
</gmd:westBoundLongitude>
<gmd:eastBoundLongitude>
<gco:Decimal>18.0000010000</gco:Decimal>
</gmd:eastBoundLongitude>
<gmd:southBoundLatitude>
<gco:Decimal>77.5000000000</gco:Decimal>
</gmd:southBoundLatitude>
<gmd:northBoundLatitude>
<gco:Decimal>78.0000000000</gco:Decimal>
</gmd:northBoundLatitude>
</gmd:EX_GeographicBoundingBox>
</gmd:geographicElement>
</gmd:EX_Extent>
</gmd:extent>
</gmd:MD_DataIdentification>
</gmd:identificationInfo>
</gmd:MD_Metadata>
Thanks a lot Andrea!
- Tore.
On Jun 5, 2007, at 17:08 , Andrea Carboni wrote:
Hi Tore,
you have to update the namespaces to latest versions:
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
Basically, the 'schemas' part has been removed.
Cheers,
Andrea
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/schemas/2005/gmd"
xmlns:gco="http://www.isotc211.org/schemas/2005/gco"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.isotc211.org/schemas/2005/gmd ../gmd/
gmd.xsd">
<gmd:fileIdentifier>
<gco:CharacterString>be10b0c0-13ee-1ab6a-000f1f1azzz1</
gco:CharacterString>
</gmd:fileIdentifier>
<gmd:contact>
<gmd:CI_ResponsibleParty>
<gmd:organisationName>
<gco:CharacterString>bla bla bla</gco:CharacterString>
</gmd:organisationName>
<gmd:role codeList="./resources/codeList.xml#CI_RoleCode"
codeListValue="custodian">custodian</gmd:role>
</gmd:CI_ResponsibleParty>
</gmd:contact>
<gmd:dateStamp>
<gco:Date>2007-05-14</gco:Date>
</gmd:dateStamp>
<gmd:identificationInfo>
<gmd:MD_DataIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>tjobing</gco:CharacterString>
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gco:Date>2007-05-14</gco:Date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="./resources/
codeList.xml#CI_DateTypeCode"
codeListValue="publication">publication</gmd:CI_DateTypeCode>
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
</gmd:CI_Citation>
</gmd:citation>
<gmd:abstract>
<gco:CharacterString>hei og hopp</gco:CharacterString>
</gmd:abstract>
<gmd:language>
<gmd:LanguageCode codeList="./resources/
codeList.xml#LanguageCode" codeListValue="eng">eng</gmd:LanguageCode>
</gmd:language>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>transportation</
gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:extent>
<gmd:EX_Extent>
<gmd:geographicElement>
<gmd:EX_GeographicBoundingBox>
<gmd:westBoundLongitude>
<gco:Decimal>15.9675890000</gco:Decimal>
</gmd:westBoundLongitude>
<gmd:eastBoundLongitude>
<gco:Decimal>18.0000010000</gco:Decimal>
</gmd:eastBoundLongitude>
<gmd:southBoundLatitude>
<gco:Decimal>77.5000000000</gco:Decimal>
</gmd:southBoundLatitude>
<gmd:northBoundLatitude>
<gco:Decimal>78.0000000000</gco:Decimal>
</gmd:northBoundLatitude>
</gmd:EX_GeographicBoundingBox>
</gmd:geographicElement>
</gmd:EX_Extent>
</gmd:extent>
</gmd:MD_DataIdentification>
</gmd:identificationInfo>
</gmd:MD_Metadata>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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