[Geoserver-users] Could not determine geoserver request from http request POST ?

hi all,

i have got a pb with geoserver which is unable to dispatch my http post request, any clue ?

14 janv. 15:24:37 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: Could not determine geoserver request from http request POST /geoserver/wfs HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 8509
User-Agent: Java/1.5.0_09
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:336)

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr

I set request parameter. But now i have following exception : No such operation wfs null !!
my http post request seems to be wrong, but where ??

14 janv. 16:10:45 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: No such operation wfs null <wfs:GetFeature xmlns:wims="http://www.flysafe-eu.org/wims&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:cinclude="http://apache.org/cocoon/include/1.0&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot; version="1.1.0" service="WFS">

Sébastien Geindre a écrit :

hi all,

i have got a pb with geoserver which is unable to dispatch my http post request, any clue ?

14 janv. 15:24:37 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: Could not determine geoserver request from http request POST /geoserver/wfs HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 8509
User-Agent: Java/1.5.0_09
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:336)

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr

Hi Sébastien,

Which ever client you are using (is it a web browser) is sending request
as form-encoded, which is just kvp in the body. To have this handled
properly by GeoServer you need to set it to an xml mime type.

-Justin

Sébastien Geindre wrote:

hi all,

i have got a pb with geoserver which is unable to dispatch my http post
request, any clue ?

14 janv. 15:24:37 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: Could not determine geoserver
request from http request POST /geoserver/wfs HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 8509
User-Agent: Java/1.5.0_09
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:336)

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Which ever client you are using (is it a web browser) is sending request
as form-encoded, which is just kvp in the body. To have this handled
properly by GeoServer you need to set it to an xml mime type.
  

ok , i 've set the request parameter, nowi have following exception : No such operation wfs null !!
do i need to set operation parameter ?

Sébastien.

Can you show me the raw http log like you did in the original message.
There is nothing wrong with the xml or the request body.. its definitely
a problem with a http header.

Sébastien Geindre wrote:

Which ever client you are using (is it a web browser) is sending request
as form-encoded, which is just kvp in the body. To have this handled
properly by GeoServer you need to set it to an xml mime type.
  

ok , i 've set the request parameter, nowi have following exception : No
such operation wfs null !!
do i need to set operation parameter ?

Sébastien.

!DSPAM:4007,478ba14a118735409313003!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Justin Deoliveira a écrit :

Can you show me the raw http log like you did in the original message.
There is nothing wrong with the xml or the request body.. its definitely
a problem with a http header.
  

yes it is.
14 janv. 17:24:39 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: No such operation wfs null <wfs:GetFeature xmlns:wims="http://www.flysafe-eu.org/wims&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:cinclude="http://apache.org/cocoon/include/1.0&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot; version="1.1.0" service="WFS">
.... i cut the trace...

</wfs:Query>
</wfs:GetFeature>
        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:345)
        at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:185)
        at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

operation parameters seems not to be set...

Sébastien Geindre wrote:
  

Which ever client you are using (is it a web browser) is sending request
as form-encoded, which is just kvp in the body. To have this handled
properly by GeoServer you need to set it to an xml mime type.
  

ok , i 've set the request parameter, nowi have following exception : No
such operation wfs null !!
do i need to set operation parameter ?

Sébastien.

!DSPAM:4007,478ba14a118735409313003!

--
Sébastien Geindre
DPREVI/AERO/DEV
sebastien.geindre __at__ meteo.fr

Sorry, I meant can you include the details of the http request (header),
not the body. Like you did in the first email. This is what i mean:

14 janv. 15:24:37 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: Could not determine geoserver
request from http request POST /geoserver/wfs HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 8509
User-Agent: Java/1.5.0_09
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

-Justin

Sébastien Geindre wrote:

Justin Deoliveira a écrit :

Can you show me the raw http log like you did in the original message.
There is nothing wrong with the xml or the request body.. its definitely
a problem with a http header.
  

yes it is.
14 janv. 17:24:39 WARN [org.geoserver.ows] -
org.geoserver.platform.ServiceException: No such operation wfs null
<wfs:GetFeature xmlns:wims="http://www.flysafe-eu.org/wims&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:cinclude="http://apache.org/cocoon/include/1.0&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot; version="1.1.0"
service="WFS">
.... i cut the trace...

</wfs:Query>
</wfs:GetFeature>
       at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:345)
       at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:185)
       at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)

       at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)

       at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)

       at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)

       at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)

       at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:357)

       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

operation parameters seems not to be set...

Sébastien Geindre wrote:

Which ever client you are using (is it a web browser) is sending
request
as form-encoded, which is just kvp in the body. To have this handled
properly by GeoServer you need to set it to an xml mime type.
        

ok , i 've set the request parameter, nowi have following exception : No
such operation wfs null !!
do i need to set operation parameter ?

Sébastien.

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

I use geoserver and mapbuilder. I tried alter wfs-t example for insert cities
in localhost changing ../../../geoserver/wfs and ../../../geoserver/wms to
http://localhost:8080/geoserver/wfs and http://localhost:8080/geoserver/wms
respectively
but it don't work correctly, I can see information (getFeature operations)
but not insert (transcational operation)
technical info:

error message:
Could not determine geoserver request from http request
org.apache.catalina.connector.RequestFacade@anonymised.com

Response Headers:
Server Apache-Coyote/1.1
Content-Type text/xml;charset=ISO-8859-1
Content-Length 567
Date Tue, 12 Feb 2008 12:53:36 GMT

Request Headers:
Host localhost:8080
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Content-Type text/xml
serverUrl http://localhost:8080/geoserver/wfs
Referer http://localhost:8080/mapbuilder/examples/redeja/
Content-Length 859
Cookie JSESSIONID=124F9B1C897560923C2A7B48BDA50B40
Pragma no-cache
Cache-Control no-cache

any cue?

thanks in advance, Fran.
--
View this message in context: http://www.nabble.com/Could-not-determine-geoserver-request-from-http-request-POST---tp14804552p15433494.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

frangoro ha scritto:

I use geoserver and mapbuilder. I tried alter wfs-t example for insert cities
in localhost changing ../../../geoserver/wfs and ../../../geoserver/wms to
http://localhost:8080/geoserver/wfs and http://localhost:8080/geoserver/wms
respectively
but it don't work correctly, I can see information (getFeature operations)
but not insert (transcational operation)
technical info:

So if I understand correctly GetFeature works but Transaction returns
the "Could not determine geoserver request from http request"?

This usually happens if the Transaction request is not well formed (xml does not comply to the schema). The headers you provided look fine,
can you provide the request as well?

Cheers
Andrea