java.lang.ClassCastException:
org.geoserver.security.decorators.SecuredIterator cannot be cast to
org.geotools.feature.FeatureIterator
at
org.geoserver.security.decorators.SecuredFeatureCollection.features(SecuredFeatureCollection.java:57)
at
org.geoserver.wfs.response.HitsOutputFormat.countFeature(HitsOutputFormat.java:102)
at
org.geoserver.wfs.response.HitsOutputFormat.write(HitsOutputFormat.java:85)
at org.geoserver.ows.Dispatcher.response(Dispatcher.java:751)
The above is an error send to me. I was trying to replicate the issue on my
development environment but was unsure on how to do that.
Reading the documentation, securedfeatureCollection is called because there
are policy set. The error lies in this
code(SecuredFeatureCollection.features())
public org.geotools.feature.FeatureIterator<F> features() {
return (FeatureIterator) SecuredObjects.secure(delegate.features(),
policy);
}
SecuredObjects.secure(delegate.features(), policy) obviously returned
SecuredIterator which can't be casted to FeatureIterator.
Where is this policy set? can I set it in eclipse to replicate it? where can
i find it in a tomcat installation?
Please advise
--
View this message in context: http://old.nabble.com/SecuredFeatureCollection.features-ClassCastException-tp31030095p31030095.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.