[
http://jira.codehaus.org/browse/GEOT-3302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Victor Tey reopened GEOT-3302:
------------------------------
Due to the error below, I need your approval for this patch for trunk and
branch.
SecuredFeatureCollection.features() is supposed to return a FeatureIterator but
due to some policy setting on the server, it seem to return a Iterator instead.
I was unable to replicate the issue on my local machine and it is machine
setting specific.
I was also unable to get any response from Andrea with regards to this
therefore had to submit this workaround.
2011-02-24 11:04:02,941 ERROR [geoserver.ows] -
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)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:233)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
> App-schema: get numberOfFeatures without executing the query
> ------------------------------------------------------------
>
> Key: GEOT-3302
> URL: http://jira.codehaus.org/browse/GEOT-3302
> Project: GeoTools
> Issue Type: Improvement
> Components: core xml
> Reporter: Rini Angreani
> Assignee: Justin Deoliveira
> Attachments: Geot-3302 - Relavant Patch.zip, GEOT-3302 FULL
> PATCH.zip, GEOT-3302-Revision2.patch, GEOT-3302-Revision2_002.patch,
> GEOT-3302.zip, ResultTypeHit.patch
>
>
> To support streaming of features, GeoServer WFS writes the root element of a
> response and then each feature as it is created. The root element requires a
> numberOfFeatures element; because the number of features is not known,
> GeoServer must get them all to count them. It then must get them all a second
> time to encode them one by one. (Streaming is needed as not all responses
> will fit in memory.) The consequence of the double query is that WFS
> responses take twice as long. This is particularly bad for app-schema as it
> is already very slow.
> In practice, GeoServer streams features to disk first, so that an error
> document can be returned if an error occurs. (This is a selectable output
> strategy.)
> In theory it should be possible to stream only the features to disk as an XML
> fragment, then encode the root element on the fly when all the features have
> been seen, meaning the numberOfFeatures is known, and only one query is
> required.
> This may require modification to Encoder, OutputStrategy, and OutputFormat
> APIs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel