Hi, 
I use some external Web Feature Server in Geoserver as WFSDataStore for cascading. 
One of those produces the following error in GeoServer if its plublished as a Geoserver WMS layer and I am trying a GetFeatureInfo-Request or a OpenLayers Preview.
Other Web Feature Server works well with the same parameters.
For me it seems that the only difference is the Content-Type of the Web Feature Server Response. GeoServers GetFeature requests as outputformat "text/xml; subtype=gml/3.1.1" (see below) and the WFS Response Headers Content-Type is "application/xml;charset=UTF-8" (produces error) on the one hand and "text/xml;subtype=gml/3.1.1;charset=UTF-8" (works well) on the other.
So is it a WFS failure to provide a wrong Content-Type? But for xml both content-types "text/xml" and "application/xml" seem to be valid (http://www.ietf.org/rfc/rfc2376.txt)
Did I miss something? Any suggestions to get this working?

Thanks in advance

I can reproduce this in GeoServer 2.11.4, 2.12.1 and current Master on Ubuntu 16.04 and openjdk version "1.8.0_151"

First the debug-log with errors:
2018-02-01 10:04:19,350 DEBUG [data.wfs] - Returning operation URI for GET_FEATURE/GET: http://geodienste.hamburg.de/HH_WFS_Bodenrichtwerte?
2018-02-01 10:04:19,351 TRACE [wfs.requests] - Built GET request for GET_FEATURE: http://geodienste.hamburg.de/HH_WFS_Bodenrichtwerte?PROPERTYNAME=geom_zone&FILTER=%3Cogc%3AFilter+xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3ABBOX%3E%3Cogc%3APropertyName%3Egeom_zone%3C%2Fogc%3APropertyName%3E%3Cgml%3AEnvelope%3E%3Cgml%3AlowerCorner%3E409550.0306648858+5888378.9849262%3C%2Fgml%3AlowerCorner%3E%3Cgml%3AupperCorner%3E645321.7533968816+6004735.379559424%3C%2Fgml%3AupperCorner%3E%3C%2Fgml%3AEnvelope%3E%3C%2Fogc%3ABBOX%3E%3C%2Fogc%3AFilter%3E&TYPENAME=app%3Algv_brw_zoniert_alle&REQUEST=GetFeature&RESULTTYPE=RESULTS&OUTPUTFORMAT=text%2Fxml%3B+subtype%3Dgml%2F3.1.1&VERSION=1.1.0&SERVICE=WFS
2018-02-01 10:04:19,530 WARN [data.wfs] - Can't find a response parser factory for GET_FEATURE/'application/gml+xml; version=3.1'
2018-02-01 10:04:19,530 ERROR [data.ows] - Failed to execute request http://geodienste.hamburg.de/HH_WFS_Bodenrichtwerte?PROPERTYNAME=geom_zone&FILTER=%3Cogc%3AFilter+xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3ABBOX%3E%3Cogc%3APropertyName%3Egeom_zone%3C%2Fogc%3APropertyName%3E%3Cgml%3AEnvelope%3E%3Cgml%3AlowerCorner%3E409550.0306648858+5888378.9849262%3C%2Fgml%3AlowerCorner%3E%3Cgml%3AupperCorner%3E645321.7533968816+6004735.379559424%3C%2Fgml%3AupperCorner%3E%3C%2Fgml%3AEnvelope%3E%3C%2Fogc%3ABBOX%3E%3C%2Fogc%3AFilter%3E&TYPENAME=app%3Algv_brw_zoniert_alle&REQUEST=GetFeature&RESULTTYPE=RESULTS&OUTPUTFORMAT=text%2Fxml%3B+subtype%3Dgml%2F3.1.1&VERSION=1.1.0&SERVICE=WFS
2018-02-01 10:04:19,531 ERROR [geotools.rendering] - Can't find a response parser factory for GET_FEATURE/'application/gml+xml; version=3.1'
org.geotools.factory.FactoryNotFoundException: Can't find a response parser factory for GET_FEATURE/'application/gml+xml; version=3.1'


And debug-log with a working example:
2018-02-01 10:14:26,150 DEBUG [data.wfs] - Returning operation URI for GET_FEATURE/GET: http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_bplan
2018-02-01 10:14:26,150 TRACE [wfs.requests] - Built GET request for GET_FEATURE: http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_bplan?PROPERTYNAME=spatial_geometry%2Cspatial_name%2Cspatial_alias%2Cspatial_type%2CPLANNAME%2CBEREICH%2CBEZIRK%2CAFS_BEHOER%2CAFS_BESCHL%2CAFS_L_AEND%2CBBG_ANFANG%2CBBG_ENDE%2CAUL_ANFANG%2CAUL_ENDE%2CAUSLEG_WWW%2CFESTSG%2CFESTSG_VON%2CFESTSG_AM%2CFSG_GVBL_N%2CFSG_GVBL_S%2CFSG_GVBL_D%2CNORMKONTR%2CSCAN_WWW%2CGRUND_WWW&FILTER=%3Cogc%3AFilter+xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3ABBOX%3E%3Cogc%3APropertyName%3Espatial_geometry%3C%2Fogc%3APropertyName%3E%3Cgml%3AEnvelope%3E%3Cgml%3AlowerCorner%3E393553.60530879983+5822295.179596565%3C%2Fgml%3AlowerCorner%3E%3Cgml%3AupperCorner%3E394317.11991799326+5823058.694205758%3C%2Fgml%3AupperCorner%3E%3C%2Fgml%3AEnvelope%3E%3C%2Fogc%3ABBOX%3E%3C%2Fogc%3AFilter%3E&TYPENAME=fis%3Are_bplan&REQUEST=GetFeature&RESULTTYPE=RESULTS&OUTPUTFORMAT=text%2Fxml%3B+subtype%3Dgml%2F3.1.1&VERSION=1.1.0&SERVICE=WFS
2018-02-01 10:14:26,150 TRACE [wfs.requests] - Sending GetFeature request to http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_bplan?PROPERTYNAME=spatial_geometry%2Cspatial_name%2Cspatial_alias%2Cspatial_type%2CPLANNAME%2CBEREICH%2CBEZIRK%2CAFS_BEHOER%2CAFS_BESCHL%2CAFS_L_AEND%2CBBG_ANFANG%2CBBG_ENDE%2CAUL_ANFANG%2CAUL_ENDE%2CAUSLEG_WWW%2CFESTSG%2CFESTSG_VON%2CFESTSG_AM%2CFSG_GVBL_N%2CFSG_GVBL_S%2CFSG_GVBL_D%2CNORMKONTR%2CSCAN_WWW%2CGRUND_WWW&FILTER=%3Cogc%3AFilter+xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22%3E%3Cogc%3ABBOX%3E%3Cogc%3APropertyName%3Espatial_geometry%3C%2Fogc%3APropertyName%3E%3Cgml%3AEnvelope%3E%3Cgml%3AlowerCorner%3E393553.60530879983+5822295.179596565%3C%2Fgml%3AlowerCorner%3E%3Cgml%3AupperCorner%3E394317.11991799326+5823058.694205758%3C%2Fgml%3AupperCorner%3E%3C%2Fgml%3AEnvelope%3E%3C%2Fogc%3ABBOX%3E%3C%2Fogc%3AFilter%3E&TYPENAME=fis%3Are_bplan&REQUEST=GetFeature&RESULTTYPE=RESULTS&OUTPUTFORMAT=text%2Fxml%3B+subtype%3Dgml%2F3.1.1&VERSION=1.1.0&SERVICE=WFS
2018-02-01 10:14:26,159 TRACE [wfs.requests] - Creating GetFeature request parameters for {http://www.berlin.de/broker}re_bplan
2018-02-01 10:14:26,160 DEBUG [wfs.requests] - Supported filter: FastBBOX [property=spatial_geometry, envelope=ReferencedEnvelope[393553.60530879983 : 394317.11991799326, 5822295.179596565 : 5823058.694205758]]. Unsupported filter: Filter.INCLUDE

 
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to