I reported this a while back, and since then have been struggling
to characterize it better, or make it reproducible, with little luck.
Problem: Using 2.1x (latest from yesterday), Postgresql 9.03 with PostGIS on
a Windows 2008 64 bit server with loads of RAM. After a while of the server
being up (from hours to days), WFS starts malfunctioning. The symptom is
null geometries being returned in all the WFS records of a request. The rest
of the WFS record seems fine, attributes come back, etc. Not all requests do
this, only some, and only once in a while.
I've tried just about everything I could think of. To simplify everything, I
moved the PostGIS database to the same server as GeoServer. Nothing else
uses this PostGIS database except for GeoServer. Still happens.
Set up a Jmeter script to pound on the WFS to see if I could break it -
doesn't seem to make any difference, it still runs fine for a while, then
starts acting up for no apparent reason.
I have found that going into the Store "Edit Vector Data Source" and
clicking Save fixes it (for a while).
Doesn't seem to matter GET or XML request.
Here is an example:
GET
/geoserver/wfs?request=GetFeature&SERVICE=WFS&VERSION=1.0.0&BBOX=-99.77046450741156%2C35.65520072139851%2C-98.46983143709022%2C36.04381517847971&TYPENAME=ogi%3Aquad100
HTTP/1.1
Response (from Fiddler) showing the null geom:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="
http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogi="http://ogi.state.ok.us" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.opengis.net/wfs
http://204.62.18.179:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd
http://ogi.state.ok.us
http://204.62.18.179:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=ogi%3Aquad100
">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="."
cs="," ts=" ">-100.00040641,35.50004362
-98.0003279,36.50003277</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogi:quad100 fid="quad100.25">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">-100.00040641,36.00003888
-99.00037399,36.50003277</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<ogi:area>0.500004</ogi:area>
<ogi:perimeter>3.00004</ogi:perimeter>
<ogi:quad100_>26</ogi:quad100_>
<ogi:quad100_id>25</ogi:quad100_id>
<ogi:qdname>WOODWARD</ogi:qdname>
<ogi:state1>OK</ogi:state1>
<ogi:centlat>36.25</ogi:centlat>
<ogi:centlong>-99.5</ogi:centlong>
<ogi:index_code>36099-A1</ogi:index_code>
<ogi:the_geom>
<gml:null srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"/>
</ogi:the_geom>
</ogi:quad100>
</gml:featureMember>
...
Doing the exact same request again a few minutes later using the Fiddler
request builder gives:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="
http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml"
xmlns:ogi="http://ogi.state.ok.us" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.opengis.net/wfs
http://204.62.18.179:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd
http://ogi.state.ok.us
http://204.62.18.179:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=ogi%3Aquad100
">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="."
cs="," ts=" ">-100.00040641,35.50004362
-98.0003279,36.50003277</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogi:quad100 fid="quad100.25">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">-100.00040641,36.00003888
-99.00037399,36.50003277</gml:coordinates>
</gml:Box>
</gml:boundedBy>
<ogi:area>0.500004</ogi:area>
<ogi:perimeter>3.00004</ogi:perimeter>
<ogi:quad100_>26</ogi:quad100_>
<ogi:quad100_id>25</ogi:quad100_id>
<ogi:qdname>WOODWARD</ogi:qdname>
<ogi:state1>OK</ogi:state1>
<ogi:centlat>36.25</ogi:centlat>
<ogi:centlong>-99.5</ogi:centlong>
<ogi:index_code>36099-A1</ogi:index_code>
<ogi:the_geom>
<gml:MultiPolygon srsName="
http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:polygonMember>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">-99.00037399,36.50003106 -99.00037441,36.40003396
-99.00037444,36.37503206 -99.0003746,36.30003402 -99.00037499,36.25003442
-99.0003748,36.20003654 -99.00037523,36.12503651 -99.00037513,36.10003564
-99.00037521,36.00003888 -99.1003765,36.00003919 -99.12537862,36.00004006
-99.20037742,36.00004043 -99.25038217,36.00004073 -99.30038607,36.00004128
-99.37538507,36.00004203 -99.40038718,36.00004215 -99.5003882,36.00004284
-99.6003876,36.00004564 -99.62538973,36.00004432 -99.70038746,36.00004043
-99.75039168,36.00004084 -99.80039586,36.00004037 -99.87539502,36.0000402
-99.90039762,36.00004035 -100.00039879,36.00004019 -100.00040019,36.10003658
-100.00040003,36.12503822 -100.00040078,36.20003714
-100.00040152,36.25003652 -100.00040261,36.30003424
-100.00040408,36.37503786 -100.00040456,36.4000338 -100.00040641,36.50003164
-99.90040448,36.50003118 -99.87540187,36.50003123 -99.80040237,36.50003223
-99.75039742,36.50003232 -99.70039281,36.50003277 -99.62539378,36.50003266
-99.60039154,36.50003232 -99.50038969,36.50003227 -99.40038821,36.50003259
-99.37538603,36.50003225 -99.30038654,36.50003105 -99.25038185,36.5000315
-99.20037698,36.50003121 -99.12537767,36.50003111 -99.10037589,36.5000315
-99.00037399,36.50003106</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</ogi:the_geom>
</ogi:quad100>
</gml:featureMember>
...
Is that weird or what?
Thanks for any insights or suggestions!
Roger Bedell
Coordinate Solutions Inc.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users