[Geoserver-devel] [jira] Created: (GEOS-2244) Can trigger infinite loop in StreamingRenderer.processStylers

Can trigger infinite loop in StreamingRenderer.processStylers
-------------------------------------------------------------

                 Key: GEOS-2244
                 URL: http://jira.codehaus.org/browse/GEOS-2244
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.7.0-RC3, 1.6.4
         Environment: RHEL3, Java 1.6.0_07, JBoss 4.0.3SP1, GeoServer 1.6.4
            Reporter: Ryan Hofschneider
            Assignee: Andrea Aime
            Priority: Critical

org.geotools.renderer.liteStreamingRenderer.processStylers() iterates over a FeatureReader using FeatureReaderIterator within a while loop.

If the hasNext() method of the FeatureReaderIterator (e.g. JDBCFeatureReader, as in the stack trace below) throws an exception, the exception is caught within the while loop, the loop starts again, the exception is thrown and caught again, and so forth until the JMV is killed or the log file fills the available disk space.

For relevant portion of stack trace see: http://jira.codehaus.org/browse/GEOT-2049

Discovered this issue when GeoServer created a 60GB log, logging a stack trace every few milliseconds.

Perhaps coincidentally, the stack trace is very similar to the one described in this thread:
http://www.nabble.com/max-features-tt18590812.html
The request that triggered this infinite loop is very similar to the one described in that thread as well.

--
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