Build failure in ImageMosaicReaderTest
--------------------------------------
Key: GEOT-2569
URL: http://jira.codehaus.org/browse/GEOT-2569
Project: GeoTools
Issue Type: Bug
Components: data shapefile
Affects Versions: 2.6-M2
Environment: Maven version: 2.0.10
Java version: 1.5.0_17
OS name: "linux" version: "2.6.26-2-686" arch: "i386" Family: "unix"
Reporter: Ben Caradoc-Davies
Assignee: Andrea Aime
Priority: Blocker
There is a unit test failure in imagemosaic ImageMosaicReaderTest since
shapefile was changed. The test only fails on our continuous integration box.
Looks like some sort of locking problem. Race condition? Ideas?
Build succeeds on Hudson.
Build succeeds on my desktop:
Maven version: 2.0.10
Java version: 1.5.0_18
OS name: "linux" version: "2.6.27.24-170.2.68.fc10.x86_64" arch: "amd64"
Family: "unix"
Build fails on:
Maven version: 2.0.10
Java version: 1.5.0_17
OS name: "linux" version: "2.6.26-2-686" arch: "i386" Family: "unix"
The build has been failing consistently since this commit:
{code}
1.
Changed by: aaime
Changed at: Wed 24 Jun 2009 02:12:39
Revision: 33361
Changed files:
* modules/plugin/shapefile
*
modules/plugin/shapefile/src/main/java/org/geotools/data/shapefile/ShapefileDataStoreFactory.java
*
modules/plugin/shapefile/src/test/java/org/geotools/data/shapefile/indexed/IndexedShapefileDataStoreFactoryTest.java
*
modules/plugin/shapefile/src/test/java/org/geotools/data/shapefile/indexed/ShapefileQuadTreeReadWriteTest.java
Comments:
Breaking static interaction between tests (shapefile store being reused
since one VM runs all the tests)
{code}
{code}
-------------------------------------------------------------------------------
Test set: org.geotools.gce.imagemosaic.ImageMosaicReaderTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.846 sec <<<
FAILURE!
testErrors(org.geotools.gce.imagemosaic.ImageMosaicReaderTest) Time elapsed:
0.03 sec
<<< FAILURE!
junit.framework.AssertionFailedError: null
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.gce.imagemosaic.ImageMosaicReaderTest.testErrors(ImageMosaicReaderTest.java:398)
[...]
{code}
{code}
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.geotools.gce.imagemosaic.ImageMosaicReaderTest
Error: Could not find mediaLib accelerator wrapper classes. Continuing in pure
Java mode.
Occurs in: com.sun.media.jai.mlib.MediaLibAccessor
java.lang.NoClassDefFoundError: com/sun/medialib/mlib/Image
at
com.sun.media.jai.mlib.MediaLibAccessor$1.run(MediaLibAccessor.java:248)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.media.jai.mlib.MediaLibAccessor.setUseMlib(MediaLibAccessor.java:245)
at
com.sun.media.jai.mlib.MediaLibAccessor.useMlib(MediaLibAccessor.java:177)
at
com.sun.media.jai.mlib.MediaLibAccessor.isMediaLibCompatible(MediaLibAccessor.java:357)
at
com.sun.media.jai.mlib.MediaLibAccessor.isMediaLibCompatible(MediaLibAccessor.java:315)
at
com.sun.media.jai.mlib.MlibTranslateRIF.create(MlibTranslateRIF.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getMinX(RenderedOp.java:2161)
at javax.media.jai.PlanarImage.getBounds(PlanarImage.java:702)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.addToMosaic(ImageMosaicReader.java:1690)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.loadRequestedTiles(ImageMosaicReader.java:1126)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.loadTiles(ImageMosaicReader.java:728)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader.java:567)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testCoverage(ImageMosaicReaderTest.java:494)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.imageMosaicSimpleParamsTest(ImageMosaicReaderTest.java:469)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testDefaultParameterValue(ImageMosaicReaderTest.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
24/06/2009 02:32:12 org.geotools.gce.imagemosaic.ImageMosaicReader
loadRequestedTiles
INFO: Unable to read image for file
/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/global_mosaic_24.png
24/06/2009 02:32:13 org.geotools.gce.imagemosaic.ImageMosaicReader
loadRequestedTiles
INFO: Unable to read image for file
/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/global_mosaic_24.png
24/06/2009 02:32:14 org.geotools.gce.imagemosaic.ImageMosaicReader
loadRequestedTiles
INFO: Unable to read image for file
/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/global_mosaic_24.png
24/06/2009 02:32:14 org.geotools.gce.imagemosaic.ImageMosaicReader
loadRequestedTiles
INFO: Unable to read image for file
/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/global_mosaic_24.png
24/06/2009 02:32:15 org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock? read on
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.dbf
by org.geotools.data.shapefile.dbf.IndexedDbaseFileReader
it was created with the following stack trace
org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.dbf
for read by org.geotools.data.shapefile.dbf.IndexedDbaseFileReader in thread
main
at
org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:54)
at
org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:33)
at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365)
at
org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:813)
at
org.geotools.data.shapefile.dbf.DbaseFileReader.<init>(DbaseFileReader.java:130)
at
org.geotools.data.shapefile.dbf.IndexedDbaseFileReader.<init>(IndexedDbaseFileReader.java:121)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.openDbfReader(IndexedShapefileDataStore.java:651)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getAttributesReader(IndexedShapefileDataStore.java:422)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:326)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:385)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229)
at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199)
at
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188)
at
org.geotools.gce.imagemosaic.MemorySpatialIndex.<init>(MemorySpatialIndex.java:74)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.createIndex(ImageMosaicReader.java:1369)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:359)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:291)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testErrors(ImageMosaicReaderTest.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
24/06/2009 02:32:15 org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock? read on
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.shp
by org.geotools.data.shapefile.shp.ShapefileReader
it was created with the following stack trace
org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.shp
for read by org.geotools.data.shapefile.shp.ShapefileReader in thread main
at
org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:54)
at
org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:33)
at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365)
at
org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:813)
at
org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:157)
at
org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(ShapefileDataStore.java:425)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getAttributesReader(IndexedShapefileDataStore.java:425)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:326)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:385)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229)
at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199)
at
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188)
at
org.geotools.gce.imagemosaic.MemorySpatialIndex.<init>(MemorySpatialIndex.java:74)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.createIndex(ImageMosaicReader.java:1369)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:359)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:291)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testErrors(ImageMosaicReaderTest.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
24/06/2009 02:32:15 org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock? read on
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.shx
by org.geotools.data.shapefile.shp.IndexFile
it was created with the following stack trace
org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.shx
for read by org.geotools.data.shapefile.shp.IndexFile in thread main
at
org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:54)
at
org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:33)
at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365)
at
org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:813)
at org.geotools.data.shapefile.shp.IndexFile.<init>(IndexFile.java:78)
at
org.geotools.data.shapefile.shp.ShapefileReader.<init>(ShapefileReader.java:162)
at
org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(ShapefileDataStore.java:425)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getAttributesReader(IndexedShapefileDataStore.java:425)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:326)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:385)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229)
at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199)
at
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188)
at
org.geotools.gce.imagemosaic.MemorySpatialIndex.<init>(MemorySpatialIndex.java:74)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.createIndex(ImageMosaicReader.java:1369)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:359)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:291)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testErrors(ImageMosaicReaderTest.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
24/06/2009 02:32:15 org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock? read on
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.fix
by org.geotools.data.shapefile.indexed.IndexedShapefileDataStore: mosaic
it was created with the following stack trace
org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.fix
for read by org.geotools.data.shapefile.indexed.IndexedShapefileDataStore:
mosaic in thread main
at
org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:54)
at
org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:33)
at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.needsGeneration(IndexedShapefileDataStore.java:531)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.indexUseable(IndexedShapefileDataStore.java:501)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.java:338)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:326)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:385)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229)
at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199)
at
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188)
at
org.geotools.gce.imagemosaic.MemorySpatialIndex.<init>(MemorySpatialIndex.java:74)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.createIndex(ImageMosaicReader.java:1369)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:359)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:291)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testErrors(ImageMosaicReaderTest.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
24/06/2009 02:32:15 org.geotools.data.shapefile.ShpFiles logCurrentLockers
SEVERE: The following locker still has a lock? read on
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.shp
by org.geotools.data.shapefile.indexed.IndexedShapefileDataStore: mosaic
it was created with the following stack trace
org.geotools.data.shapefile.ShpFilesLocker$Trace: Locking
file:/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/test-classes/org/geotools/gce/imagemosaic/test-data/rgb/mosaic.shp
for read by org.geotools.data.shapefile.indexed.IndexedShapefileDataStore:
mosaic in thread main
at
org.geotools.data.shapefile.ShpFilesLocker.setTraceException(ShpFilesLocker.java:54)
at
org.geotools.data.shapefile.ShpFilesLocker.<init>(ShpFilesLocker.java:33)
at org.geotools.data.shapefile.ShpFiles.acquireRead(ShpFiles.java:365)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.needsGeneration(IndexedShapefileDataStore.java:532)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.indexUseable(IndexedShapefileDataStore.java:501)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.createFeatureReader(IndexedShapefileDataStore.java:338)
at
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore.getFeatureReader(IndexedShapefileDataStore.java:326)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:385)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:210)
at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:229)
at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:199)
at
org.geotools.data.store.DataFeatureCollection.features(DataFeatureCollection.java:188)
at
org.geotools.gce.imagemosaic.MemorySpatialIndex.<init>(MemorySpatialIndex.java:74)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.createIndex(ImageMosaicReader.java:1369)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:359)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:291)
at
org.geotools.gce.imagemosaic.ImageMosaicReaderTest.testErrors(ImageMosaicReaderTest.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
24/06/2009 02:32:15 org.geotools.gce.imagemosaic.ImageMosaicReader
loadRequestedTiles
INFO: Unable to read image for file
/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/global_mosaic_24.png
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.595 sec <<<
FAILURE!
Running org.geotools.gce.imagemosaic.ImageMosaicServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Results :
Failed tests:
testErrors(org.geotools.gce.imagemosaic.ImageMosaicReaderTest)
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to
/home/buildbot/GeoServerTrunkSlave/build/geotools-trunk/modules/plugin/imagemosaic/target/surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 47 seconds
[INFO] Finished at: Wed Jun 24 02:32:15 WST 2009
[INFO] Final Memory: 43M/63M
[INFO] ------------------------------------------------------------------------
{code}
--
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
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel