Hi,
I started working with Geonetwork 2.1.0 this week. Installation (with tomcat
and postgres) seemed to work out fine, but I have some problems with the
graphical search window and editing and creating metadata. Does anyone have
the same difficulties or might this be due to an error during installation?
The jeeves.log for the second and third problem is added at the bottom of
this message.
Regards,
Claudia
I. Graphical window for searching by location: map does not show in home
page
II. As I had difficulties in validating my metadata record created according
to the standard ISO vector template I tried validating the existing sample
metadata after duplication (metadata>>Create, adding to newly created
group).
This worked fine for 'hydrological basins in Europe'(check>>metadata valid)
but not for 'hydrological basins in Africa' (check>>metadata not valid). The
jeeves log reports "Attribute 'id' must appear on element 'gml:TimePeriod'",
however the element timeperiod is exactly the same as for the metadatarecord
'hydrological basins in Europe' where validation works fine.
III.
An errormessage ('the requested operation could not be performed') shows up
when I try to create new metadata according to the dublin-core profile.
JEEVES.LOG:
******************************************************************
II.
******************************************************************
2007-09-26 11:14:47,953 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/en/metadata.update.validate
2007-09-26 11:14:47,953 DEBUG [jeeves.request] - Method : POST
2007-09-26 11:14:47,953 DEBUG [jeeves.request] - Content type :
application/x-www-form-urlencoded
2007-09-26 11:14:47,953 DEBUG [jeeves.request] - Accept :
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-09-26 11:14:47,953 INFO [jeeves.service] - Dispatching :
metadata.update.validate
2007-09-26 11:14:47,953 DEBUG [jeeves.service] - -> parameters are :
<request>
<_200>The linework of the map is obtained by delineating drainage basin
boundaries from an hydrologically corrected digital elevation model with a
resolution of 1 * 1 km.</_200>
<_108>AWRD</_108>
<_29>Rome</_29>
<place>338</place>
<place>-17.3;51.1;-34.6;38.2</place>
<_106>AQUASTAT</_106>
<_27>Viale delle Terme di Caracalla</_27>
<_110_codeListValue>theme</_110_codeListValue>
<_104>hydrology</_104>
<_58>Hydrological Basins in Africa - testCheck</_58>
<template>n</template>
<_166>WWW:LINK-1.0-http--link</_166>
<_134>inlandWaters</_134>
<_102>water resources</_102>
<_23 />
<child />
<_164>http://www.fao.org/ag/AGL/aglw/aquastat/watresafrica/index.stm</\_164>
<_100>river basins</_100>
<_39_codeListValue>pointOfContact</_39_codeListValue>
<_21 />
<_52>WGS 1984</_52>
<_130>eng</_130>
<access />
<_190>Hydrological basins in Africa</_190>
<_122_codeListValue>vector</_122_codeListValue>
<name />
<fname />
<_128>5000000</_128>
<_78_codeListValue>asNeeded</_78_codeListValue>
<_5>eng</_5>
<_15>Technical Officer</_15>
<_68_codeListValue>mapDigital</_68_codeListValue>
<_196_codeListValue>dataset</_196_codeListValue>
<_188>hydrological_basins</_188>
<_156>You can customize the template to suit your needs. You can add and
remove fields and fill out default information (e.g. contact details).
Fields you can not change in the default view may be accessible in the more
comprehensive (and more complex) advanced view. You can even use the XML
editor to create custom structures, but they have to be validated by the
system, so know what you do :-)</_156>
<_13>FAO - NRCW</_13>
<_186>OGC:WMS-1.1.1-http-get-map</_186>
<_154>38.2</_154>
<_11>Jippe Hoogeveen</_11>
<_184>http://193.43.36.137/ows/296</\_184>
<_152>-34.6</_152>
<_120 />
<_54_pointOfContact>_s5</_54_pointOfContact>
<_150>51.1</_150>
<_72>This dataset is developed as part of a GIS-based information system
on water resources for the African continent. It has been published in the
framework of the AQUASTAT - programme of the Land and Water Division of the
Food and Agriculture Organization of the United Nations, as part of FAO Land
and Water Digital Media Series #13: "Atlas of Water Resources and Irrigation
in Africa".

For a wider distribution and to support other projects at FAO this map is
also distributed in a DVD as part of a publication entitled: "Jenness, J.;
Dooley, J.; Aguilar-Manjarrez, J.; Riva, C. African Water Resource Database.
GIS-based tools for inland aquatic resource management. 2. Technical manual
and workbook. CIFA Technical Paper. No. 33, Part 2. Rome, FAO. 2007. 308
p."</_72>
<_180>Hydrological basins in Africa (Shapefile Format)</_180>
<_70>Major hydrological basins and their sub-basins. This dataset divides
the African continent according to its hydrological characteristics.
The dataset consists of the following information:- numerical code and name
of the major basin (MAJ_BAS and MAJ_NAME); - area of the major basin in
square km (MAJ_AREA); - numerical code and name of the sub-basin (SUB_BAS
and SUB_NAME); - area of the sub-basin in square km (SUB_AREA); - numerical
code of the sub-basin towards which the sub-basin flows (TO_SUBBAS) (the
codes -888 and -999 have been assigned respectively to internal sub-basins
and to sub-basins draining into the sea)</_70>
<title />
<id>20</id>
<_148>-17.3</_148>
<ref />
<_37>jippe.hoogeveen@anonymised.com</_37>
<_116_codeListValue>place</_116_codeListValue>
<_114>Africa</_114>
<_35>Italy</_35>
<_176>WWW:DOWNLOAD-1.0-http--download</_176>
<_98>watersheds</_98>
<_66>First</_66>
<_33>00153</_33>
<currTab>simple</currTab>
<_174>http://localhost:8080/geonetwork/srv/en/resources.get?id=20&fname=basins.zip&access=private</\_174>
<_142 />
<_31 />
<_141 />
<_62>2000-07-19T14:45:00</_62>
<_170>Online link to the 'Water Resources and Irrigation in Africa'-
website</_170>
<version>3</version>
<_74_codeListValue>completed</_74_codeListValue>
<_64_codeListValue>creation</_64_codeListValue>
</request>
2007-09-26 11:14:48,375 ERROR [jeeves.service] - Exception when executing
service
2007-09-26 11:14:48,390 ERROR [jeeves.service] - (C) Exc :
org.jdom.JDOMException: Exception in startElement: cvc-complex-type.4:
Attribute 'id' must appear on element 'gml:TimePeriod'.
2007-09-26 11:14:48,390 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>Exception in startElement: cvc-complex-type.4: Attribute 'id'
must appear on element 'gml:TimePeriod'.</message>
<class>SAXException</class>
<stack>
<at class="org.jdom.transform.JDOMSource$DocumentReader"
file="JDOMSource.java" line="483" method="parse" />
<at class="org.apache.xerces.jaxp.validation.ValidatorHandlerImpl"
file="???" line="-1" method="validate" />
<at class="org.apache.xerces.jaxp.validation.ValidatorImpl" file="???"
line="-1" method="validate" />
<at class="javax.xml.validation.Validator" file="???" line="-1"
method="validate" />
<at class="jeeves.utils.Xml" file="Xml.java" line="231"
method="validate" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="282" method="validate" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="1041" method="updateMetadata" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="1021" method="updateMetadata" />
<at class="org.fao.geonet.services.metadata.EditUtils"
file="EditUtils.java" line="121" method="updateContent" />
<at class="org.fao.geonet.services.metadata.Update" file="Update.java"
line="92" method="exec" />
</stack>
<request>
<language>en</language>
<service>metadata.update.validate</service>
</request>
</error>
2007-09-26 11:14:48,390 INFO [jeeves.service] - -> dispatching to error
for : metadata.update.validate
2007-09-26 11:14:48,453 INFO [jeeves.service] - -> transforming with
stylesheet : C:\Program Files\geonetwork\web\geonetwork\/xsl/res-error.xsl
2007-09-26 11:14:48,500 INFO [jeeves.service] - -> end error
transformation for : metadata.update.validate
2007-09-26 11:14:48,500 INFO [jeeves.service] - -> error ended for :
metadata.update.validate
2007-09-26 11:15:32,750 INFO [jeeves.request] -
******************************************************************
III.
******************************************************************
2007-09-26 11:16:03,390 INFO [jeeves.request] -
2007-09-26 11:16:03,390 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/en/metadata.create.form
2007-09-26 11:16:03,406 DEBUG [jeeves.request] - Method : GET
2007-09-26 11:16:03,406 DEBUG [jeeves.request] - Content type : null
2007-09-26 11:16:03,406 DEBUG [jeeves.request] - Accept :
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-09-26 11:16:03,406 INFO [jeeves.service] - Dispatching :
metadata.create.form
2007-09-26 11:16:03,406 DEBUG [jeeves.service] - -> no input parameters
2007-09-26 11:16:03,406 INFO [jeeves.service] - -> dispatching to output
for : metadata.create.form
2007-09-26 11:16:03,468 INFO [jeeves.webapp.metadata.create.form] -
Creating searcher
2007-09-26 11:16:03,515 INFO [jeeves.webapp.metadata.create.form] -
Returning search data
2007-09-26 11:16:03,703 INFO [jeeves.service] - -> transforming with
stylesheet : C:\Program
Files\geonetwork\web\geonetwork\/xsl/metadata-create.xsl
2007-09-26 11:16:03,781 INFO [jeeves.service] - -> end transformation
for : metadata.create.form
2007-09-26 11:16:03,781 INFO [jeeves.service] - -> output ended for :
metadata.create.form
2007-09-26 11:16:03,781 INFO [jeeves.service] - -> dispatch ended for :
metadata.create.form
2007-09-26 11:16:07,953 INFO [jeeves.request] -
2007-09-26 11:16:07,953 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/en/metadata.create
2007-09-26 11:16:07,953 DEBUG [jeeves.request] - Method : POST
2007-09-26 11:16:07,953 DEBUG [jeeves.request] - Content type :
application/x-www-form-urlencoded
2007-09-26 11:16:07,953 DEBUG [jeeves.request] - Accept :
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-09-26 11:16:07,953 INFO [jeeves.service] - Dispatching :
metadata.create
2007-09-26 11:16:07,953 DEBUG [jeeves.service] - -> parameters are :
<request>
<group>3</group>
<id>1</id>
</request>
2007-09-26 11:16:08,265 INFO [jeeves.service] - -> dispatching to output
for : metadata.create
2007-09-26 11:16:08,265 INFO [jeeves.service] - -> forwarding to :
metadata.edit
2007-09-26 11:16:08,265 INFO [jeeves.service] - Dispatching : metadata.edit
2007-09-26 11:16:08,265 DEBUG [jeeves.service] - -> parameters are :
<request>
<id>21</id>
<forward service="metadata.create" />
</request>
2007-09-26 11:16:08,265 ERROR [jeeves.service] - Exception when executing
service
2007-09-26 11:16:08,281 ERROR [jeeves.service] - (C) Exc :
java.lang.IllegalArgumentException: Mismatch between schema and xml: No type
for 'element' : dc:title with parent simpledc
2007-09-26 11:16:08,281 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>Mismatch between schema and xml: No type for 'element' : dc:title
with parent simpledc</message>
<class>IllegalArgumentException</class>
<stack>
<at class="org.fao.geonet.kernel.schema.MetadataSchema"
file="MetadataSchema.java" line="89" method="getElementType" />
<at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="541"
method="expandElement" />
<at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="464"
method="expandTree" />
<at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="473"
method="expandTree" />
<at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="130"
method="addEditingInfo" />
<at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="643" method="getMetadata" />
<at class="org.fao.geonet.services.metadata.GetEditableData"
file="GetEditableData.java" line="72" method="exec" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="141" method="execServices" />
<at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="372" method="dispatch" />
</stack>
<request>
<language>en</language>
<service>metadata.edit</service>
</request>
<request>
<id>21</id>
<forward service="metadata.create" />
</request>
</error>
************************************************************************************************************************************************************************************************************************************
--
View this message in context: http://www.nabble.com/error-creating-validating-metadata-tf4521173s18419.html#a12897565
Sent from the geonetwork-users mailing list archive at Nabble.com.