[Geoserver-devel] WFS 2.0.0 and GML 3.1.1

Is there a known issue with combining WFS 2.0.0 and GML 3.1.1? As far as I can tell, there isn’t any reason this would be an unsupported combination. Testing on all currently available versions of GeoServer (2.5.4, 2.6.2, and 2.7beta) yield the same exception:

<ows:ExceptionReport xmlns:ows=“http://www.opengis.net/ows/1.1” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version=“2.0.0” xsi:schemaLocation=“http://www.opengis.net/ows/1.1 http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd”>

<ows:Exception exceptionCode=“NoApplicableCode”>

ows:ExceptionText
java.lang.RuntimeException: Failed to get property: {http://www.opengis.net/gml}featureMembers Failed to get property: {http://www.opengis.net/gml}featureMembers net.opengis.wfs20.impl.FeatureCollectionTypeImpl cannot be cast to net.opengis.wfs.FeatureCollectionType
</ows:ExceptionText>

</ows:Exception>

</ows:ExceptionReport>

For reference I was making a GetFeature request with the following query:

http://localhost:8080/geoserver/topp/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=topp:tasmania_cities&count=50&outputFormat=text/xml;%20subtype=gml/3.1.1

I also tried the query against WFS and global OWS service, as opposed to the virtual topp OWS.

v/r,

···

Jonathan Meyer

Applied Information Sciences

I was already aware of this bug and I just checked and there is already a jira issue as well. Something that indeed should be solved.

Regards
Niels

On 03-02-15 05:44, Jonathan Meyer wrote:

Is there a known issue with combining WFS 2.0.0 and GML 3.1.1? As far as I can tell, there isn't any reason this would be an unsupported combination. Testing on all currently available versions of GeoServer (2.5.4, 2.6.2, and 2.7beta) yield the same exception:

<ows:ExceptionReportxmlns:ows="http://www.opengis.net/ows/1.1&quot;xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;version=&quot;2\.0\.0&quot;xsi:schemaLocation=&quot;http://www.opengis.net/ows/1.1 http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd&quot;&gt;
<ows:ExceptionexceptionCode="NoApplicableCode">
<ows:ExceptionText>
java.lang.RuntimeException: Failed to get property: {http://www.opengis.net/gml\}featureMembers <http://www.opengis.net/gml}featureMembers&gt; Failed to get property: {http://www.opengis.net/gml\}featureMembers <http://www.opengis.net/gml}featureMembers&gt; net.opengis.wfs20.impl.FeatureCollectionTypeImpl cannot be cast to net.opengis.wfs.FeatureCollectionType
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

For reference I was making a GetFeature request with the following query:

http://localhost:8080/geoserver/topp/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=topp:tasmania_cities&count=50&outputFormat=text/xml;%20subtype=gml/3.1.1

I also tried the query against WFS and global OWS service, as opposed to the virtual topp OWS.

v/r,
Jonathan Meyer
Applied Information Sciences

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

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

On Tue, Feb 3, 2015 at 9:51 AM, Niels Charlier <niels@anonymised.com> wrote:

I was already aware of this bug and I just checked and there is already
a jira issue as well. Something that indeed should be solved.

Yeah, we also have the opposite case, GML 3.2 not working correctly with
WFS 1.0 (but being advertised as a supported format in that protocol too)

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

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

On Tue, Feb 3, 2015 at 5:44 AM, Jonathan Meyer <jon@anonymised.com> wrote:

Is there a known issue with combining WFS 2.0.0 and GML 3.1.1? As far as
I can tell, there isn't any reason this would be an unsupported
combination. Testing on all currently available versions of GeoServer
(2.5.4, 2.6.2, and 2.7beta) yield the same exception:

<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1&quot; xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance&quot; version="2.0.0"
xsi:schemaLocation="http://www.opengis.net/ows/1.1
http://localhost:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd&quot;&gt;
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
java.lang.RuntimeException: Failed to get property: {
http://www.opengis.net/gml\}featureMembers Failed to get property: {
http://www.opengis.net/gml\}featureMembers
net.opengis.wfs20.impl.FeatureCollectionTypeImpl cannot be cast to
net.opengis.wfs.FeatureCollectionType
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

For reference I was making a GetFeature request with the following query:

http://localhost:8080/geoserver/topp/ows?service=WFS&version=2.0.0&request=GetFeature&typeName=topp:tasmania_cities&count=50&outputFormat=text/xml;%20subtype=gml/3.1.1

I also tried the query against WFS and global OWS service, as opposed to
the virtual topp OWS.

Should be fixed for 2.7.x, 2.6.x and 2.5.x:
http://jira.codehaus.org/browse/GEOS-6134

Kudos to koordinates.com for sponsoring the fix

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

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