Dear reader,
I am new to GeoServer, so I hope I have come to the right place.
I am using GeoServer 2.10.0, running on Ubuntu 16.04 LTS.
I try to get exceptions as JSON, so I use the query parameter
EXCEPTIONS=application/json (as written here for WFS:
http://docs.geoserver.org/stable/en/user/services/wfs/reference.html or
here for WMS:
http://docs.geoserver.org/stable/en/user/services/wms/reference.html)
If I perform an invalid request for a WMS, I successfully receive an error
in JSON:
*************************************************************************************************************************************************
-EXAMPLE:
*************************************************************************************************************************************************
http://localhost:8080/geoserver/test/wms?SERVICE=wms&VERSION=1.3.0&REQUEST=GetMap&EXCEPTIONS=application/json
{
"version": "1.3.0",
"exceptions": [
{
"code": "MissingOrInvalidParameter",
"locator": "noLocator",
"text": "Missing or invalid requested map size. Parameters WIDTH and
HEIGHT shall be present and be integers > 0. Got WIDTH=0, HEIGHT=0"
}
]
}
*************************************************************************************************************************************************
But the request parameter does not work for WFS, in my case.
*************************************************************************************************************************************************
-EXAMPLE:
*************************************************************************************************************************************************
http://localhost:8080/geoserver/test/wfs?SERVICE=wfs&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=INVALIDTYPENAME&outputFormat=application/json&EXCEPTIONS=application/json
<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="
http://www.opengis.net/ows/1.1" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" version="2.0.0"
xsi:schemaLocation="http://www.opengis.net/ows/1.1
http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd">
<ows:Exception exceptionCode="InvalidParameterValue" locator="typeName">
<ows:ExceptionText>Feature type :INVALIDTYPENAME
unknown</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
*************************************************************************************************************************************************
Unfortunately I was not able to find a solution. So I would like to ask for
your advice.
I would be happy if someone could point out the source of the error.
Kind regards
Niklas
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users