Hi all,

I've been having test failures locally on geoserver trunk for some time, but
since I am not all that active there and no one else seems to be complaining
I didn't bring it up on the list.  Today I finally found some time to
investigate, and actually found two issues. Now I get all tests passing :)

   1. *xerces version conflict* - For most modules in GeoServer is
   identifying xercesImpl 2.6.2 as the correct one to include on the classpath,
   however for org.geoserver:main it is using 2.4.0.  This is causing
   AbstractMethodError's at runtime, as you might expect.  I tried bumping the
   version in geoserver's main pom to 2.6.2 and tests pass, any objections to
   committing it?
   2. *networking in coverage setup* - this one is a little weird... redhat
   based systems like my fedora laptop have a weird glitch where setting a
   custom hostname during the install process doesn't necessarily update the
   /etc/hosts file, then some programs have issues when "myname.localdomain"
   doesn't resolve.  The JVM seems to be one of those programs.  Ok, so I fixed
   my hosts file.  The weird part is that I was running into those errors
   during setup of coveragestores in mock data directories for GeoServer's unit
   tests, should there be networking going on during this operation?  I'm
   attaching a stack trace for one of the failing tests to this mail.

--
David Winslow
OpenGeo - http://opengeo.org/
-------------------------------------------------------------------------------
Test set: org.vfny.geoserver.ProjectionPolicyTest
-------------------------------------------------------------------------------
Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 1.8 sec <<< 
FAILURE!
testForce(org.vfny.geoserver.ProjectionPolicyTest)  Time elapsed: 1.201 sec  
<<< ERROR!
java.lang.UnsupportedOperationException: Trying to get a reader from an unknown 
format.
        at 
org.geotools.coverage.grid.io.UnknownFormat.getReader(UnknownFormat.java:62)
        at org.geoserver.data.test.MockData.coverageInfo(MockData.java:749)
        at org.geoserver.data.test.MockData.addCoverage(MockData.java:599)
        at org.geoserver.data.test.MockData.addWcs10Coverages(MockData.java:477)
        at 
org.vfny.geoserver.ProjectionPolicyTest.populateDataDirectory(ProjectionPolicyTest.java:50)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:36)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:29)
        at 
org.geoserver.test.GeoServerAbstractTestSupport.oneTimeSetUp(GeoServerAbstractTestSupport.java:173)
        at org.geoserver.test.OneTimeSetupTest.setUp(OneTimeSetupTest.java:89)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:597)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testReproject(org.vfny.geoserver.ProjectionPolicyTest)  Time elapsed: 0.15 sec  
<<< ERROR!
java.lang.UnsupportedOperationException: Trying to get a reader from an unknown 
format.
        at 
org.geotools.coverage.grid.io.UnknownFormat.getReader(UnknownFormat.java:62)
        at org.geoserver.data.test.MockData.coverageInfo(MockData.java:749)
        at org.geoserver.data.test.MockData.addCoverage(MockData.java:599)
        at org.geoserver.data.test.MockData.addWcs10Coverages(MockData.java:477)
        at 
org.vfny.geoserver.ProjectionPolicyTest.populateDataDirectory(ProjectionPolicyTest.java:50)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:36)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:29)
        at 
org.geoserver.test.GeoServerAbstractTestSupport.oneTimeSetUp(GeoServerAbstractTestSupport.java:173)
        at org.geoserver.test.OneTimeSetupTest.setUp(OneTimeSetupTest.java:89)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:597)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testLeaveNative(org.vfny.geoserver.ProjectionPolicyTest)  Time elapsed: 0.165 
sec  <<< ERROR!
java.lang.UnsupportedOperationException: Trying to get a reader from an unknown 
format.
        at 
org.geotools.coverage.grid.io.UnknownFormat.getReader(UnknownFormat.java:62)
        at org.geoserver.data.test.MockData.coverageInfo(MockData.java:749)
        at org.geoserver.data.test.MockData.addCoverage(MockData.java:599)
        at org.geoserver.data.test.MockData.addWcs10Coverages(MockData.java:477)
        at 
org.vfny.geoserver.ProjectionPolicyTest.populateDataDirectory(ProjectionPolicyTest.java:50)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:36)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:29)
        at 
org.geoserver.test.GeoServerAbstractTestSupport.oneTimeSetUp(GeoServerAbstractTestSupport.java:173)
        at org.geoserver.test.OneTimeSetupTest.setUp(OneTimeSetupTest.java:89)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:597)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testWithRename(org.vfny.geoserver.ProjectionPolicyTest)  Time elapsed: 0.109 
sec  <<< ERROR!
java.lang.UnsupportedOperationException: Trying to get a reader from an unknown 
format.
        at 
org.geotools.coverage.grid.io.UnknownFormat.getReader(UnknownFormat.java:62)
        at org.geoserver.data.test.MockData.coverageInfo(MockData.java:749)
        at org.geoserver.data.test.MockData.addCoverage(MockData.java:599)
        at org.geoserver.data.test.MockData.addWcs10Coverages(MockData.java:477)
        at 
org.vfny.geoserver.ProjectionPolicyTest.populateDataDirectory(ProjectionPolicyTest.java:50)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:36)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:29)
        at 
org.geoserver.test.GeoServerAbstractTestSupport.oneTimeSetUp(GeoServerAbstractTestSupport.java:173)
        at org.geoserver.test.OneTimeSetupTest.setUp(OneTimeSetupTest.java:89)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:597)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

testForceCoverage(org.vfny.geoserver.ProjectionPolicyTest)  Time elapsed: 0.151 
sec  <<< ERROR!
java.lang.UnsupportedOperationException: Trying to get a reader from an unknown 
format.
        at 
org.geotools.coverage.grid.io.UnknownFormat.getReader(UnknownFormat.java:62)
        at org.geoserver.data.test.MockData.coverageInfo(MockData.java:749)
        at org.geoserver.data.test.MockData.addCoverage(MockData.java:599)
        at org.geoserver.data.test.MockData.addWcs10Coverages(MockData.java:477)
        at 
org.vfny.geoserver.ProjectionPolicyTest.populateDataDirectory(ProjectionPolicyTest.java:50)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:36)
        at 
org.geoserver.test.GeoServerTestSupport.buildTestData(GeoServerTestSupport.java:29)
        at 
org.geoserver.test.GeoServerAbstractTestSupport.oneTimeSetUp(GeoServerAbstractTestSupport.java:173)
        at org.geoserver.test.OneTimeSetupTest.setUp(OneTimeSetupTest.java:89)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:597)
        at 
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        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:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to