The following locker still has a lock

One Star

The following locker still has a lock

Hello all
I am importing shape file to my application iam getting a message posted below in the console but no error is coming shape file importing correctly.

ug 23, 2013 1:39:16 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on file:/home/snk/land/sss.shp by org.geotools.data.shapefile.shp.ShapefileReader
Aug 23, 2013 1:39:16 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on file:/home/snk/land/sss.shx by org.geotools.data.shapefile.shp.IndexFile
Aug 23, 2013 1:39:16 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on file:/home/snk/land/sss.dbf by org.geotools.data.shapefile.dbf.DbaseFileReader
Aug 23, 2013 1:39:16 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on file:/home/snk/land/sss.shp by org.geotools.data.shapefile.shp.ShapefileReader
Aug 23, 2013 1:39:16 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on file:/home/snk/land/sss.shx by org.geotools.data.shapefile.shp.IndexFile
Aug 23, 2013 1:39:16 PM org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock: read on file:/home/snk/land/sss.dbf by org.geotools.data.shapefile.dbf.DbaseFileReader

i tried to solve it but i have not got the solution on the web . please help me i am pasting the code below
public boolean openShapeFile() throws Exception
{
File dataFile = new File(FileNames);
ShapefileDataStore store = new IndexedShapefileDataStore(dataFile.toURI().toURL());
SimpleFeatureSource source = store.getFeatureSource();
final SimpleFeatureCollection featureCollection = source.getFeatures();
simpleFeatureIterator = featureCollection.features();
return true;
}
here i am iterating through simpleFeatureIterator

thanks and regards.
One Star

Re: The following locker still has a lock

Hi,
Your post does not seem to refer to Talend Spatial.
You should rather post on Geotools mailing lists.
http://geotools.org/getinvolved.html
Cheers,
Mathieu
ps : there is no need to cross-post on this forum...