[Geoserver-users] Http response error showing KML file

Hello,
I am using GeoServer 1.7.3. I did not see this error in 1.7.2. Or am I doing something wrong?

From FireBug:

The http request:

url
http://borchbio.no:8080/geoserver/wms?bbox=583491.5599999999,6544090.26,666894.4400000001,6637003.74
&styles=&request=GetMap&version=1.1.1&layers=kulturminner_ns:funnsted&width=544&height=550&srs=EPSG:32632
&Format=kml

The response (blank page)

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http:

//schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">

Could not determine geoserver request from http request org.apache.catalina.connector.RequestFacade
@caa944

Thanks for any help!

/asle

Asle Benoni ha scritto:

Hello,
I am using GeoServer 1.7.3. I did not see this error in 1.7.2. Or am I doing something wrong?

From FireBug:

*The http request:*
url
http://borchbio.no:8080/geoserver/wms?bbox=583491.5599999999,6544090.26,666894.4400000001,6637003.74
&styles=&request=GetMap&version=1.1.1&layers=kulturminner_ns:funnsted&width=544&height=550&srs=EPSG:32632
&Format=kml

*The response (blank page)*
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http:
//schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" > <ServiceException code="MissingParameterValue" locator="request">
      Could not determine geoserver request from http request org.apache.catalina.connector.RequestFacade
@caa944
</ServiceException></ServiceExceptionReport>

Hum, the request is certainly malformed, it's missing the required parameter &service=WMS. Whatever standard WMS request you do the following 3 parameters are required:
- service
- version
- request

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thanks. It does not help adding “service=WMS”. What is strange is that this html works on another server and the request is to the same server.
I have attached screenshots of FireBug when the file is on a remote server (works) and when it is on a local server (doesntwork). I see the header response is different. Can it be something wrong with my Apache? From the server where it works:

Server Apache/2.0.52 (Red Hat)
Connection close

Transfer-Encoding chunked
Content-Type application/vnd.google-earth.kml+xml

The response is different when running the file directly on the server:

Server Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.6 mod_jk/1.2.23 mod_fastcgi/2.4.2 mod_jk
/1.2.23
MS-Author-Via DAV
Keep-Alive timeout=15, max=499

Connection Keep-Alive
Transfer-Encoding chunkedContent-Type application/vnd.ogc.se_xml;charset=UTF-8

/asle

Den 27. mars. 2009 kl. 08.42 skrev Andrea Aime:

Asle Benoni ha scritto:

Hello,

I am using GeoServer 1.7.3. I did not see this error in 1.7.2. Or am I doing something wrong?

From FireBug:

The http request:

url

http://borchbio.no:8080/geoserver/wms?bbox=583491.5599999999,6544090.26,666894.4400000001,6637003.74

&styles=&request=GetMap&version=1.1.1&layers=kulturminner_ns:funnsted&width=544&height=550&srs=EPSG:32632

&Format=kml

The response (blank page)

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http:

//schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">

Could not determine geoserver request from http request org.apache.catalina.connector.RequestFacade

@caa944

Hum, the request is certainly malformed, it’s missing the required parameter &service=WMS. Whatever standard WMS request you do the following 3 parameters are required:

  • service
  • version
  • request

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Asle Benoni ha scritto:

Thanks. It does not help adding "service=WMS". What is strange is that this html works on another server and the request is to the same server.
I have attached screenshots of FireBug when the file is on a remote server (works) and when it is on a local server (doesntwork). I see the header response is different. Can it be something wrong with my Apache? From the server where it works:

*Server** **Apache/2.0.52 (Red Hat)*
*Connection** **close*
*Transfer-Encoding** **chunked*
*Content-Type** **application/vnd.google-earth.kml+xml*

The response is different when running the file directly on the server:

*Server** **Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.6 mod_jk/1.2.23 mod_fastcgi/2.4.2 mod_jk*
*/1.2.23*
*MS-Author-Via** **DAV*
*Keep-Alive** **timeout=15, max=499*
*Connection** **Keep-Alive*
*Transfer-Encoding** **chunked*Content-Type** **application/vnd.ogc.se_xml;charset=UTF-8**

Well, yeah, it's different because the second server is reporting
an exception, whose content type is mandated by the WMS spec to:
application/vnd.ogc.se_xml

When you add service=WMS to the request you still get the
same service exception?

Cheers
Andrea

PS: the screenshot was not readable

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,
I am not sure what you mean “running stand alone with mod_proxy to bridge it to Apache”.
I think this must be something to do with Apache. I am running OS X Server 10.5 and could there be something with handlers or mime-types not defined? I thought since it works when the html file is on a linux Apache server. When the html file lies on a server - it is that server that sends the request? My server handles the request if it comes from a linux Apache server but not when the request comes from my OS X Server.

/asle

2009/3/27 Andrea Aime <aaime@anonymised.com>

Asle Benoni ha scritto:

Yes, that does not help

http://borchbio.no:8080/geoserver/wms?bbox=583491.5599999999,6544090.26,666894.4400000001,6637003.74

&styles=&request=GetMap&version=1.1.1&layers=kulturminner_ns:funnsted&width=544&height=550&srs=EPSG:32632
&Format=kml&service=WMS

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http:

//schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd <http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd>">

Could not determine geoserver request from http request org.apache.catalina.connector.RequestFacade
@a7da07

I guess there is an easy way to tell if it’s Apache that is ruining
the request. If you hit GeoServer directly (is it running stand alone
with mod_proxy to bridge it to Apache?) what do you get?

Also, you can change a flag in web.xml to make GeoServer log the
exact request it is seeing. Look for “Request Logging Filter”
and change the enabled param to “true”, then restart GeoServer.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,
When I run the URL directly on the cgi it returns a CGI file. If I run
it on the CGI on the Linux server it returns a KML file. So definetly
something to do with the way the CGI interprets the request or the way
the request is sent on OS X Server.

/asle

2009/3/28, Asle Benoni <asle.benoni@anonymised.com>:

Hi,
I am not sure what you mean "running stand alone with mod_proxy to bridge
it
to Apache".
I think this must be something to do with Apache. I am running OS X Server
10.5 and could there be something with handlers or mime-types not defined?
I
thought since it works when the html file is on a linux Apache server. When
the html file lies on a server - it is that server that sends the request?
My server handles the request if it comes from a linux Apache server but
not
when the request comes from my OS X Server.

/asle

2009/3/27 Andrea Aime <aaime@anonymised.com>

Asle Benoni ha scritto:

Yes, that does not help

http://borchbio.no:8080/geoserver/wms?bbox=583491.5599999999,6544090.26,666894.4400000001,6637003.74

&styles=&request=GetMap&version=1.1.1&layers=kulturminner_ns:funnsted&width=544&height=550&srs=EPSG:32632
&Format=kml&service=WMS

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM "http:

//schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd <
http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd&gt;&quot;&gt;
<ServiceExceptionReport version="1.1.1" > <ServiceException
code="MissingParameterValue" locator="request">

     Could not determine geoserver request from http request
org.apache.catalina.connector.RequestFacade
@a7da07
</ServiceException></ServiceExceptionReport>

I guess there is an easy way to tell if it's Apache that is ruining
the request. If you hit GeoServer directly (is it running stand alone
with mod_proxy to bridge it to Apache?) what do you get?

Also, you can change a flag in web.xml to make GeoServer log the
exact request it is seeing. Look for "Request Logging Filter"
and change the enabled param to "true", then restart GeoServer.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.