I posted on the Geoserver users list and was told to upgrade to 1.5.1. This
is done now.
But the request still results in a "error loading page" message. If I send
the URL directly I get the following GML response:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs";
  xmlns:brnby=" http://www.bronby.dk/";
  xmlns:gml="http://www.opengis.net/gml";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
  xsi:schemaLocation="http://www.bronby.dk/
  http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude

  http://www.opengis.net/wfs
  http://infudv1:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd ">
 <gml:boundedBy>
  <gml:null>unknown</gml:null>
 </gml:boundedBy>
</wfs:FeatureCollection>

Then I tried using the GeoServer built in Demo request, with the following
getfeatureinfo:
http://infudv1:8080/geoserver/wms?bbox=714784,6169191,715625,6169751&styles=point&format=jpeg&info_format=text/plain&request=GetFeatureInfo&layers=brnby:DasKnude&query_layers=brnby:DasKnude&width=600&height=400&x=402&y=239

This resulted in the following response:

no features were found

So far so good. The only problem is that I am pretty sure I am pointing
where there is a feature. How precise does a click on a feature has to be?

/Thomas

On 6/14/07, olivier.terral <[EMAIL PROTECTED]> wrote:

Hi Thomas

Sorry but it's probably a Geoserver problem.
The request seems to be good so try to post on Geoserver users list.
Have you try the example of GetFeatureInfo request in Geoserver


Thomas Rokkjær a écrit :
> Hi Olivier and "dese"
>
> First I copied the GetFeatureInfo.xsl into lib\tool.
> Then I tried debugging the javascript with Firefox and found the
> following url was being parsed:
> 
http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=715162,6169443,715246,6169499&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=301&Y=181&Format=image/png

> 
<http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=715162,6169443,715246,6169499&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=301&Y=181&Format=image/png
>
>
> This does not give an error in Firefox. Instead the following is
returned:
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
> ServiceExceptionReport SYSTEM "
> http://infudv1:8080/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd
">
> <ServiceExceptionReport version=" 1.1.1">
> <ServiceException>java.lang.NullPointerException
>  at org.vfny.geoserver.util.Requests.getBaseUrl (Requests.java:130)
>  at org.vfny.geoserver.Request.getBaseUrl(Request.java:211)
>  at
> org.vfny.geoserver.wfs.responses.GML2FeatureResponseDelegate.prepare(
GML2FeatureResponseDelegate.java:134)
>  at
>
org.vfny.geoserver.wms.responses.featureInfo.GmlFeatureInfoResponse.writeTo
> (GmlFeatureInfoResponse.java:109)
>  at
> org.vfny.geoserver.wms.responses.GetFeatureInfoResponse.writeTo(
GetFeatureInfoResponse.java:175)
>  at
> org.vfny.geoserver.servlets.AbstractService.doService (
AbstractService.java:598)
>
>  at
> org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java
:328)
>  at org.geoserver.request.Dispatcher.dispatch(Dispatcher.java:181)
>  at
> org.geoserver.request.Dispatcher.handleRequestInternal(Dispatcher.java
> :56)
>  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.doGet(
FrameworkServlet.java:347)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>  at javax.servlet.http.HttpServlet.service (HttpServlet.java:803)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:269)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java :188)
>
>  at
> org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(
SetCharacterEncodingFilter.java:108)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java :215)
>  at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:188)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:210)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:174)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke (
ErrorReportValve.java:117)
>  at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:108)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>  at
> org.apache.coyote.http11.Http11AprProcessor.process(
Http11AprProcessor.java:834)
>  at
>
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process
> (Http11AprProtocol.java :640)
>  at
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
>  at java.lang.Thread.run(Unknown Source)
> </ServiceException>  </ServiceExceptionReport>
>
> IE still returns an "error loading page" message.
>
> MapBuilder was installed using the war file.
>
> I also tried to modify the GetFeatureInfo.js to use the Format, but
> the results are the same.
>
> Any ideas are greatly appreciated.
>
> Best regards
> Thomas Rokkjaer
>
>
> On 6/12/07, *olivier.terral* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi Thomas
>
>     Be more precise.
>     If you use FireFox, download Firebug extension , You will have more
>     information on thr error, in particular what url is send to the
>     server.
>     It's maybe a proxyUrl problem.
>     Send us your config file please.
>
>     Thomas Rokkjær a écrit :
>     > There is a problem with the GetFeatureInfo button in the demo
>     > applications.
>     > I have tried implementing the same functionality in my own
>     application
>     > and get the same error.
>     >
>     > The error is several "error loading page" messages.
>     > I am testing using MapBuilder 1.0rc2 and GeoServer 1.4.1 (for my
>     > own application).
>     >
>     > --
>     > Best regards
>     > Thomas Rokkjaer
>     >
>
------------------------------------------------------------------------
>     >
>     >
>
-------------------------------------------------------------------------
>
>     > This SF.net email is sponsored by DB2 Express
>     > Download DB2 Express C - the FREE version of DB2 express and take
>     > control of your XML. No limits. Just data. Click to get it now.
>     > http://sourceforge.net/powerbar/db2/
>     >
>
------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Mapbuilder-users mailing list
>     > [email protected]
>     <mailto:[email protected]>
>     > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
>     <https://lists.sourceforge.net/lists/listinfo/mapbuilder-users>
>     >
>
>
>
>
> --
> Med venlig hilsen
>
> Thomas Rokkjær
> Mobil 3095 0774
>
> http://picasaweb.google.com/thomas.rokkjaer
> < http://picasaweb.google.com/thomas.rokkjaer>
> ------------------------------------------------------------------------
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mapbuilder-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-users




--
Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to