From: Dave P. <dav...@pi...> - 2011-06-20 06:48:11
|
Hi List Was a solution ever found for this problem, because I seem to be getting the same issue. I attempt to make a request to geoserver instance running on the same tomcat webserver with a valid layer name via a wmsgetfeature request, I get callback with an empty result. I lhave ooked at the geoserver logs and can see geoserver getting the request from the gwt-openlayers program and see the request to my postgis database. Feeding the same sql request into the database, generates data. Using firebug and copying the text of the feature requests, results in to firefox returns a result. Using firebug of the gwt-program, shows the reques set to geoserver. A callback is received but the results section is empty. I do not think it is a proxy issue because both my instance of geoserver and my gwt-program are bothing running on the same server. I have tried the example from showcase which works correctly. AS far as I can make out the showcase example and my owner server are setting the same param strings so I should receive a result. It is possible to use the 'internal version of openlayers' in the layer preview option to look at the data and everything seem to be correct. I just wondering what is going wrong! If geoserver was not processing the request I should not receive a callback, but I do. If the feature request was invalid I would not see geoserver accessing my database, but it does. (There is no logging to say what geoserver actuall generated, even at the finest setting) If there was something wrong with the request, I would not see a correct result from geoserver when I make the same request directly via firefox, but I do. Does anybody known any method of seeing what geoserver generates for an gwt-openlayers program ? I do not suspect a bug, I suspect a projection issue i.e. my program has said something like give give me all the information about features near point x/y. Geoserver has generated a null request because it could not find anything because its concept of X/Y is different to my program concept of X/Y.(Firebug and Geosever both claim to be using the same srs value) Dave. ------------------------------------------------------------------------ Might it bee that you need to proxy your result as the application resides on port 8080 and the geoserver on 9090. That would explain why it works in the browser but not in the application. I think that you should get an error in that case though, something like "forbidden location" or the like. /Lukas -----Ursprungligt meddelande----- Från: Federica De Martin [mailto:fdemartin@...] Skickat: den 7 juni 2011 15:59 Till: Lukas Johansson; gwt-openlayers-users@... Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working I tried to have a look with firebug, and when I click on the map there is a GET request as follows: GET http://localhost:9090/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&QUERY_LAYERS=topp%3Atasmania_water_bodies,topp%3Atasmania_state_boundaries,gimovit%3Areg_tmp&STYLES=,,&BBOX=-64.789268%2C5.300572%2C115.562294%2C75.613072&FEATURE_COUNT=10&HEIGHT=400&WIDTH=1026&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=445&Y=188 200 OK 312ms OpenLayers.js (riga 1188) Intestazioni BBOX -64.789268,5.300572,115.562294,75.613072 FEATURE_COUNT 10 FORMAT image/png HEIGHT 400 INFO_FORMAT text/html LAYERS topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp QUERY_LAYERS topp:tasmania_water_bodies,topp:tasmania_state_boundaries,gimovit:reg_tmp REQUEST GetFeatureInfo SERVICE WMS SRS EPSG:4326 STYLES ,, VERSION 1.1.1 WIDTH 1026 X 445 Y 188 Intestazioni di rispostaVisualizza come testo semplice Content-Type text/html; charset=utf-8 Content-Length 890 Content-Encoding gzip Server Jetty(6.1.8) Intestazioni di richiestaVisualizza come testo semplice Host localhost:9090 User-Agent Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language it-it,it;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 115 Connection keep-alive Referer http://localhost:8080/gimovit-gwt/ Origin http://localhost:8080 If I copy the address of the request in my browser I can see the HTML response right as it should appear, but in firebug I find the Answer and HTML tabs completly empty! What else can I check? Thank you for the help... Federica ----- Original Message [Truncated]----- ------------------------------------------------------------------------- Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of the Pinan Software |