[Geoserver-users] GetFeatureInfo returns an empty html table.

Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I’m doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
 scope='col'>
villes
 </th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can’t see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn’t clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT “id”, “name”, encode(AsBinary(force_2d(“geom”), ‘XDR’),‘base64’) FROM “public”.“villes” WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT “id”, “name”, encode(AsBinary(force_2d(“geom”), ‘XDR’),‘base64’) FROM “public”.“villes” WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

Hi Marc,

From the log it appears that hte request is picking up hits... strange that its not being output... What version of GeoServer are you using?

Marc Desharnais wrote:

  Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I'm doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
scope='col'>
villes
</th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can't see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn't clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

!DSPAM:4007,469e586423661804284693!

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

-------------------------------------------------------------------------
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,469e586423661804284693!

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

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

!DSPAM:4007,469e586423661804284693!

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

Hi Justin,

Thanks for replying :slight_smile:

I'm using version 1.5.1.

The complete PostGIS table is this one
#select * from villes;
  id | name | geom
----+----------------+--------------------------------------------
  1 | Toronto | 01010000003333333333D353C0CDCCCCCCCCCC4540
  2 | Montreal | 010100000066666666666652C00000000000C04640
  3 | Quebec | 01010000009A99999999C951C00000000000604740
  4 | Calgary | 01010000000000000000805CC09A99999999794940
  5 | Edmonton | 01010000003333333333535CC09A99999999B94A40
  6 | Vancouver | 01010000000000000000C05EC03333333333934840
  7 | Regina | 01010000000000000000205AC0EC51B81E852B4940
  8 | Winnipeg | 010100000000000000004058C06666666666E64840
  9 | Thunder Bay | 010100000066666666664656C06666666666264840
10 | Sherbrooke | 0101000000713D0AD7A3F051C06666666666A64640
11 | Halifax | 01010000003333333333B34FC00000000000404640
12 | St-Johns | 01010000008FC2F5285C4F4AC03333333333B34740
(12 rows)

So if the query is well made, why it can't associate any geometry objects with the click? I tried to specify a certain radius in openlayers for the points but it didn't change anything.

Marc

Justin Deoliveira wrote:

Hi Marc,

From the log it appears that hte request is picking up hits... strange that its not being output... What version of GeoServer are you using?

Marc Desharnais wrote:

  Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I'm doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
scope='col'>
villes
</th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can't see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn't clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600

355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse

355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

!DSPAM:4007,469e586423661804284693!

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

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

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,469e586423661804284693!

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

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

!DSPAM:4007,469e586423661804284693!

Hi Marc,

Could you send me a pg_dump of the table by any chance... .i am too lazy to reverse engineer this output into a postgis table :). That way i can try it out here and see if I can reproduce the issue.

-Justin

Marc Desharnais wrote:

Hi Justin,

Thanks for replying :slight_smile:

I'm using version 1.5.1.

The complete PostGIS table is this one
#select * from villes;
id | name | geom
----+----------------+--------------------------------------------
1 | Toronto | 01010000003333333333D353C0CDCCCCCCCCCC4540
2 | Montreal | 010100000066666666666652C00000000000C04640
3 | Quebec | 01010000009A99999999C951C00000000000604740
4 | Calgary | 01010000000000000000805CC09A99999999794940
5 | Edmonton | 01010000003333333333535CC09A99999999B94A40
6 | Vancouver | 01010000000000000000C05EC03333333333934840
7 | Regina | 01010000000000000000205AC0EC51B81E852B4940
8 | Winnipeg | 010100000000000000004058C06666666666E64840
9 | Thunder Bay | 010100000066666666664656C06666666666264840
10 | Sherbrooke | 0101000000713D0AD7A3F051C06666666666A64640
11 | Halifax | 01010000003333333333B34FC00000000000404640
12 | St-Johns | 01010000008FC2F5285C4F4AC03333333333B34740
(12 rows)

So if the query is well made, why it can't associate any geometry objects with the click? I tried to specify a certain radius in openlayers for the points but it didn't change anything.

Marc

Justin Deoliveira wrote:

Hi Marc,

From the log it appears that hte request is picking up hits... strange that its not being output... What version of GeoServer are you using?

Marc Desharnais wrote:

  Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I'm doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
scope='col'>
villes
</th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can't see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn't clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600

355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse

355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

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

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

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,469e586423661804284693!

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

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

!DSPAM:4007,469e586423661804284693!

!DSPAM:4007,469e6c8141035219720167!

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

Hi,

of course, here is the dump. I should have though of it :slight_smile: This is the file used to create the table.

DROP TABLE villes;
CREATE TABLE villes (id INTEGER PRIMARY KEY, name text, geom geometry);
INSERT INTO villes VALUES ( 1, 'Toronto', GeometryFromText( 'POINT( -79.3 43.6 )', -1 ) );
INSERT INTO villes VALUES ( 2, 'Montreal', GeometryFromText( 'POINT( -73.6 45.5 )', -1 ) );
INSERT INTO villes VALUES ( 3, 'Quebec', GeometryFromText( 'POINT( -71.15 46.75 )', -1 ) );
INSERT INTO villes VALUES ( 4, 'Calgary', GeometryFromText( 'POINT( -114 50.95)', -1 ) );
INSERT INTO villes VALUES ( 5, 'Edmonton', GeometryFromText( 'POINT( -113.3 53.45)', -1 ) );
INSERT INTO villes VALUES ( 6, 'Vancouver', GeometryFromText( 'POINT( -123 49.15)', -1 ) );
INSERT INTO villes VALUES ( 7, 'Regina', GeometryFromText( 'POINT( -104.5 50.34)', -1 ) );
INSERT INTO villes VALUES ( 8, 'Winnipeg', GeometryFromText( 'POINT( -97 49.8)', -1 ) );
INSERT INTO villes VALUES ( 9, 'Thunder Bay', GeometryFromText( 'POINT( -89.1 48.3)', -1 ) );
INSERT INTO villes VALUES ( 10, 'Sherbrooke', GeometryFromText( 'POINT( -71.76 45.3)', -1 ) );
INSERT INTO villes VALUES ( 11, 'Halifax', GeometryFromText( 'POINT( -63.4 44.5)', -1 ) );
INSERT INTO villes VALUES ( 12, 'StJohns', GeometryFromText( 'POINT( -52.62 47.4)', -1 ) );

Pretty simple and basic as you can see.

Thanks a lot!

Marc

Justin Deoliveira wrote:

Hi Marc,

Could you send me a pg_dump of the table by any chance... .i am too lazy to reverse engineer this output into a postgis table :). That way i can try it out here and see if I can reproduce the issue.

-Justin

Marc Desharnais wrote:

Hi Justin,

Thanks for replying :slight_smile:

I'm using version 1.5.1.

The complete PostGIS table is this one
#select * from villes;
id | name | geom
----+----------------+--------------------------------------------
1 | Toronto | 01010000003333333333D353C0CDCCCCCCCCCC4540
2 | Montreal | 010100000066666666666652C00000000000C04640
3 | Quebec | 01010000009A99999999C951C00000000000604740
4 | Calgary | 01010000000000000000805CC09A99999999794940
5 | Edmonton | 01010000003333333333535CC09A99999999B94A40
6 | Vancouver | 01010000000000000000C05EC03333333333934840
7 | Regina | 01010000000000000000205AC0EC51B81E852B4940
8 | Winnipeg | 010100000000000000004058C06666666666E64840
9 | Thunder Bay | 010100000066666666664656C06666666666264840
10 | Sherbrooke | 0101000000713D0AD7A3F051C06666666666A64640
11 | Halifax | 01010000003333333333B34FC00000000000404640
12 | St-Johns | 01010000008FC2F5285C4F4AC03333333333B34740
(12 rows)

So if the query is well made, why it can't associate any geometry objects with the click? I tried to specify a certain radius in openlayers for the points but it didn't change anything.

Marc

Justin Deoliveira wrote:

Hi Marc,

From the log it appears that hte request is picking up hits... strange that its not being output... What version of GeoServer are you using?

Marc Desharnais wrote:

  Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I'm doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
scope='col'>
villes
</th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can't see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn't clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600

355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse

355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

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

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

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,469e586423661804284693!

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

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

!DSPAM:4007,469e586423661804284693!

!DSPAM:4007,469e6c8141035219720167!

Hi Marc,

So I loaded your data into a recent snapshot of geoserver 1.5.x. Recently (post 1.5.1) functionality has been added to a getfeautre info directly from the open layers map preview. And it works!!

So... it could be that this problem has already been solved but you just need to upgrade... Would you be willing to try out the latest 1.5.x nightly build available here:

http://geo.openplans.org/nightly/1.5.x/geoserver-1.5.x-071707-bin.zip

-Justin

Marc Desharnais wrote:

Hi,

of course, here is the dump. I should have though of it :slight_smile: This is the file used to create the table.

DROP TABLE villes;
CREATE TABLE villes (id INTEGER PRIMARY KEY, name text, geom geometry);
INSERT INTO villes VALUES ( 1, 'Toronto', GeometryFromText( 'POINT( -79.3 43.6 )', -1 ) );
INSERT INTO villes VALUES ( 2, 'Montreal', GeometryFromText( 'POINT( -73.6 45.5 )', -1 ) );
INSERT INTO villes VALUES ( 3, 'Quebec', GeometryFromText( 'POINT( -71.15 46.75 )', -1 ) );
INSERT INTO villes VALUES ( 4, 'Calgary', GeometryFromText( 'POINT( -114 50.95)', -1 ) );
INSERT INTO villes VALUES ( 5, 'Edmonton', GeometryFromText( 'POINT( -113.3 53.45)', -1 ) );
INSERT INTO villes VALUES ( 6, 'Vancouver', GeometryFromText( 'POINT( -123 49.15)', -1 ) );
INSERT INTO villes VALUES ( 7, 'Regina', GeometryFromText( 'POINT( -104.5 50.34)', -1 ) );
INSERT INTO villes VALUES ( 8, 'Winnipeg', GeometryFromText( 'POINT( -97 49.8)', -1 ) );
INSERT INTO villes VALUES ( 9, 'Thunder Bay', GeometryFromText( 'POINT( -89.1 48.3)', -1 ) );
INSERT INTO villes VALUES ( 10, 'Sherbrooke', GeometryFromText( 'POINT( -71.76 45.3)', -1 ) );
INSERT INTO villes VALUES ( 11, 'Halifax', GeometryFromText( 'POINT( -63.4 44.5)', -1 ) );
INSERT INTO villes VALUES ( 12, 'StJohns', GeometryFromText( 'POINT( -52.62 47.4)', -1 ) );

Pretty simple and basic as you can see.

Thanks a lot!

Marc

Justin Deoliveira wrote:

Hi Marc,

Could you send me a pg_dump of the table by any chance... .i am too lazy to reverse engineer this output into a postgis table :). That way i can try it out here and see if I can reproduce the issue.

-Justin

Marc Desharnais wrote:

Hi Justin,

Thanks for replying :slight_smile:

I'm using version 1.5.1.

The complete PostGIS table is this one
#select * from villes;
id | name | geom
----+----------------+--------------------------------------------
1 | Toronto | 01010000003333333333D353C0CDCCCCCCCCCC4540
2 | Montreal | 010100000066666666666652C00000000000C04640
3 | Quebec | 01010000009A99999999C951C00000000000604740
4 | Calgary | 01010000000000000000805CC09A99999999794940
5 | Edmonton | 01010000003333333333535CC09A99999999B94A40
6 | Vancouver | 01010000000000000000C05EC03333333333934840
7 | Regina | 01010000000000000000205AC0EC51B81E852B4940
8 | Winnipeg | 010100000000000000004058C06666666666E64840
9 | Thunder Bay | 010100000066666666664656C06666666666264840
10 | Sherbrooke | 0101000000713D0AD7A3F051C06666666666A64640
11 | Halifax | 01010000003333333333B34FC00000000000404640
12 | St-Johns | 01010000008FC2F5285C4F4AC03333333333B34740
(12 rows)

So if the query is well made, why it can't associate any geometry objects with the click? I tried to specify a certain radius in openlayers for the points but it didn't change anything.

Marc

Justin Deoliveira wrote:

Hi Marc,

From the log it appears that hte request is picking up hits... strange that its not being output... What version of GeoServer are you using?

Marc Desharnais wrote:

  Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I'm doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
scope='col'>
villes
</th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can't see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn't clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600

355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse

355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

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

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

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/

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

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

!DSPAM:4007,469e586423661804284693!

!DSPAM:4007,469e6c8141035219720167!

-------------------------------------------------------------------------
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/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,469e7ee562988992556831!

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

Hi Justin,

I did like you and I got last night's snapshot of geoserver. I can see like you that everything is fine with the exemple provided with geoserver!

What I found weird now is when I copy entirely the html code without any modification to my web page, the map displays well, but it hangs with the "Loading... please wait..." message.

My though would be some kind of permission problem as my web server is apache. But all requests are made from geoserver to postgis, so I don't see how it would affect anything. But If you can think of a cause that would prevent it to work on my web site go ahead :slight_smile:

At least I can see that it is not a geoserver problem, but there is definitely something wrong here somewhere.

Thanks a lot for your help so far!

Marc

Justin Deoliveira wrote:

Hi Marc,

So I loaded your data into a recent snapshot of geoserver 1.5.x. Recently (post 1.5.1) functionality has been added to a getfeautre info directly from the open layers map preview. And it works!!

So... it could be that this problem has already been solved but you just need to upgrade... Would you be willing to try out the latest 1.5.x nightly build available here:

http://geo.openplans.org/nightly/1.5.x/geoserver-1.5.x-071707-bin.zip

-Justin

Marc Desharnais wrote:

Hi,

of course, here is the dump. I should have though of it :slight_smile: This is the file used to create the table.

DROP TABLE villes;
CREATE TABLE villes (id INTEGER PRIMARY KEY, name text, geom geometry);
INSERT INTO villes VALUES ( 1, 'Toronto', GeometryFromText( 'POINT( -79.3 43.6 )', -1 ) );
INSERT INTO villes VALUES ( 2, 'Montreal', GeometryFromText( 'POINT( -73.6 45.5 )', -1 ) );
INSERT INTO villes VALUES ( 3, 'Quebec', GeometryFromText( 'POINT( -71.15 46.75 )', -1 ) );
INSERT INTO villes VALUES ( 4, 'Calgary', GeometryFromText( 'POINT( -114 50.95)', -1 ) );
INSERT INTO villes VALUES ( 5, 'Edmonton', GeometryFromText( 'POINT( -113.3 53.45)', -1 ) );
INSERT INTO villes VALUES ( 6, 'Vancouver', GeometryFromText( 'POINT( -123 49.15)', -1 ) );
INSERT INTO villes VALUES ( 7, 'Regina', GeometryFromText( 'POINT( -104.5 50.34)', -1 ) );
INSERT INTO villes VALUES ( 8, 'Winnipeg', GeometryFromText( 'POINT( -97 49.8)', -1 ) );
INSERT INTO villes VALUES ( 9, 'Thunder Bay', GeometryFromText( 'POINT( -89.1 48.3)', -1 ) );
INSERT INTO villes VALUES ( 10, 'Sherbrooke', GeometryFromText( 'POINT( -71.76 45.3)', -1 ) );
INSERT INTO villes VALUES ( 11, 'Halifax', GeometryFromText( 'POINT( -63.4 44.5)', -1 ) );
INSERT INTO villes VALUES ( 12, 'StJohns', GeometryFromText( 'POINT( -52.62 47.4)', -1 ) );

Pretty simple and basic as you can see.

Thanks a lot!

Marc

Justin Deoliveira wrote:

Hi Marc,

Could you send me a pg_dump of the table by any chance... .i am too lazy to reverse engineer this output into a postgis table :). That way i can try it out here and see if I can reproduce the issue.

-Justin

Marc Desharnais wrote:

Hi Justin,

Thanks for replying :slight_smile:

I'm using version 1.5.1.

The complete PostGIS table is this one
#select * from villes;
id | name | geom
----+----------------+--------------------------------------------
1 | Toronto | 01010000003333333333D353C0CDCCCCCCCCCC4540
2 | Montreal | 010100000066666666666652C00000000000C04640
3 | Quebec | 01010000009A99999999C951C00000000000604740
4 | Calgary | 01010000000000000000805CC09A99999999794940
5 | Edmonton | 01010000003333333333535CC09A99999999B94A40
6 | Vancouver | 01010000000000000000C05EC03333333333934840
7 | Regina | 01010000000000000000205AC0EC51B81E852B4940
8 | Winnipeg | 010100000000000000004058C06666666666E64840
9 | Thunder Bay | 010100000066666666664656C06666666666264840
10 | Sherbrooke | 0101000000713D0AD7A3F051C06666666666A64640
11 | Halifax | 01010000003333333333B34FC00000000000404640
12 | St-Johns | 01010000008FC2F5285C4F4AC03333333333B34740
(12 rows)

So if the query is well made, why it can't associate any geometry objects with the click? I tried to specify a certain radius in openlayers for the points but it didn't change anything.

Marc

Justin Deoliveira wrote:

Hi Marc,

From the log it appears that hte request is picking up hits... strange that its not being output... What version of GeoServer are you using?

Marc Desharnais wrote:

  Hi all,

I work to build a visualization tool for the Government of Canada. We want to use OpenLayers with geoserver to access our new PostGIS database.
I'm doing tests to see what it has to offer. Everything is fine so far, but I have so trouble with the GetFeatureInfo function.

When I make a manual request in Firefox I always get an empty html table.
/*******Code

<html><body>
<table border='1'>
<tr><th colspan=
2
scope='col'>
villes
</th></tr>
<tr>
<td>
name
</td>
<td>
geom
</td>
</tr>
</table>
<p>
</body></html>

CODE **********/

The rows are named properly so I guess that the query to the database is well made.
I checked the log file of geoserver, and the output is below for the request. I can't see if it is successful or not. Like, if the query in the table gave what it was supposed to. The last 3 lines of the output doesn't clearly indicate that the query was well made.

I would like to know what is going wrong with the request, why the returned html table is empty like that.
Any help will be greatly appreciated.

Thanks a lot!

Marc

The log file in Geoserver give me this:

355129 [FINE] org.vfny.geoserver.servlets.AbstractService - reading request: LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600

355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -168.222656
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 21.09375
355130 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element -4.746094
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element 73.828125
355131 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355131 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355132 [FINEST] org.vfny.geoserver.util.requests.readers.KvpRequestReader - adding simple element topp:villes
355557 [FINE] org.vfny.geoserver.global.Data - getting type topp:villes
355558 [FINER] org.vfny.geoserver.servlets.AbstractService - serviceRequest provided with HttpServletRequest: GET /geoserver/wms?LAYERS=topp%3Avilles&FORMAT=image%2Fpng&TRANSPARENT=true&REPROJECT=true&TILED=true&QUERYFLAG=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A4326&BBOX=-168.222656%2C21.09375%2C-4.746094%2C73.828125&X=1109&Y=315&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Avilles&REDIUS=20&WIDTH=1860&HEIGHT=600 HTTP/1.1
Host: ulysse.cmc.ec.gc.ca:8081
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=enfn8rcqyurs; SITESERVER=ID=ee005ec8438c88fcad73313e67f93517; MANTIS_VIEW_ALL_COOKIE=47; MANTIS_PROJECT_COOKIE=10
Cache-Control: max-age=0

355559 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355559 [FINE] org.vfny.geoserver.servlets.AbstractService - strategy is: PARTIAL-BUFFER2
355560 [FINER] org.vfny.geoserver.servlets.AbstractService - executing request
355560 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - ENTRY org.vfny.geoserver.wms.requests.GetFeatureInfoRequest@anonymised.com
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - request format is text/html
355561 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - found GetFeatureInfoDelegate class org.vfny.geoserver.wms.responses.featureInfo.HTMLTableFeatureInfoResponse

355562 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355562 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355563 [FINER] ExpressionAttribute - ENTRY geom
355563 [FINEST] org.geotools.filter.AttributeExpressionImpl - schema: DefaultFeatureType [name=villes , namespace=http://www.openplans.org/topp , abstract=false , types=(DefaultAttributeType [name=name , type=class java.lang.String , nillable=true, min=1, max=1],DefaultAttributeType [name=geom , type=class com.vividsolutions.jts.geom.Point , nillable=true, min=1, max=1],)]

attribute: geom
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355564 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355565 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - get Feature source called on villes
355566 [FINE] org.geotools.data.postgis.PostgisDataStore - returning pg feature locking
355567 [FINER] org.vfny.geoserver.servlets.AbstractService - execution succeed
355567 [FINEST] org.vfny.geoserver.servlets.AbstractService - getting strategy output
355568 [FINER] org.vfny.geoserver.servlets.AbstractService - strategy output is: org.vfny.geoserver.util.PartialBufferedOutputStream2
355568 [FINE] org.vfny.geoserver.servlets.AbstractService - mime type is: text/html;charset=UTF-8
355568 [FINER] org.vfny.geoserver.wms.responses.GetFeatureInfoResponse - asking delegate for write to org.vfny.geoserver.util.PartialBufferedOutputStream2@anonymised.com
355569 [FINEST] org.geotools.filter.GeometryFilterImpl - filter type match:true; in:7; out:7
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - left geom match:true; in:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375)); out:POLYGON ((-70.92773442258064 46.318359375, -70.57617192365592 46.318359375, -70.57617192365592 45.966796875, -70.92773442258064 45.966796875, -70.92773442258064 46.318359375))
355571 [FINEST] org.geotools.filter.GeometryFilterImpl - right geom match:true; in:null; out:null
355572 [FINE] org.geotools.data.jdbc.JDBC1DataStore - calling sql builder with filter Filter.NONE
355572 [FINER] AbstractFilter - ENTRY 12,345
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - sql is SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355573 [FINE] org.geotools.data.jdbc.JDBC1DataStore - About to execute query: SELECT "id", "name", encode(AsBinary(force_2d("geom"), 'XDR'),'base64') FROM "public"."villes" WHERE TRUE
355574 [FINE] org.geotools.data.jdbc.ConnectionPool - Getting available connection.
355577 [FINE] org.geotools.data.jdbc.ConnectionPool$ConnectionListManager - Connection closed - adding to available connections.
355579 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled

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

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

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/

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

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

!DSPAM:4007,469e586423661804284693!

!DSPAM:4007,469e6c8141035219720167!

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

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/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,469e7ee562988992556831!

Hi Justin,

It turned out that the problem was a security issue.
As you probably know you can't access a host with your browser and make query on another. The point I was missing was that the same machine with 2 different ports are considered to be 2 different hosts. It's a simple explanation when you realize that. I just had to setup a small proxy provided in the openlayers FAQ then it went fine!

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost

I learned too why the security exception in Firefox while I attempted to make request (via Firebug) didn't show like I would have expect.
That's a thing that really bothered me at the first place because I would have expected an clear error from the browser.
I have read that this kind of exception are treated silently in the browser so it's normal I've seen nothing while I was debugging.

Now everything is working well!

Thank you Justin for your support, you helped a lot! :slight_smile:

Marc

Hi Marc,

Great that you figured out the issue. Glad I could help!!

-Justin

Marc Desharnais wrote:

Hi Justin,

It turned out that the problem was a security issue.
As you probably know you can't access a host with your browser and make query on another. The point I was missing was that the same machine with 2 different ports are considered to be 2 different hosts. It's a simple explanation when you realize that. I just had to setup a small proxy provided in the openlayers FAQ then it went fine!

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost

I learned too why the security exception in Firefox while I attempted to make request (via Firebug) didn't show like I would have expect.
That's a thing that really bothered me at the first place because I would have expected an clear error from the browser.
I have read that this kind of exception are treated silently in the browser so it's normal I've seen nothing while I was debugging.

Now everything is working well!

Thank you Justin for your support, you helped a lot! :slight_smile:

Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,469f8749281211096210785!

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