The shapefile read/write support is known to deadlock on 2.4.0, a 
rewrite has been made for trunk (ie GeoTools 2.5) and we are waiting on 
community review and feedback.

Looking at the test it makes use of wait(500) a fair bit - trying to 
sleep for a set amount of time and verify that the lock has indeed been 
released. Since the actual functionality of wait is a bit random on 
different operating systems we have taken to making a loop and checking 
that the system clock did in fact change (wait is only a request often 
it can return before the system clock has managed to tick over; darn 
computers getting faster and breaking my tests!)

Cheers,
Jody

> Hello all,
>
> I am new to this list and to geotools.  In attempting to build the
> 2.4.0 sources (downloaded yesterday) on Mac OSX I receive the
> following test failure:
>
> Running org.geotools.data.shapefile.LockTest
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.014
> sec <<< FAILURE!
>
> org.geotools.data.shapefile.LockTest.txt:
> -------------------------------------------------------------------------------
> Test set: org.geotools.data.shapefile.LockTest
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.015
> sec <<< FAILURE!
> testLockRead(org.geotools.data.shapefile.LockTest)  Time elapsed:
> 1.006 sec  <<< FAILURE!
> junit.framework.AssertionFailedError
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.assertTrue(Assert.java:20)
>         at junit.framework.Assert.assertTrue(Assert.java:27)
>         at 
> org.geotools.data.shapefile.LockTest.testLockRead(LockTest.java:178)
>
> I'm assuming this is happening to others (?).  Any suggestions much 
> appreciated.
>
> cheers
> Michael
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to