That is a bug alright, can you open a but report and supply a patch?
(we have tried to hunt down most of these examples that leave an iterator open
but there always seems to be more)
--
Jody Garnett
On 7 November 2013 at 8:12:49 pm, Dries Jeroen ([email protected]) wrote:
Hi all,
I think I spotted a bug in org.geotools.process.vector.VectorToRasterProcess
It contains a line like this:
SimpleFeature feature = features.features().next();
so the iterator which is returned by features.features() is never closed.
When my feature collection is backed by a shp file, this results in
these warnings:
Nov 07, 2013 9:40:05 AM org.geotools.data.shapefile.files.ShpFiles
logCurrentLockers
SEVERE: The following locker still has a lock: read on file.shp by
org.geotools.data.shapefile.shp.ShapefileReader
Nov 07, 2013 9:40:05 AM org.geotools.data.shapefile.files.ShpFiles
logCurrentLockers
SEVERE: The following locker still has a lock: read on file.shx by
org.geotools.data.shapefile.shp.IndexFile
Nov 07, 2013 9:40:05 AM org.geotools.data.shapefile.files.ShpFiles
logCurrentLockers
SEVERE: The following locker still has a lock: read on file.dbf by
org.geotools.data.shapefile.dbf.DbaseFileReader
can the iterator be closed after using it?
thanks,
Jeroen
PS: the geotools site tells me to log a bug in JIRA, but how do I obtain
a login?
--
Jeroen Dries
TAP - Centre for Remote Sensing and Earth Observation Processes
VITO NV | Boeretang 200 | 2400 Mol
tel. +32 14 33 55 11 | [email protected]
[http://www.vito.be/e-maildisclaimer/vito.png]
VITO Disclaimer: http://www.vito.be/e-maildisclaimer
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users