Hi,
I've just installed App-schema extension two weeks ago. Need somebody's
advice to understand what does this exception mean?
<ServiceException>
java.lang.ClassCastException:
org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to
org.opengis.feature.simple.SimpleFeatureType
org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to
org.opengis.feature.simple.SimpleFeatureType
</ServiceException>
I mapped my features from PostGIS and can see some of them on Layer
Preview... but when I'm asking for GML preview, instead of asking in
OpenLayer, I have exception report.
Many thanks in advance,
Valentina
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-extension-SimpleFeature-vs-ComplexFeature-exception-tp5138739.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Tue, May 6, 2014 at 8:46 AM, Valentina Sagris <valentina.sagris@anonymised.com>wrote:
Hi,
I've just installed App-schema extension two weeks ago. Need somebody's
advice to understand what does this exception mean?
<ServiceException>
java.lang.ClassCastException:
org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to
org.opengis.feature.simple.SimpleFeatureType
org.geotools.feature.type.ComplexFeatureTypeImpl cannot be cast to
org.opengis.feature.simple.SimpleFeatureType
</ServiceException>
I mapped my features from PostGIS and can see some of them on Layer
Preview... but when I'm asking for GML preview, instead of asking in
OpenLayer, I have exception report.
The preview uses the GML2 output, which has no support for complex features,
you should use GML3 or GML 3.2... to be more precise, the GML version
that you application schema is based on
Basically, once you choose an application schema, there is just one output
format that is going to make sense, the one your schema is based on,
the others do not make sense and will either misbehave or just plain break.
Cheers
Andrea
--
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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
-------------------------------------------------------
Thanks a lot for your explanation!
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/App-schema-extension-SimpleFeature-vs-ComplexFeature-exception-tp5138739p5138762.html
Sent from the GeoServer - User mailing list archive at Nabble.com.