[Geoserver-users] wfs issue

Hi All,

I'm using GS 2.4.0. When I do a wfs request for a full data set, everything works OK:

wfs?version=2.0&request=GetFeature&typeName=cei:farms

But if I try to define which attribute i want, like this:

wfs?version=2.0&request=GetFeature&typeName=cei:farms&propertyName=the_geom

I get this error:

java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection
java.lang.String cannot be cast to java.util.Collection

Any thoughts?

Thanks,
Steve

--
Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University

Hi Stephen,

Try adding “&service=WFS” to the request, it’s a mandatory field.

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Lorenzo Pini
Software Engineer

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

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

On Thu, Jan 30, 2014 at 8:49 PM, Stephen Crawford <src176@anonymised.com> wrote:

Hi All,

I’m using GS 2.4.0. When I do a wfs request for a full data set,
everything works OK:

wfs?version=2.0&request=GetFeature&typeName=cei:farms

But if I try to define which attribute i want, like this:

wfs?version=2.0&request=GetFeature&typeName=cei:farms&propertyName=the_geom

I get this error:

java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Collection
java.lang.String cannot be cast to java.util.Collection

Any thoughts?

Thanks,
Steve


Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University


WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk


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

That did it. Thanks!

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Lorenzo Pini
Software Engineer

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

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

On Thu, Jan 30, 2014 at 8:49 PM, Stephen Crawford <src176@anonymised.com> wrote:

Hi All,

I’m using GS 2.4.0. When I do a wfs request for a full data set,
everything works OK:

wfs?version=2.0&request=GetFeature&typeName=cei:farms

But if I try to define which attribute i want, like this:

wfs?version=2.0&request=GetFeature&typeName=cei:farms&propertyName=the_geom

I get this error:

java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Collection
java.lang.String cannot be cast to java.util.Collection

Any thoughts?

Thanks,
Steve


Stephen Crawford
Center for Environmental Informatics
The Pennsylvania State University


WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk


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