Perhaps I am not paying attention close enough, what is the monitor you are
turning off?
Jody Garnett
On Sun, May 11, 2014 at 9:57 PM, Seragiotto Clovis <
clovis.seragio...@ait.ac.at> wrote:
> Restarting the machine did not solve the problem. What helped me was
> turning off the monitor right after starting the program: the SEVERE
> messages just disappeared (I didn’t check if the IllegalArgumentException
> is still thrown, however).
>
> Running the program under Linux did not solve the problem either, though
> the SEVERE messages changed. Here the output I get when the monitor is on:
>
> SEVERE: The following locker still has a lock: read on
> file:/tmp/maps/Streets.shp by
> org.geotools.data.shapefile.shp.ShapefileReader
> SEVERE: The following locker still has a lock: read on
> file:/tmp/maps/Streets.shx by org.geotools.data.shapefile.shp.IndexFile
> SEVERE: The following locker still has a lock: read on
> filetmp/maps/Streets.dbf by org.geotools.data.shapefile.dbf.DbaseFileReader
> Exception in thread "main" java.lang.IllegalArgumentException: Expected
> requestor org.geotools.data.shapefile.dbf.DbaseFileReader@499fcbfd to
> have locked the url but it does not hold the lock for the URL
> at
> org.geotools.data.shapefile.files.ShpFiles.unlockRead(ShpFiles.java:429)
> at
> org.geotools.data.shapefile.files.FileChannelDecorator.implCloseChannel(FileChannelDecorator.java:149)
> at
> java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)
> at
> org.geotools.data.shapefile.dbf.DbaseFileReader.close(DbaseFileReader.java:286)
> at
> org.geotools.data.shapefile.ShapefileFeatureReader.close(ShapefileFeatureReader.java:251)
> at
> org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.close(ContentFeatureCollection.java:154)
> at SmallerExample.main(SmallerExample.java:9)
>
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users