[Geoserver-users] WFS Querying returning "null" FeatureNS prefix coming back with store is PostGIS

This POST (public server)

http://maps.gns.cri.nz/geoserver/wfs

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs&quot; service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
<wfs:Query typeName="gns:TopEarlyCretaceousDepthcontours" srsName="EPSG:900913" xmlns:gns="http://www.gns.cri.nz">
<wfs:PropertyName>Elevation</wfs:PropertyName>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
<ogc:Intersects>
<ogc:PropertyName>the_geom</ogc:PropertyName>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml&quot; srsName="EPSG:900913">
<gml:exterior>
<gml:LinearRing>
<gml:posList>19800217.91162 -4851856.1140908 19814893.821049 -4854302.0989956 19787987.987096 -4890991.8725673 19787987.987096 -4890991.8725673 19800217.91162 -4851856.1140908</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</ogc:Intersects>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>

returns:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection numberOfFeatures="25" timeStamp="2013-05-02T00:05:56.234Z" xsi:schemaLocation="http://www.gns.cri.nz http://maps.gns.cri.nz:80/geoserver21/wfs?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typeName=gns%3ATopEarlyCretaceousDepthcontours http://www.opengis.net/wfs http://maps.gns.cri.nz:80/geoserver21/schemas/wfs/1.1.0/wfs.xsd&quot; xmlns:pbe="http://data.gns.cri.nz" xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:tiger="http://www.census.gov" xmlns:gns="http://www.gns.cri.nz" xmlns:cite="http://www.opengeospatial.net/cite&quot; xmlns:nurc="http://www.nurc.nato.int" xmlns:sde="http://geoserver.sf.net" xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:topp="http://www.openplans.org/topp&quot; xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:r="linz.govt.nz" xmlns:gsml="urn:cgi:xmlns:CGI:GeoSciML:2.0" xmlns:sf="http://www.openplans.org/spearfish&quot; xmlns:ows="http://www.opengis.net/ows&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;&lt;gml:featureMembers&gt;&lt;null:TopEarlyCretaceousDepthcontours gml:id="TopEarlyCretaceousDepthcontours.78"><null:Elevation>7700.0</null:Elevation></null:TopEarlyCretaceousDepthcontours><null:TopEarlyCretaceousDepthcontours gml:id="TopEarlyCretaceousDepthcontours.79"><null:Elevation>7800.0</null:Elevation></null:TopEarlyCretaceousDepthcontours><null:TopEarlyCretaceousDepthcontours gml:id="TopEarlyCretaceousDepthcontours.80"><null:Elevation>7900.0</null:Elevation></null:TopEarlyCretaceousDepthcontours><null:TopEarlyCretaceousDepthcontours

etc

which then kills the XML parser. Happens to all layers in a POSTGIS store but not to other stores in the same workspace. Geoserver 2.2.5. I tried Reload feature type and Reload Configuration but no change. No errors showing up in the logs.
Seems may be related to jira.codehaus.org/browse/GEOS-4773 but its not a virtual service that I can see.
--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

On Thu, May 2, 2013 at 3:48 AM, Phil Scadden <p.scadden@anonymised.com> wrote:

which then kills the XML parser. Happens to all layers in a POSTGIS
store but not to other stores in the same workspace. Geoserver 2.2.5. I
tried Reload feature type and Reload Configuration but no change. No
errors showing up in the logs.
Seems may be related to jira.codehaus.org/browse/GEOS-4773 but its not a
virtual service that I can see.

Mind, as far as I know all it takes for that issue to happen is that
someone makes a WFS request with GML3 output on a virtual service before
you do yours, and the preview does use virtual services.
The annoying extra bit is that at the moment the virtual services cannot be
disabled.

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

>Mind, as far as I know all it takes for that issue to happen is that someone makes a WFS request with GML3 output on a virtual >service before you do yours, and the preview does use virtual services.

So we have no workaround? (Well yes, I can hack OL). Never saw it on 2.1.3. Blocked on PostGIS by this one and crippled on SDE with this regression https://jira.codehaus.org/browse/GEOS-5738.

This is really frustrating.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.