Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.10-beta
    • Component/s: WFS
    • Labels:
      None

      Description

      wfs-ng seems to have problems with the following MapServer:

      http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?service=WFS&map=wmstest&request=GetCapabilities

      Two separate issues

      • WFS 1.0/1.1 not returning any features, no error message
      • WFS 2.0: cannot parse getcapabilities , stacktrace:
      java.lang.RuntimeException: Parsing failed for FeatureType: java.lang.RuntimeException: Unable to set property: OutputFormats for eobject: {http://www.opengis.net/wfs/2.0}FeatureTypeType
      	at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:165)
      	at org.geotools.xml.impl.BindingWalker$BindingExecutionChain.execute(BindingWalker.java:220)
      	at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:186)
      	at org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:237)
      	at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:744)
      	at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
      	at org.apache.xml.serializer.TreeWalker.endNode(TreeWalker.java:458)
      	at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:149)
      	at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
      	at org.geotools.xml.DOMParser.parse(DOMParser.java:89)
      	at org.geotools.data.wfs.internal.GetCapabilitiesResponse.parseCapabilities(GetCapabilitiesResponse.java:130)
      	... 127 more
      Caused by: java.lang.RuntimeException: Unable to set property: OutputFormats for eobject: {http://www.opengis.net/wfs/2.0}FeatureTypeType
      	at org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:301)
      	at org.geotools.wfs.v2_0.bindings.FeatureTypeTypeBinding.setProperty(FeatureTypeTypeBinding.java:114)
      	at org.geotools.xml.AbstractComplexEMFBinding.setProperties(AbstractComplexEMFBinding.java:206)
      	at org.geotools.xml.AbstractComplexEMFBinding.parse(AbstractComplexEMFBinding.java:147)
      	at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:156)
      	... 137 more
      Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to net.opengis.wfs20.OutputFormatListType
      	at net.opengis.wfs20.impl.FeatureTypeTypeImpl.eSet(FeatureTypeTypeImpl.java:553)
      	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1081)
      	at org.geotools.xml.EMFUtils.set(EMFUtils.java:69)
      	at org.geotools.xml.AbstractComplexEMFBinding.setProperty(AbstractComplexEMFBinding.java:236)
      	... 141 more
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                NielsCharlier Niels Charlier
                Reporter:
                NielsCharlier Niels Charlier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: