[Geoserver-users] NullPointerException on GetFeatureInfo request

Hi there

I get the following exception returned from my wms:GetFeatureInfo request sent from MapBuilder to GeoServer:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> 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)

Where my request looks like this:
http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png

Is there somewhere within the Geoserver admin, where you have to setup that it should be possible to make a getfeatureinfo request on a specific datasource?
The layer brnby:DasKnude is a simple shapefile located on the server.

Environments:
MapBuilder 1.0rc2
GeoServer 1.4.1 on Tomcat 5.5
IIS
Windows 2003 Server

Best regards
Thomas Rokkjaer

Thomas Rokkjær ha scritto:

Hi there
I get the following exception returned from my wms:GetFeatureInfo request sent from MapBuilder to GeoServer:

...

Is there somewhere within the Geoserver admin, where you have to setup that it should be possible to make a getfeatureinfo request on a specific datasource?
The layer brnby:DasKnude is a simple shapefile located on the server.
Environments:
MapBuilder 1.0rc2
GeoServer 1.4.1 on Tomcat 5.5

This is a known bug, http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933.
Unfortunately it has been fixed after 1.4.1 was released. There won't
be a 1.4.2 release, so I suggest you try and update to 1.5.1 (you would
get extra functionality and speed improvements, but beware, in
1.5.1 we don't include MapBuilder anymore, so you have to
provide it by yourself, possibly using this war: http://docs.codehaus.org/display/MAP/Installing+MapBuilder).

Cheers
Andrea

Thanks Andrea.

We upgraded GeoServer to 1.5.1 and now the response is the following (looks like it presumes I am requesting a WFS featurecollection):

<?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:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>

I found that I had to add a FORMAT parameter in my URL, which looks like the following: http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png
The INFOFORMAT parameter is set to “application/vnd.ogc.gml”.

Got any idea, what could be causing this response now?

Best regards
Thomas Rokkjaer

On 6/14/07, Andrea Aime <aaime@anonymised.com> wrote:

Thomas Rokkjær ha scritto:

Hi there

I get the following exception returned from my wms:GetFeatureInfo
request sent from MapBuilder to GeoServer:

Is there somewhere within the Geoserver admin, where you have to setup
that it should be possible to make a getfeatureinfo request on a
specific datasource?
The layer brnby:DasKnude is a simple shapefile located on the server.

Environments:
MapBuilder 1.0rc2
GeoServer 1.4.1 on Tomcat 5.5

This is a known bug,
http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933.
Unfortunately it has been fixed after 1.4.1 was released. There won’t
be a 1.4.2 release, so I suggest you try and update to 1.5.1 (you would
get extra functionality and speed improvements, but beware, in
1.5.1 we don’t include MapBuilder anymore, so you have to
provide it by yourself, possibly using this war:
http://docs.codehaus.org/display/MAP/Installing+MapBuilder ).

Cheers
Andrea


Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer

Thomas Rokkjær ha scritto:

Thanks Andrea.
We upgraded GeoServer to 1.5.1 and now the response is the following (looks like it presumes I am requesting a WFS featurecollection):
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs&quot;
   xmlns:brnby=" http://www.bronby.dk/&quot;
   xmlns:gml="http://www.opengis.net/gml&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
   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>
I found that I had to add a FORMAT parameter in my URL, which looks like the following: _http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png _ <http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png&gt;
The INFOFORMAT parameter is set to "application/vnd.ogc.gml".
Got any idea, what could be causing this response now?

Sorry, it's 23.00 here so I may be loosing some important detail but... what' wrong with the first output? Seems like a good response when you
click on a zone that has no features. It's valid GML2 as far as I can
see, and the output format you're requesting is in fact GML...

Cheers
Andrea

Hi Thomas,

So i think you are getting the correct output no? What are you expecting
to see back?

When you set INFO_FORMAT to "application/vnd.ogc.gml" you are supposted
to get back a feature collection. The only problem seems to be that
there is no feautres includes in the feature collection which means
there were no hits at X=402, Y=239.

-Justin

Thomas Rokkjær wrote:

Thanks Andrea.

We upgraded GeoServer to 1.5.1 and now the response is the following
(looks like it presumes I am requesting a WFS featurecollection):
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs&quot;
   xmlns:brnby=" http://www.bronby.dk/&quot;
   xmlns:gml="http://www.opengis.net/gml&quot;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
<http://www.w3.org/2001/XMLSchema-instance&gt;&quot;
   xsi:schemaLocation="http://www.bronby.dk/
   http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude
<http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude&gt;

   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>

I found that I had to add a FORMAT parameter in my URL, which looks like
the following:
_http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png
_
<http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png&gt;
The INFOFORMAT parameter is set to "application/vnd.ogc.gml".

Got any idea, what could be causing this response now?

Best regards
Thomas Rokkjaer

On 6/14/07, *Andrea Aime* <aaime@anonymised.com
<mailto:aaime@anonymised.com>> wrote:

    Thomas Rokkjær ha scritto:
    > Hi there
    >
    > I get the following exception returned from my wms:GetFeatureInfo
    > request sent from MapBuilder to GeoServer:
    ...
    > Is there somewhere within the Geoserver admin, where you have to setup
    > that it should be possible to make a getfeatureinfo request on a
    > specific datasource?
    > The layer brnby:DasKnude is a simple shapefile located on the server.
    >
    > Environments:
    > MapBuilder 1.0rc2
    > GeoServer 1.4.1 on Tomcat 5.5

    This is a known bug,
    http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933.
    Unfortunately it has been fixed after 1.4.1 was released. There won't
    be a 1.4.2 release, so I suggest you try and update to 1.5.1 (you would
    get extra functionality and speed improvements, but beware, in
    1.5.1 we don't include MapBuilder anymore, so you have to
    provide it by yourself, possibly using this war:
    http://docs.codehaus.org/display/MAP/Installing+MapBuilder
    <http://docs.codehaus.org/display/MAP/Installing+MapBuilder&gt;\).

    Cheers
    Andrea

--
Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer
<http://picasaweb.google.com/thomas.rokkjaer&gt;
!DSPAM:4007,467ae689127874901796417!

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

-------------------------------------------------------------------------
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/

!DSPAM:4007,467ae689127874901796417!

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

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

!DSPAM:4007,467ae689127874901796417!

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

This is a MapBuilder solution where I get a “error loading page” message each time I use the Info button. The particular layer (points) has been set to queryable in the config.xml file.
Besides this, I am pretty sure I am pointing at a location where there is a feature and would expect information from this feature.
I am becoming a bit desperate. Would really like to see information from this layer…

/Thomas

On 6/21/07, Justin Deoliveira <jdeolive@anonymised.com…> wrote:

Hi Thomas,

So i think you are getting the correct output no? What are you expecting
to see back?

When you set INFO_FORMAT to “application/vnd.ogc.gml” you are supposted
to get back a feature collection. The only problem seems to be that
there is no feautres includes in the feature collection which means
there were no hits at X=402, Y=239.

-Justin

Thomas Rokkjær wrote:

Thanks Andrea.

We upgraded GeoServer to 1.5.1 and now the response is the following
(looks like it presumes I am requesting a WFS featurecollection):

<?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
<http://www.w3.org/2001/XMLSchema-instance>"
xsi:schemaLocation=" http://www.bronby.dk/
http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude
< 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:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>

I found that I had to add a FORMAT parameter in my URL, which looks like
the following:
_http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784 ,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png
_
< http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png >
The INFOFORMAT parameter is set to “application/vnd.ogc.gml”.

Got any idea, what could be causing this response now?

Best regards
Thomas Rokkjaer

On 6/14/07, Andrea Aime <aaime@anonymised.com…1…
mailto:[aaime@anonymised.com.](mailto:aaime@anonymised.com)> wrote:

Thomas Rokkjær ha scritto:

Hi there

I get the following exception returned from my wms:GetFeatureInfo
request sent from MapBuilder to GeoServer:

Is there somewhere within the Geoserver admin, where you have to setup
that it should be possible to make a getfeatureinfo request on a
specific datasource?
The layer brnby:DasKnude is a simple shapefile located on the server.

Environments:
MapBuilder 1.0rc2
GeoServer 1.4.1 on Tomcat 5.5

This is a known bug,
http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933.
Unfortunately it has been fixed after 1.4.1 was released. There won’t
be a 1.4.2 release, so I suggest you try and update to 1.5.1 (you would
get extra functionality and speed improvements, but beware, in
1.5.1 we don’t include MapBuilder anymore, so you have to
provide it by yourself, possibly using this war:
http://docs.codehaus.org/display/MAP/Installing+MapBuilder
< http://docs.codehaus.org/display/MAP/Installing+MapBuilder>).

Cheers
Andrea


Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer
<http://picasaweb.google.com/thomas.rokkjaer >
!DSPAM:4007,467ae689127874901796417!



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/

!DSPAM:4007,467ae689127874901796417!



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

!DSPAM:4007,467ae689127874901796417!


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


Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer

Does my URL look ok to you guys?

http://infudv1:8080/geoserver/wms?SERVICE=WMS&ampVERSION=1.1.1&ampREQUEST=GetFeatureInfo&ampLAYERS=brnby:DasKnude&ampSRS=EPSG:25832&ampBBOX=714784,6169191,715625,6169751&ampWIDTH=600&ampHEIGHT=400&ampINFO_FORMAT=application/vnd.ogc.gml&ampFEATURE_COUNT=1&ampQUERY_LAYERS=brnby:DasKnude&ampX=402&ampY=239&ampFORMAT=image/png

By the way it is nearly midnight here too…

Thanks

/Thomas

On 6/21/07, Thomas Rokkjær <thomas.rokkjaer@anonymised.com> wrote:

This is a MapBuilder solution where I get a “error loading page” message each time I use the Info button. The particular layer (points) has been set to queryable in the config.xml file.
Besides this, I am pretty sure I am pointing at a location where there is a feature and would expect information from this feature.
I am becoming a bit desperate. Would really like to see information from this layer…

/Thomas

On 6/21/07, Justin Deoliveira <jdeolive@anonymised.com… > wrote:

Hi Thomas,

So i think you are getting the correct output no? What are you expecting
to see back?

When you set INFO_FORMAT to “application/vnd.ogc.gml” you are supposted
to get back a feature collection. The only problem seems to be that
there is no feautres includes in the feature collection which means
there were no hits at X=402, Y=239.

-Justin

Thomas Rokkjær wrote:

Thanks Andrea.

We upgraded GeoServer to 1.5.1 and now the response is the following
(looks like it presumes I am requesting a WFS featurecollection):

<?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
<http://www.w3.org/2001/XMLSchema-instance >"
xsi:schemaLocation=" http://www.bronby.dk/
http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude
< 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:nullunknown</gml:null>
</gml:boundedBy>
</wfs:FeatureCollection>

I found that I had to add a FORMAT parameter in my URL, which looks like
the following:
_http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784 ,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png
_
< http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png >
The INFOFORMAT parameter is set to “application/vnd.ogc.gml”.

Got any idea, what could be causing this response now?

Best regards
Thomas Rokkjaer

On 6/14/07, Andrea Aime <aaime@anonymised.com…1…
<mailto: aaime@anonymised.com>> wrote:

Thomas Rokkjær ha scritto:

Hi there

I get the following exception returned from my wms:GetFeatureInfo
request sent from MapBuilder to GeoServer:

Is there somewhere within the Geoserver admin, where you have to setup
that it should be possible to make a getfeatureinfo request on a
specific datasource?
The layer brnby:DasKnude is a simple shapefile located on the server.

Environments:
MapBuilder 1.0rc2
GeoServer 1.4.1 on Tomcat 5.5

This is a known bug,
http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933 .
Unfortunately it has been fixed after 1.4.1 was released. There won’t
be a 1.4.2 release, so I suggest you try and update to 1.5.1 (you would
get extra functionality and speed improvements, but beware, in
1.5.1 we don’t include MapBuilder anymore, so you have to
provide it by yourself, possibly using this war:
http://docs.codehaus.org/display/MAP/Installing+MapBuilder
< http://docs.codehaus.org/display/MAP/Installing+MapBuilder >).

Cheers
Andrea


Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer
<http://picasaweb.google.com/thomas.rokkjaer >
!DSPAM:4007,467ae689127874901796417!



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/

!DSPAM:4007,467ae689127874901796417!



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

!DSPAM:4007,467ae689127874901796417!


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


Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer


Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer

Hi Thomas,

Yeah the url looks fine and you are getting a response back, just an
empty one. It could be that an empty response is throwing off
mapbuilder? This may be an issue for the mapbuilder list.

Another thing you may want to try is to start with an example that
works. In the geoserver sample requests page you should see a
featureInfo example for the states layer. Try playing with it and see if
it works for you.

-Justin

Thomas Rokkjær wrote:

Does my URL look ok to you guys?

http://infudv1:8080/geoserver/wms?SERVICE=WMS&ampVERSION=1.1.1&ampREQUEST=GetFeatureInfo&ampLAYERS=brnby:DasKnude&ampSRS=EPSG:25832&ampBBOX=714784,6169191,715625,6169751&ampWIDTH=600&ampHEIGHT=400&ampINFO_FORMAT=application/vnd.ogc.gml&ampFEATURE_COUNT=1&ampQUERY_LAYERS=brnby:DasKnude&ampX=402&ampY=239&ampFORMAT=image/png
<http://infudv1:8080/geoserver/wms?SERVICE=WMS&ampVERSION=1.1.1&ampREQUEST=GetFeatureInfo&ampLAYERS=brnby:DasKnude&ampSRS=EPSG:25832&ampBBOX=714784,6169191,715625,6169751&ampWIDTH=600&ampHEIGHT=400&ampINFO_FORMAT=application/vnd.ogc.gml&ampFEATURE_COUNT=1&ampQUERY_LAYERS=brnby:DasKnude&ampX=402&ampY=239&ampFORMAT=image/png&gt;

By the way it is nearly midnight here too...

Thanks

/Thomas

On 6/21/07, *Thomas Rokkjær* <thomas.rokkjaer@anonymised.com
<mailto:thomas.rokkjaer@anonymised.com>> wrote:

    This is a MapBuilder solution where I get a "error loading page"
    message each time I use the Info button. The particular layer
    (points) has been set to queryable in the config.xml file.
    Besides this, I am pretty sure I am pointing at a location where
    there is a feature and would expect information from this feature.
    I am becoming a bit desperate. Would really like to see information
    from this layer...
     
    /Thomas
     
    On 6/21/07, *Justin Deoliveira* <jdeolive@anonymised.com
    <mailto:jdeolive@anonymised.com>> wrote:

        Hi Thomas,

        So i think you are getting the correct output no? What are you
        expecting
        to see back?

        When you set INFO_FORMAT to "application/vnd.ogc.gml" you are
        supposted
        to get back a feature collection. The only problem seems to be that
        there is no feautres includes in the feature collection which means
        there were no hits at X=402, Y=239.

        -Justin

        Thomas Rokkjær wrote:
        > Thanks Andrea.
        >
        > We upgraded GeoServer to 1.5.1 and now the response is the
        following
        > (looks like it presumes I am requesting a WFS featurecollection):
        > <?xml version="1.0" encoding="UTF-8"?>
        > <wfs:FeatureCollection xmlns:wfs=" http://www.opengis.net/wfs&quot;
        > xmlns:brnby=" http://www.bronby.dk/&quot;
        > xmlns:gml=" http://www.opengis.net/gml&quot;
        > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance
        > <http://www.w3.org/2001/XMLSchema-instance
        <http://www.w3.org/2001/XMLSchema-instance&gt;&gt;&quot;
        > xsi:schemaLocation=" http://www.bronby.dk/
        >
        http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude
        > <
        http://infudv1:8080/geoserver/wfs/DescribeFeatureType?typeName=brnby:DasKnude&gt;
        >
        > http://www.opengis.net/wfs
        >
        http://infudv1:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd
        <http://infudv1:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&gt; ">
        > <gml:boundedBy>
        > <gml:null>unknown</gml:null>
        > </gml:boundedBy>
        > </wfs:FeatureCollection>
        >
        > I found that I had to add a FORMAT parameter in my URL, which
        looks like
        > the following:
        > _http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784
        ,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png

        > _
        > <
        http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png
        <http://infudv1:8080/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=brnby:DasKnude&SRS=EPSG:25832&BBOX=714784,6169191,715625,6169751&WIDTH=600&HEIGHT=400&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=brnby:DasKnude&X=402&Y=239&FORMAT=image/png&gt;&gt;
        > The INFOFORMAT parameter is set to "application/vnd.ogc.gml".
        >
        > Got any idea, what could be causing this response now?
        >
        > Best regards
        > Thomas Rokkjaer
        >
        > On 6/14/07, *Andrea Aime* <aaime@anonymised.com
        <mailto:aaime@anonymised.com>
        > <mailto: aaime@anonymised.com <mailto:aaime@anonymised.com>>> wrote:
        >
        > Thomas Rokkjær ha scritto:
        > > Hi there
        > >
        > > I get the following exception returned from my
        wms:GetFeatureInfo
        > > request sent from MapBuilder to GeoServer:
        > ...
        > > Is there somewhere within the Geoserver admin, where you
        have to setup
        > > that it should be possible to make a getfeatureinfo
        request on a
        > > specific datasource?
        > > The layer brnby:DasKnude is a simple shapefile located on
        the server.
        > >
        > > Environments:
        > > MapBuilder 1.0rc2
        > > GeoServer 1.4.1 on Tomcat 5.5
        >
        > This is a known bug,
        > http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933
        <http://jira.codehaus.org/secure/ViewIssue.jspa?key=GEOS-933&gt;\.
        > Unfortunately it has been fixed after 1.4.1 was released.
        There won't
        > be a 1.4.2 release, so I suggest you try and update to
        1.5.1 (you would
        > get extra functionality and speed improvements, but beware, in
        > 1.5.1 we don't include MapBuilder anymore, so you have to
        > provide it by yourself, possibly using this war:
        > http://docs.codehaus.org/display/MAP/Installing+MapBuilder
        > <
        http://docs.codehaus.org/display/MAP/Installing+MapBuilder
        <http://docs.codehaus.org/display/MAP/Installing+MapBuilder&gt;&gt;\).
        >
        > Cheers
        > Andrea
        >
        >
        >
        >
        > --
        > Med venlig hilsen
        >
        > Thomas Rokkjær
        > Mobil 3095 0774
        >
        > http://picasaweb.google.com/thomas.rokkjaer
        > <http://picasaweb.google.com/thomas.rokkjaer
        <http://picasaweb.google.com/thomas.rokkjaer&gt;&gt;
        >
        >
        >
        > ------------------------------------------------------------------------
        >
        > -------------------------------------------------------------------------

        > 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/
        >
        > !DSPAM:4007,467ae689127874901796417!
        >
        >
        > ------------------------------------------------------------------------
        >
        > _______________________________________________
        > Geoserver-users mailing list
        > Geoserver-users@lists.sourceforge.net
        <mailto:Geoserver-users@lists.sourceforge.net>
        > https://lists.sourceforge.net/lists/listinfo/geoserver-users
        >
        >
        > !DSPAM:4007,467ae689127874901796417!

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

    --
    Med venlig hilsen

    Thomas Rokkjær
    Mobil 3095 0774

    http://picasaweb.google.com/thomas.rokkjaer
    <http://picasaweb.google.com/thomas.rokkjaer&gt;

--
Med venlig hilsen

Thomas Rokkjær
Mobil 3095 0774

http://picasaweb.google.com/thomas.rokkjaer
!DSPAM:4007,467aec0a136194901796417!

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

-------------------------------------------------------------------------
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/

!DSPAM:4007,467aec0a136194901796417!

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

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

!DSPAM:4007,467aec0a136194901796417!

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