Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

i always has a question today!

Could not determine geoserver request from http request org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@cc9f79

this is my proxy.ashx:

using System.IO;
using System.Net;
using System.Web;

namespace PlaceNameService
{ 
    public class Proxy : IHttpHandler
    { 
        public void ProcessRequest(HttpContext context)
        {
            string url = context.Request.QueryString["url"];
            WebRequest request = HttpWebRequest.Create(url);
            WebResponse response = request.GetResponse();
            Stream stream = response.GetResponseStream();
            StreamReader reader = new StreamReader(stream); 
            context.Response.ContentType = response.ContentType;
            context.Response.Write(reader.ReadToEnd());
            reader.Close();
            stream.Close();
            response.Close();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

****and i visit it as this:****


var xmlPara = "<?xml version='1.0' encoding='UTF-8'?>"
            + "<wfs:GetFeature  service='WFS' version='1.0.0' "
            + "xmlns:wfs='http://www.opengis.net/wfs' "
            + "xmlns:gml='http://www.opengis.net/gml' "
            + "xmlns:ogc='http://www.opengis.net/ogc' "
            + "xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' "
            + "xsi:schemaLocation='http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd'>"
            + "<wfs:Query typeName='"+myLayer.poiLayerName+"' srsName='EPSG:4326'>"
            + "<ogc:Filter>"
            + "<ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!'>"
            + "<ogc:PropertyName>mc</ogc:PropertyName>"
            + "<ogc:Literal>*"+ keyword +"*</ogc:Literal>"
            + "</ogc:PropertyIsLike>"
            + "</ogc:Filter>"
           + "</wfs:Query>"
           + "</wfs:GetFeature>";

var proxy="../Proxy.ashx?url=";
var request = OpenLayers.Request.POST(
        {
            url: proxy+"http://192.168.1.252:8080/geoserver/PlaceNameWorSpace/ows?service=WFS&request=GetFeature",
            data: xmlPara,
            callback: handlerQuery
        });

and then i get the error below!

<ows:ExceptionReport 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://192.168.1.252:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd">
<ows:Exception exceptionCode="MissingParameterValue" locator="request">
<ows:ExceptionText>
Could not determine geoserver request from http request org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@cc9f79
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

my development enviroment:

iis 7.5+.net framenwork 4+openlayers 2.12+Geoserver 2.2

Can you tell me what should i do,thank you very much!waiting for your help!

share|improve this question
and in the javascript callback:the xmlHttpRequest-->responseStatus is 404 Not Found ! – Geosmart Oct 13 '12 at 13:07
1  
can you add the actual request that is sent to GeoServer (look in firebug) – iant Oct 14 '12 at 12:48
yes,i test it like this:localhost/PlaceNameService/Proxy.ashx?url=http://… – Geosmart Oct 15 '12 at 1:56
it response xml ---><?xml version="1.0" encoding="UTF-8"?> -<ows:ExceptionReport xmlns:xsi="w3.org/2001/XMLSchema-instance"; xmlns:ows="opengis.net/ows/1.1"; xsi:schemaLocation="opengis.net/ows/1.1 192.168.1.252:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd"; version="2.0.0"> -<ows:Exception locator="request" exceptionCode="MissingParameterValue"> <ows:ExceptionText>Could not determine geoserver request from http request org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@8b6c02‌​</ows:ExceptionText> </ows:Exception> </ows:ExceptionReport> – Geosmart Oct 15 '12 at 1:56

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.