[GeoNetwork-users] Error in XSD schema parsing

Hello,
I think that I found bug in Geonetwork's schema parsing. This error is
connected with enumeration types in xsd.
I added new schema to GN and when I try to edit files validated with this
schema in GN I get error:

<error id="error">
  <message>java.util.ArrayList</message>
  <class>ClassCastException</class>
  <stack>
    <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="994"
method="addValues" />
    <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="660"
method="expandElement" />
    <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="617"
method="expandTree" />
    <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="626"
method="expandTree" />
    <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="626"
method="expandTree" />
    <at class="org.fao.geonet.kernel.EditLib" file="EditLib.java" line="134"
method="addEditingInfo" />
    <at class="org.fao.geonet.kernel.DataManager" file="DataManager.java"
line="858" 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" />
  </stack>
  <request>
    <language>pl</language>
    <service>metadata.edit</service>
  </request>
</error>

The same error occurs when I try to edit validated file for ISO19139 with
element "isSphere". Example at the end.
I think this error occurs when element is declared directly inside some
other element. For example:

<element name="SecondDefiningParameter">
    <complexType>
      <choice>
        <element name="inverseFlattening" type="gml:MeasureType"/>
        <element name="semiMinorAxis" type="gml:LengthType"/>
        <element name="isSphere">
          <simpleType>
            <restriction base="string">
              <enumeration value="sphere"/>
            </restriction>
          </simpleType>
        </element>
      </choice>
    </complexType>
  </element>

Example of XML file, validated with ISO19139 schema, that cause this error:
http://n2.nabble.com/file/n2428744/METADANE_Z_BLEDEM_%2528isSphere%2529.xml
METADANE_Z_BLEDEM_%28isSphere%29.xml

Please, let me know is this really error and how can I deal with it.

--
View this message in context: http://n2.nabble.com/Error-in-XSD-schema-parsing-tp2428744p2428744.html
Sent from the geonetwork-users mailing list archive at Nabble.com.