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.


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to