Hi, I'm trying to build gt2 2.4.x and I'm getting the following errors: ------------------------------------------------------------------------------- Test set: org.geotools.gce.arcgrid.ArcGridReadWriteTest ------------------------------------------------------------------------------- Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.859 sec <<< FAILURE! testErrorConditions(org.geotools.gce.arcgrid.ArcGridReadWriteTest) Time elapsed: 2.813 sec <<< ERROR! java.lang.NoClassDefFoundError: java/lang/StringBuilder at it.geosolutions.imageio.plugins.arcgrid.raster.AsciiGridRaster.getKey(AsciiGridRaster.java:1107) at it.geosolutions.imageio.plugins.arcgrid.raster.EsriAsciiGridRaster.parseHeader(EsriAsciiGridRaster.java:151) at it.geosolutions.imageio.plugins.arcgrid.spi.AsciiGridsImageReaderSpi.canDecodeInput(AsciiGridsImageReaderSpi.java:219) at org.geotools.gce.arcgrid.ArcGridFormat.accepts(ArcGridFormat.java:142) at org.geotools.gce.arcgrid.ArcGridBaseTestCase$1.accept(ArcGridBaseTestCase.java:73) at java.io.File.listFiles(File.java:1076) at org.geotools.gce.arcgrid.ArcGridBaseTestCase.setUp(ArcGridBaseTestCase.java:69) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) 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:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
testAll(org.geotools.gce.arcgrid.ArcGridReadWriteTest) Time elapsed: 0 sec <<< ERROR! java.lang.NoClassDefFoundError: java/lang/StringBuilder at it.geosolutions.imageio.plugins.arcgrid.raster.AsciiGridRaster.getKey(AsciiGridRaster.java:1107) at it.geosolutions.imageio.plugins.arcgrid.raster.EsriAsciiGridRaster.parseHeader(EsriAsciiGridRaster.java:151) at it.geosolutions.imageio.plugins.arcgrid.spi.AsciiGridsImageReaderSpi.canDecodeInput(AsciiGridsImageReaderSpi.java:219) at org.geotools.gce.arcgrid.ArcGridFormat.accepts(ArcGridFormat.java:142) at org.geotools.gce.arcgrid.ArcGridBaseTestCase$1.accept(ArcGridBaseTestCase.java:73) at java.io.File.listFiles(File.java:1076) at org.geotools.gce.arcgrid.ArcGridBaseTestCase.setUp(ArcGridBaseTestCase.java:69) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) 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:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) at org.apache.maven.surefire.Surefire.run(Surefire.java:129) 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:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) Now, this happens because one of the imageio-ext classes is using the java5 StringBuilder. Yet, I'm wondering why the build server is not seeing this. A few hyphotesis: * the imageio-ext deployed is older than the one I have on my disk? * the build server is running the tests using a java5 vm? Ah, another thing. The dependency towards imageio-ext says: <dependency> <groupId>it.geosolutions.imageio-ext</groupId> <artifactId>imageio-ext-arcgrid</artifactId> <version>1.0-SNAPSHOT</version> </dependency> Hum... SNAPSHOT... since 2.4.x is a stable series wouldn't it be better to have it work against a released version of some kind instead of targetting a moving object? Cheers Andrea ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel