Hi all,
I tried building in the branch and the trunk of Geotools but both failed.

java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)


I run "mvn clean install":

...

AVVERTENZA: Could not open the .shx file, continuing assuming the .shp file
is not sparse
java.io.FileNotFoundException:
/Users/francesco/codice/geotools/2.5.x/modules/plugin/shapefile/target/test-classes/org/geotools/data/shapefile/test-data/shapes/stream.shx
        at
org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:821)
        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.ShapefileDataStore.getCount(ShapefileDataStore.java:964)
        at
org.geotools.data.shapefile.ShapefileDataStoreTest.testGetCount(ShapefileDataStoreTest.java:691)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Tests run: 23, Failures: 0, Errors: 9, Skipped: 0, Time elapsed: 0.427 sec
<<< FAILURE!
Running org.geotools.data.shapefile.shp.PolygonHandlerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec
Running
org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreFactoryTest
        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)
29-giu-2009 9.39.58 org.geotools.data.shapefile.ShapefileDataStoreFactory
createNewShapefile
AVVERTENZA: File already exists:
file:/Users/francesco/codice/geotools/2.5.x/modules/plugin/shapefile/target/test-classes/org/geotools/data/shapefile/test-data/shapes/statepop.shp
29-giu-2009 9.39.58 org.geotools.data.shapefile.ShapefileDataStoreFactory
createNewShapefile
AVVERTENZA: File already exists:
file:/Users/francesco/codice/geotools/2.5.x/modules/plugin/shapefile/target/test-classes/org/geotools/data/shapefile/test-data/shapes/statepop.shp
29-giu-2009 9.39.58 org.geotools.data.shapefile.ShapefileDataStoreFactory
createNewShapefile
AVVERTENZA: File already exists:
file:/Users/francesco/codice/geotools/2.5.x/modules/plugin/shapefile/target/test-classes/org/geotools/data/shapefile/test-data/shapes/statepop.shp
29-giu-2009 9.39.58 org.geotools.data.shapefile.ShapefileDataStoreFactory
createNewShapefile
AVVERTENZA: File already exists:
file:/Users/francesco/codice/geotools/2.5.x/modules/plugin/shapefile/target/test-classes/org/geotools/data/shapefile/test-data/shapes/statepop.shp
29-giu-2009 9.39.58 org.geotools.data.shapefile.ShapefileDataStoreFactory
createNewShapefile
AVVERTENZA: File already exists:
file:/Users/francesco/codice/geotools/2.5.x/modules/plugin/shapefile/target/test-classes/org/geotools/data/shapefile/test-data/shapes/statepop.shp
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running org.geotools.index.rtree.fs.FileSystemPageStoreTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running org.geotools.data.shapefile.StorageFileTest
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.012 sec
<<< FAILURE!

Results :

Failed tests:
  testAll(org.geotools.data.shapefile.indexed.ShapefileQuadTreeReadWriteTest)
  testAll(org.geotools.data.shapefile.indexed.ShapefileRTreeReadWriteTest)

Tests in error:
  
testWriteTwice(org.geotools.data.shapefile.indexed.ShapefileQuadTreeReadWriteTest)
  testWriteNulls(org.geotools.data.shapefile.ShapefileNullHandlingTest)
  testReadWriteStatePop(org.geotools.data.shapefile.ShapefileReadWriteTest)
  testReadWritePolygonTest(org.geotools.data.shapefile.ShapefileReadWriteTest)
  testReadWritePointTest(org.geotools.data.shapefile.ShapefileReadWriteTest)
  testReadWriteHoleTouchEdge(org.geotools.data.shapefile.ShapefileReadWriteTest)
  testReadWriteChinese(org.geotools.data.shapefile.ShapefileReadWriteTest)
  testReadDanishPoint(org.geotools.data.shapefile.ShapefileReadWriteTest)
  testConcurrentReadWrite(org.geotools.data.shapefile.ShapefileReadWriteTest)
  
testUpdating(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testRemoveFromFrontAndClose(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testRemoveFromFrontAndCloseTransaction(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testRemoveFromBackAndClose(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testTestTransaction(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testAttributesWriting(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testGeometriesWriting(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testWipesOutInvalidFidsFromFilters(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testCountTransaction(org.geotools.data.shapefile.indexed.IndexedShapefileDataStoreTest)
  
testWriteTwice(org.geotools.data.shapefile.indexed.ShapefileRTreeReadWriteTest)
  testEmptyFields(org.geotools.data.shapefile.DbaseFileTest)
  testHolyPolygons(org.geotools.data.shapefile.indexed.ShapefileTest)
  testCaseFile(org.geotools.data.shapefile.ShpFilesTest)
  testShapefileFilesAll(org.geotools.data.shapefile.ShpFilesTest)
  testURLStringConstructor(org.geotools.data.shapefile.ShpFilesTest)
  testFileStringConstructor(org.geotools.data.shapefile.ShpFilesTest)
  testShapefileFilesSome(org.geotools.data.shapefile.ShpFilesTest)
  testFileURLs(org.geotools.data.shapefile.ShpFilesTest)
  testHolyPolygons(org.geotools.data.shapefile.ShapefileTest)
  testWrite(org.geotools.data.shapefile.ShapefileDataStoreTest)
  testUpdating(org.geotools.data.shapefile.ShapefileDataStoreTest)
  
testRemoveFromFrontAndClose(org.geotools.data.shapefile.ShapefileDataStoreTest)
  
testRemoveFromFrontAndCloseTransaction(org.geotools.data.shapefile.ShapefileDataStoreTest)
  testRemoveFromBackAndClose(org.geotools.data.shapefile.ShapefileDataStoreTest)
  testAttributesWriting(org.geotools.data.shapefile.ShapefileDataStoreTest)
  testGeometriesWriting(org.geotools.data.shapefile.ShapefileDataStoreTest)
  
testWriteShapefileWithNoRecords(org.geotools.data.shapefile.ShapefileDataStoreTest)
  testWriteReadBigNumbers(org.geotools.data.shapefile.ShapefileDataStoreTest)
  testReplaceOriginal(org.geotools.data.shapefile.StorageFileTest)
  testReplaceOriginals(org.geotools.data.shapefile.StorageFileTest)
  testReplaceOriginalsEmptyArgs(org.geotools.data.shapefile.StorageFileTest)


something wrong?

Thanks,


-- 
Francesco Izzi
CNR - IMAA
geoSDI - NSDI
Responsabile Sviluppo Software

C.da S. Loja
85050  Tito Scalo - POTENZA (PZ)
Italia

phone: +39 0971427305
fax:      +39 0971 427271
mob:    +39 3402640314
mail:     francesco.i...@nsdi.it
skype:  neofx8080

web:     http://www.geosdi.org
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to