[GeoNetwork-users] error in xml ISO19139 package "data quality"

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-"data-quality"-tf4738101s18419.html#a13549660
Sent from the geonetwork-users mailing list archive at Nabble.com.

I suspect that it is because the gml:id is blank on gml:UnitDefinition Emanuele - I have a fix which I'll commit shortly that will fix this. In the meantime you could edit the xml and insert a value such as ud1 for the gml:id attribute.

Cheers,
Simon

emanuele 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

thanks Simon, this ok
there is another problem

when I run geonet2.1 and:

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[+]"

the tha xml <gml:UnitDefinition> is empty, instead it should contain at
least the tag <gml:identifier>
it allows of validare the metadata

this is correct:
<gml:UnitDefinition gml:id="id1">
   <gml:identifier
codeSpace="http://www.bipm.org/en/si/base_units&quot;&gt;m&lt;/gml:identifier&gt;
</gml:UnitDefinition>
.....

other tags that don't appear inside <gml:UnitDefinition> (but they aren't
necessary for the validation):
        <gml:UnitDefinition id="ID1">
           <gml:description>String</gml:description>
           <gml:descriptionReference owns="false"/>
           <gml:name codeSpace="http://www…">String</gml:name>
        </gml:UnitDefinition>

problem n.2
if I add tag <gml:identifier> from xml view
es.
<gml:UnitDefinition gml:id="id1">
   <gml:identifier
codeSpace="http://www.bipm.org/en/si/base_units&quot;&gt;m&lt;/gml:identifier&gt;
</gml:UnitDefinition>
when I go in "advanced view -> data quality" I can't see tha value "m"
therefore I can't edit it.

problem n.3
code incorrect:
<gmd:DQ_QuantitativeResult>
    ......
  <gmd:value>2</gmd:value>
</gmd:DQ_QuantitativeResult>

code correct:
<gmd:DQ_QuantitativeResult>
    .....
    <gmd:value>
          <gco:Record>2</gco:Record>
    </gmd:value>
</gmd:DQ_QuantitativeResult>

in 1, 2, 3 problem, is it correct my analysis?

thanks
emanuele masiero

Simon Pigot-4 wrote:

I suspect that it is because the gml:id is blank on gml:UnitDefinition
Emanuele - I have a fix which I'll commit shortly that will fix this. In
the meantime you could edit the xml and insert a value such as ud1 for
the gml:id attribute.

Cheers,
Simon

emanuele 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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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

--
View this message in context: http://www.nabble.com/error-in-xml-ISO19139-package-"data-quality"-tf4738101s18419.html#a13634092
Sent from the geonetwork-users mailing list archive at Nabble.com.

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-"data-quality"-tp13549660s18419p15372946.html
Sent from the geonetwork-users mailing list archive at Nabble.com.