From: Andrea A. <and...@ge...> - 2012-06-19 05:56:22
|
On Tue, Jun 19, 2012 at 1:13 AM, Gavin <ga...@gn...> wrote: > Hi > > When I do a WMSGetFeatureInfo request from open layers to geoserver > using > unitPicker.infoFormat = 'application/vnd.ogc.gml'; > > Geoserver returns a <ServiceException> > java.lang.ClassCastException: > org.geoserver.wms.featureinfo.FeatureCollectionDecorator cannot be cast to > org.geotools.data.simple.SimpleFeatureCollection > > You should provide more information about your case. Just to get started: * GeoServer version * are you querying a app-schema layer? * the GetFeatureInfo URL used (you should be able to grab it using firebug or other web dev tools) Cheers Andrea -- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf |