From: roczko <ro...@gi...> - 2008-02-09 17:19:02
|
Hallo... I have a similar problem.... 2008-02-09 18:04:13,203 ERROR [jeeves.service] - Exception when executing servic e 2008-02-09 18:04:13,203 ERROR [jeeves.service] - (C) Exc : org.jdom.JDOMExcepti on: Exception in startElement: cvc-complex-type.3.2.2: Attribute 'id' is not all owed to appear in element 'gml:UnitDefinition'. 2008-02-09 18:04:13,218 DEBUG [jeeves.service] - Raised exception while executin g service <error id="error"> <message>Exception in startElement: cvc-complex-type.3.2.2: Attribute 'id' is not allowed to appear in element 'gml:UnitDefinition'.</message> <class>SAXException</class> <stack> <at class="org.jdom.transform.JDOMSource$DocumentReader" file="JDOMSource.ja va" line="483" method="parse" /> <at class="com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl" file="???" line="-1" method="process" /> <at class="com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl" file="???" line="-1" method="validate" /> <at class="javax.xml.validation.Validator" file="???" line="-1" method="vali date" /> <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> I tried the solutions proposed but ist does not work, I can not validate the metadata. Could you give me some advise. best regards roger Emanuele Masiero wrote: > > Geonetwork 2.1 generates an error in the xml structure in "data quality" > (ISO19139) > > I go to tab of geonet2.1: advanced view -> data quality > I select "Absolute external positional accuracy" and I add "report[+]" > I select "Quantitative result" and I add "result[+]" > > This produces 2 tags incorrect: A) in line 6; B) in line 8 > > abstract xml: > > 1 <gmd:report> > 2 <gmd:DQ_AbsoluteExternalPositionalAccuracy> > 3 <gmd:result> > 4 <gmd:DQ_QuantitativeResult> > 5 <gmd:valueUnit> > 6 <gml:UnitDefinition gml:id=""/> > 7 </gmd:valueUnit> > 8 <gmd:value>666</gmd:value> > 9 </gmd:DQ_QuantitativeResult> > 10..... </gmd:result> > ............. > > line 8 incorrect: <gmd:value>666</gmd:value> > > line 8 correct: > <gmd:value> > <gco:Record>666</gco:Record> > </gmd:value> > > Another error is in line 6: tag <gml:UnitDefinition gml:id=""/> > But I don't know the solution!! :-(( > This i log file: > > 2007-11-02 16:02:38,172 ERROR [jeeves.service] - Exception when executing > service > 2007-11-02 16:02:38,172 ERROR [jeeves.service] - (C) Exc : > org.jdom.JDOMException: Exception in startElement: > cvc-datatype-valid.1.2.1: '' is not a valid value for 'NCName'. > 2007-11-02 16:02:38,172 DEBUG [jeeves.service] - Raised exception while > executing service > <error id="error"> > <message>Exception in startElement: cvc-datatype-valid.1.2.1: '' is not > a valid value for 'NCName'.</message> > <class>SAXException</class> > <stack> > <at class="org.jdom.transform.JDOMSource$DocumentReader" > file="JDOMSource.java" line="483" method="parse" /> > <at > class="com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl" > file="???" line="-1" method="process" /> > <at > class="com.sun.org.apache.xerces.internal.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.services.metadata.Update" file="Update.java" > line="88" 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" /> > </stack> > > > > thanks > emanuele masiero > padova - ITALY > > -- View this message in context: http://www.nabble.com/error-in-xml-ISO19139-package-%22data-quality%22-tp13549660s18419p15372946.html Sent from the geonetwork-users mailing list archive at Nabble.com. |