Hello,

I have a problem retrieving data from a wfs server (MapServer). Sometimes I
get the following exception:
Exception in thread "Feature Collection Buffer"
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.geotools.xml.gml.GMLComplexTypes$MultiPolygonType.getValue(GMLComplexTyp
es.java:3573)
at
org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHan
dler.java:156)
at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:264)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:139)
at org.geotools.data.wfs.WFSFeatureReader.run(WFSFeatureReader.java:125)

Is this a known problem? The error messages seem to be similar to the
messages in
http://jira.codehaus.org/browse/GEOT-900?page=all&decorator=printable. 
The exception occurs only with this server, which is a map server, and the
featureType "nFK" (schema see attachment), but not for all features of this
type. Because it happens not for all features of this type, I think it is
not a problem with the gml format. Can you please help me?

Thanks in advance,
Kerstin
<?xml version='1.0' encoding="ISO-8859-1" ?>
<schema
   targetNamespace="http://mapserver.gis.umn.edu/mapserver"; 
   xmlns:ms="http://mapserver.gis.umn.edu/mapserver"; 
   xmlns:ogc="http://www.opengis.net/ogc";
   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
   xmlns="http://www.w3.org/2001/XMLSchema";
   xmlns:gml="http://www.opengis.net/gml";
   elementFormDefault="qualified" version="0.1" >

  <import namespace="http://www.opengis.net/gml";
          schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd"; />

  <element name="nFK" 
           type="ms:nFKType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="nFKType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="KLASSENZEICHEN" type="string"/>
          <element name="ID" type="string"/>
          <element name="NFK_S" type="double"/>
          <element name="NFK_STUFE" type="double"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

</schema>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to