[Geoserver-users] org.vfny.geoserver.ServiceException: Could not locate service mapping to: (wfs, null)

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter) to GeoServer in my Java business code. However, I got the following error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate service mapping to: (wfs,null)

at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)

at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)

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)

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

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:534)

I then copied the request that was used in my Java code to test in the Demo Request in GeoServer and changed the URL to the one that is used in my Java code. It works fine, giving me the result that I expected. In other words, everything is the same except one request was executed within some code while the other was executed in the GeoServer demo. I am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2” xmlns:prrm=“http://www.openplans.org/prrm” xmlns:wfs=“http://www.opengis.net/wfs” xmlns:ogc=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml” 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-basic.xsd”> <wfs:Query typeName=“prrm:road”> ogc:Filter ogc:DWithin ogc:PropertyNamethe_geom</ogc:PropertyName> <gml:Point srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”> gml:coordinates103.77789405562149,1.3794209681703</gml:coordinates> </gml:Point> 0.00001 </ogc:DWithin> </ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

Regards,
Lee Wai See

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

Lee Wai See ha scritto:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter) to GeoServer in my Java business code. However, I got the following error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate service mapping to: (wfs,null)

...

I then copied the request that was used in my Java code to test in the Demo Request in GeoServer and changed the URL to the one that is used in my Java code. It works fine, giving me the result that I expected. In other words, everything is the same except one request was executed within some code while the other was executed in the GeoServer demo. I am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:prrm="http://www.openplans.org/prrm&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query typeName="prrm:road"> <ogc:Filter> <ogc:DWithin> <ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point srsName="http://www.opengis.net/gml/srs/epsg\.xml\#4326&quot;&gt; <gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates> </gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin> </ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

The URL you're posting to I guess. Can you provide us the full url
you're using?

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]

Nonsense, this is a public mailing list.
Cheers
Andrea

Can you provide us with a sample of the request you are sending? And describe how you are sending it?
It will help us determine what is going on.

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in the demo section and see if they return a result (try them out in your code).

Brent Owens
(The Open Planning Project)

Lee Wai See wrote:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter) to GeoServer in my Java business code. However, I got the following error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate service mapping to: (wfs,null)

            at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)

            at org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)

            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)

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

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

            at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

            at java.lang.Thread.run(Thread.java:534)

I then copied the request that was used in my Java code to test in the Demo Request in GeoServer and changed the URL to the one that is used in my Java code. It works fine, giving me the result that I expected. In other words, everything is the same except one request was executed within some code while the other was executed in the GeoServer demo. I am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:prrm="http://www.openplans.org/prrm&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query typeName="prrm:road"> <ogc:Filter> <ogc:DWithin> <ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point srsName="http://www.opengis.net/gml/srs/epsg\.xml\#4326&quot;&gt; <gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates> </gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin> </ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

Regards,
Lee Wai See

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------

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

Hi,

I am posting to this url: http://leewse-l1743:8080/geoserver/wfs

A positive result with one featureMember was returned using the request
below.

Regards,
Wai See

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Andrea
Aime
Sent: Tuesday, January 16, 2007 7:23 PM
To: Lee Wai See
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] org.vfny.geoserver.ServiceException: Could
not locate service mapping to: (wfs, null)

Lee Wai See ha scritto:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter) to
GeoServer in my Java business code. However, I got the following error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered error:
Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate
service mapping to: (wfs,null)

....

I then copied the request that was used in my Java code to test in the
Demo Request in GeoServer and changed the URL to the one that is used in
my Java code. It works fine, giving me the result that I expected. In
other words, everything is the same except one request was executed
within some code while the other was executed in the GeoServer demo. I
am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

The URL you're posting to I guess. Can you provide us the full url
you're using?

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the

message

from your system; please do not copy or use it for any purpose, nor

disclose

its contents to any other person. Thank you.]

Nonsense, this is a public mailing list.
Cheers
Andrea

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---

Hi,

Can you provide us with a sample of the request you are sending? And
describe how you are sending it?
It will help us determine what is going on.

The following is the request:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

I first construct this request in my code, then do a new URL and
HttpURLConnection as follows:

URL url;
HttpURLConnection conn;
try {
  url = new URL("http://leewse-l1743:8080/wfs&quot;\);
  conn = (HttpURLConnection) url.openConnection();
  conn.setRequestMethod("POST");
  conn.setUseCaches(false);
  conn.setDoInput(true);
  conn.setDoOutput(true);
      
  OutputStreamWriter writer = new
OutputStreamWriter(conn.getOutputStream());
  writer.write(requestBody); // requesBody is my request
  writer.close();
  conn.connect();

The error trace appears after the line conn.connect().

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in
the demo section and see if they return a result (try them out in your
code).

I tried the WFS_getFeature sample as it is, and also amending it to query my
own feature. Both are done in my code but I still encounter the same error
for both. On the other, both work fine using the GeoServer demo.

Regards,
Wai See

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Brent
Owens
Sent: Wednesday, January 17, 2007 1:42 AM
To: Lee Wai See
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] org.vfny.geoserver.ServiceException: Could
not locate service mapping to: (wfs, null)

Can you provide us with a sample of the request you are sending? And
describe how you are sending it?
It will help us determine what is going on.

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in
the demo section and see if they return a result (try them out in your
code).

Brent Owens
(The Open Planning Project)

Lee Wai See wrote:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter)
to GeoServer in my Java business code. However, I got the following error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate
service mapping to: (wfs,null)

            at
org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)

            at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)

            at

org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac
tController.java:139)

            at

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

            at

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

            at

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

            at

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

            at

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.jav
a:357)

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

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

            at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)

            at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

            at

org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterE
ncodingFilter.java:122)

            at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:186)

            at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

            at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)

            at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

            at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

            at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)

            at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

            at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)

            at java.lang.Thread.run(Thread.java:534)

I then copied the request that was used in my Java code to test in the
Demo Request in GeoServer and changed the URL to the one that is used
in my Java code. It works fine, giving me the result that I expected.
In other words, everything is the same except one request was executed
within some code while the other was executed in the GeoServer demo. I
am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

Regards,
Lee Wai See

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the

message

from your system; please do not copy or use it for any purpose, nor

disclose

its contents to any other person. Thank you.]
---ST Electronics Group---

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share

your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

Instead of the url "http://…/geoserver/wfs", try
"http://…/geoserver/wfs/GetFeature".

-Justin

Lee Wai See wrote:

Hi,

Can you provide us with a sample of the request you are sending? And
describe how you are sending it?
It will help us determine what is going on.

The following is the request:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

I first construct this request in my code, then do a new URL and
HttpURLConnection as follows:

URL url;
HttpURLConnection conn;
try {
  url = new URL("http://leewse-l1743:8080/wfs&quot;\);
  conn = (HttpURLConnection) url.openConnection();
  conn.setRequestMethod("POST");
  conn.setUseCaches(false);
  conn.setDoInput(true);
  conn.setDoOutput(true);
      
  OutputStreamWriter writer = new
OutputStreamWriter(conn.getOutputStream());
  writer.write(requestBody); // requesBody is my request
  writer.close();
  conn.connect();

The error trace appears after the line conn.connect().

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in
the demo section and see if they return a result (try them out in your
code).

I tried the WFS_getFeature sample as it is, and also amending it to query my
own feature. Both are done in my code but I still encounter the same error
for both. On the other, both work fine using the GeoServer demo.

Regards,
Wai See

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Brent
Owens
Sent: Wednesday, January 17, 2007 1:42 AM
To: Lee Wai See
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] org.vfny.geoserver.ServiceException: Could
not locate service mapping to: (wfs, null)

Can you provide us with a sample of the request you are sending? And
describe how you are sending it?
It will help us determine what is going on.

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in
the demo section and see if they return a result (try them out in your
code).

Brent Owens
(The Open Planning Project)

Lee Wai See wrote:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter)
to GeoServer in my Java business code. However, I got the following error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate
service mapping to: (wfs,null)

            at
org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)

            at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)

            at

org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac
tController.java:139)

            at

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

            at

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

            at

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

            at

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

            at

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.jav
a:357)

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

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

            at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)

            at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

            at

org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterE
ncodingFilter.java:122)

            at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:186)

            at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)

            at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)

            at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

            at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

            at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)

            at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

            at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)

            at java.lang.Thread.run(Thread.java:534)

I then copied the request that was used in my Java code to test in the
Demo Request in GeoServer and changed the URL to the one that is used
in my Java code. It works fine, giving me the result that I expected.
In other words, everything is the same except one request was executed
within some code while the other was executed in the GeoServer demo. I
am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

Regards,
Lee Wai See

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the

message

from your system; please do not copy or use it for any purpose, nor

disclose

its contents to any other person. Thank you.]
---ST Electronics Group---

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share

your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org

Hi,

I tried adding "/GetFeature" with the GeoServer getFeature request in my
code, but I encountered another error. Again, it works fine from the demo
page. Do I need to make more changes to my request construct or the url?

============================================================================
87799 [WARNING] org.vfny.geoserver.ServiceException - encountered error: The
typename element is mandatory if no FEATUREID is present
StackTrace: org.vfny.geoserver.wfs.WfsException: The typename element is
mandatory if no FEATUREID is present
  at
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader.getRequest(GetFe
atureKvpReader.java:132)
  at
org.vfny.geoserver.wfs.requests.readers.GetFeatureKvpReader.getRequest(GetFe
atureKvpReader.java:55)
  at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:318)
  at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:183)
  at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)
  at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac
tController.java:139)
  at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Si
mpleControllerHandlerAdapter.java:44)
  at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl
et.java:684)
  at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle
t.java:625)
  at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer
vlet.java:392)
  at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.jav
a:357)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
  at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterE
ncodingFilter.java:122)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:186)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
  at java.lang.Thread.run(Thread.java:534)

Regards,
Wai See

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Justin
Deoliveira
Sent: Wednesday, January 17, 2007 10:08 AM
To: Lee Wai See
Cc: 'Brent Owens'; geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] org.vfny.geoserver.ServiceException: Could
not locate service mapping to: (wfs, null)

Instead of the url "http://…/geoserver/wfs", try
"http://…/geoserver/wfs/GetFeature".

-Justin

Lee Wai See wrote:

Hi,

Can you provide us with a sample of the request you are sending? And
describe how you are sending it?
It will help us determine what is going on.

The following is the request:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

I first construct this request in my code, then do a new URL and
HttpURLConnection as follows:

URL url;
HttpURLConnection conn;
try {
  url = new URL("http://leewse-l1743:8080/wfs&quot;\);
  conn = (HttpURLConnection) url.openConnection();
  conn.setRequestMethod("POST");
  conn.setUseCaches(false);
  conn.setDoInput(true);
  conn.setDoOutput(true);
      
  OutputStreamWriter writer = new
OutputStreamWriter(conn.getOutputStream());
  writer.write(requestBody); // requesBody is my request
  writer.close();
  conn.connect();

The error trace appears after the line conn.connect().

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in
the demo section and see if they return a result (try them out in your
code).

I tried the WFS_getFeature sample as it is, and also amending it to query

my

own feature. Both are done in my code but I still encounter the same error
for both. On the other, both work fine using the GeoServer demo.

Regards,
Wai See

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Brent
Owens
Sent: Wednesday, January 17, 2007 1:42 AM
To: Lee Wai See
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] org.vfny.geoserver.ServiceException: Could
not locate service mapping to: (wfs, null)

Can you provide us with a sample of the request you are sending? And
describe how you are sending it?
It will help us determine what is going on.

Also, if you try a different filter do you get the same response?
Try one of the existing getFeature requests that geoserver provides in
the demo section and see if they return a result (try them out in your
code).

Brent Owens
(The Open Planning Project)

Lee Wai See wrote:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter)
to GeoServer in my Java business code. However, I got the following

error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate
service mapping to: (wfs,null)

            at
org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)

            at

org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)

            at

org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac

tController.java:139)

            at

org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Si

mpleControllerHandlerAdapter.java:44)

            at

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl

et.java:684)

            at

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle

t.java:625)

            at

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer

vlet.java:392)

            at

org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.jav

a:357)

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

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

            at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:237)

            at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:157)

            at

org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterE

ncodingFilter.java:122)

            at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:186)

            at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:157)

            at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:214)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex

t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext

Valve.java:198)

            at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:152)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex

t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137

)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex

t.java:104)

            at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118

)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex

t.java:102)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:109)

            at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex

t.java:104)

            at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

            at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

            at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

            at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

            at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne

ction(Http11Protocol.java:705)

            at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

            at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav

a:683)

            at java.lang.Thread.run(Thread.java:534)

I then copied the request that was used in my Java code to test in the
Demo Request in GeoServer and changed the URL to the one that is used
in my Java code. It works fine, giving me the result that I expected.
In other words, everything is the same except one request was executed
within some code while the other was executed in the GeoServer demo. I
am using GeoServer 1.4.0 and below is my query:

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:prrm="http://www.openplans.org/prrm&quot;
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt; <wfs:Query
typeName="prrm:road"> <ogc:Filter> <ogc:DWithin>
<ogc:PropertyName>the_geom</ogc:PropertyName> <gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
<gml:coordinates>103.77789405562149,1.3794209681703</gml:coordinates>
</gml:Point> <Distance unit="m">0.00001</Distance> </ogc:DWithin>
</ogc:Filter> </wfs:Query> </wfs:GetFeature>

What could be wrong? Would appreciate some help. Thanks in advance.

Regards,
Lee Wai See

[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the

message

from your system; please do not copy or use it for any purpose, nor

disclose

its contents to any other person. Thank you.]
---ST Electronics Group---

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share

your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
  
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share

your

opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.9/622 - Release Date: 1/10/2007

I am having a similar problem to this one - posted on 16th January (i.e.
problems when querying geoserver from code, but not from the demo). I
followed this thread but it doesn't seem to have been resolved. I tried all
the solutions suggested to the original poster, including testing using a
standard query, that I cut and pasted from the demo, and adding GetFeature
to the end of the URL. (This resulted in a different error , and again -
worked in the demo)

When I use the same code, but post to a geoserver v1.3 - there is no
problem, the problem is only occurring with v. 1.4. Note that I do not get
back an error if I use the Geoserver demo, only when I try to post a query
from within code.

If anyone has any additional ideas I would really appreciate it - something
has obviously changed between the two versions - and I don't know where to
start looking to track it down. Details follow.

Thanks
Stacey Roos

Java Code used to do the request:
/********************/
URL url = new URL(wfsURL); // this is one of the URL's listed below
URLConnection connection = url.openConnection();
connection.setDoOutput(true);

OutputStreamWriter out = new OutputStreamWriter(
connection.getOutputStream());
out.write(wfsRequest); // this has been passed in to the method - I am
using the query listed below
out.close();
/*******************/
Response is simply read in on an input stream from the same connection.

URLs: working URL: http://ict4eo.meraka.csir.co.za:8080/geoserver_1.3/wfs
            not working( v1.4):
http://ict4eo.meraka.csir.co.za:8080/geoserver/wfs

Query tested:
<wfs:GetFeature service='WFS' version='1.0.0' outputFormat='GML2'
xmlns:topp='http://www.openplans.org/topp
xmlns:wfs='http://www.opengis.net/wfs
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-basic.xsd’> <wfs:Query
typeName='topp:states'> <ogc:Filter> <ogc:FeatureId
fid='states.3'/> </ogc:Filter> </wfs:Query> </wfs:GetFeature>

Response received:
<?xml version="1.0" ?><ServiceExceptionReport version="1.2.0"
xmlns="http://www.opengis.net/ogc&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation="http://www.opengis.net/ogc
http://ict4eo.meraka.csir.co.za:8080/geoserver/schemas//wfs/1.0.0/OGC-exception.xsd&quot;&gt;
<ServiceException> org.vfny.geoserver.ServiceException: Could not
locate service mapping to: (wfs,null) at
org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193) at
org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)
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
.... etc .....

</ServiceException></ServiceExceptionReport>

Original post:
-----------------

Lee Wai See wrote:

Hi,

I am trying to send a GetFeature request (with a ogc:DWithin filter)
to GeoServer in my Java business code. However, I got the following

error:

25592 [WARNING] org.vfny.geoserver.ServiceException - encountered
error: Could not locate service mapping to: (wfs,null)

StackTrace: org.vfny.geoserver.ServiceException: Could not locate
service mapping to: (wfs,null)

            at
org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:193)

            at

org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java:58)

            at

<snipped rest of stack trace>

--
View this message in context: http://www.nabble.com/org.vfny.geoserver.ServiceException%3A-Could-not-locate-service-mapping-to%3A-(wfs%2C-null)-tf3020037.html#a9060620
Sent from the GeoServer - User mailing list archive at Nabble.com.

StaceyRoos ha scritto:

I am having a similar problem to this one - posted on 16th January (i.e.
problems when querying geoserver from code, but not from the demo). I
followed this thread but it doesn't seem to have been resolved.

It is, Geoserver behaviour versus post request became more strict.

Java Code used to do the request:
/********************/
URL url = new URL(wfsURL); // this is one of the URL's listed below
URLConnection connection = url.openConnection();
connection.setDoOutput(true);

OutputStreamWriter out = new OutputStreamWriter(
connection.getOutputStream());
out.write(wfsRequest); // this has been passed in to the method - I am
using the query listed below
out.close();
/*******************/

You're not setting the mime type "application/xml", that's why the
post fails. There's a working snippet in the faq:

http://docs.codehaus.org/display/GEOSDOC/My+WFS+request+in+Java+does+not+work.

Cheers
Andrea