Hi,
I'm facing quite a few failures in the h2 module...
I tried doing a mvn -U clean install but that did not help,
I'm still getting 1 failure and 6 errors.

It seems there are some custom functions that aren't getting registered
properly in h2, or something like that.
I've attached the relevant surefire reports.

Cheers
Andrea
-------------------------------------------------------------------------------
Test set: org.geotools.data.h2.H2FeatureSourceTest
-------------------------------------------------------------------------------
Tests run: 9, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 2.296 sec <<< 
FAILURE!
testBounds(org.geotools.data.h2.H2FeatureSourceTest)  Time elapsed: 0.093 sec  
<<< ERROR!
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:384)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:273)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:245)
        at 
org.geotools.jdbc.JDBCFeatureSourceTest.testBounds(JDBCFeatureSourceTest.java:57)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.IOException: Error occured calculating bounds
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:788)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:381)
        ... 30 more
Caused by: org.h2.jdbc.JdbcSQLException: Function ENVELOPE not found; SQL 
statement: SELECT envelope("geometry") FROM "geotools"."ft1" WHERE TRUE 
[90022-40]
        at org.h2.message.Message.addSQL(Message.java:349)
        at org.h2.command.Parser.parse(Parser.java:224)
        at org.h2.command.Parser.prepareCommand(Parser.java:189)
        at org.h2.engine.Session.prepareLocal(Session.java:173)
        at org.h2.engine.Session.prepareCommand(Session.java:155)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:997)
        at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:61)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:759)
        ... 31 more

testSchema(org.geotools.data.h2.H2FeatureSourceTest)  Time elapsed: 1.125 sec  
<<< FAILURE!
junit.framework.AssertionFailedError: expected:<GEOGCS["WGS 84", 
  DATUM["World Geodetic System 1984", 
    SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], 
    AUTHORITY["EPSG","6326"]], 
  PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], 
  UNIT["degree", 0.017453292519943295], 
  AXIS["Geodetic latitude", NORTH], 
  AXIS["Geodetic longitude", EAST], 
  AUTHORITY["EPSG","4326"]]> but was:<null>
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.failNotEquals(Assert.java:282)
        at junit.framework.Assert.assertEquals(Assert.java:64)
        at junit.framework.Assert.assertEquals(Assert.java:71)
        at 
org.geotools.jdbc.JDBCFeatureSourceTest.testSchema(JDBCFeatureSourceTest.java:47)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)

testBoundsWithQuery(org.geotools.data.h2.H2FeatureSourceTest)  Time elapsed: 
0.047 sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:384)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:273)
        at 
org.geotools.jdbc.JDBCFeatureSourceTest.testBoundsWithQuery(JDBCFeatureSourceTest.java:73)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.IOException: Error occured calculating bounds
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:788)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:381)
        ... 29 more
Caused by: org.h2.jdbc.JdbcSQLException: Function ENVELOPE not found; SQL 
statement: SELECT envelope("geometry") FROM "geotools"."ft1" WHERE 
"stringProperty" = 'one' [90022-40]
        at org.h2.message.Message.addSQL(Message.java:349)
        at org.h2.command.Parser.parse(Parser.java:224)
        at org.h2.command.Parser.prepareCommand(Parser.java:189)
        at org.h2.engine.Session.prepareLocal(Session.java:173)
        at org.h2.engine.Session.prepareCommand(Session.java:155)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:997)
        at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:61)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:759)
        ... 30 more

-------------------------------------------------------------------------------
Test set: org.geotools.data.h2.H2DataStoreAPITest
-------------------------------------------------------------------------------
Tests run: 34, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.562 sec <<< 
FAILURE!
testGetFeatureSourceRoad(org.geotools.data.h2.H2DataStoreAPITest)  Time 
elapsed: 0.047 sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:384)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:273)
        at 
org.geotools.jdbc.JDBCDataStoreAPITest.testGetFeatureSourceRoad(JDBCDataStoreAPITest.java:847)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.IOException: Error occured calculating bounds
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:788)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:381)
        ... 29 more
Caused by: org.h2.jdbc.JdbcSQLException: Function ENVELOPE not found; SQL 
statement: SELECT envelope("geom") FROM "road" WHERE TRUE [90022-40]
        at org.h2.message.Message.addSQL(Message.java:349)
        at org.h2.command.Parser.parse(Parser.java:224)
        at org.h2.command.Parser.prepareCommand(Parser.java:189)
        at org.h2.engine.Session.prepareLocal(Session.java:173)
        at org.h2.engine.Session.prepareCommand(Session.java:155)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:997)
        at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:61)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:759)
        ... 30 more

testGetFeatureSourceRiver(org.geotools.data.h2.H2DataStoreAPITest)  Time 
elapsed: 0.109 sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:384)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:273)
        at 
org.geotools.data.store.ContentFeatureCollection.getBounds(ContentFeatureCollection.java:267)
        at 
org.geotools.jdbc.JDBCDataStoreAPITest.testGetFeatureSourceRiver(JDBCDataStoreAPITest.java:905)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.IOException: Error occured calculating bounds
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:788)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:381)
        ... 30 more
Caused by: org.h2.jdbc.JdbcSQLException: Function ENVELOPE not found; SQL 
statement: SELECT envelope("geom") FROM "river" WHERE TRUE [90022-40]
        at org.h2.message.Message.addSQL(Message.java:349)
        at org.h2.command.Parser.parse(Parser.java:224)
        at org.h2.command.Parser.prepareCommand(Parser.java:189)
        at org.h2.engine.Session.prepareLocal(Session.java:173)
        at org.h2.engine.Session.prepareCommand(Session.java:155)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:997)
        at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:61)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:759)
        ... 31 more

-------------------------------------------------------------------------------
Test set: org.geotools.data.h2.H2FeatureCollectionTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.141 sec <<< 
FAILURE!
testBounds(org.geotools.data.h2.H2FeatureCollectionTest)  Time elapsed: 0.016 
sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:384)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:273)
        at 
org.geotools.data.store.ContentFeatureCollection.getBounds(ContentFeatureCollection.java:267)
        at 
org.geotools.jdbc.JDBCFeatureCollectionTest.testBounds(JDBCFeatureCollectionTest.java:73)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.IOException: Error occured calculating bounds
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:788)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:381)
        ... 30 more
Caused by: org.h2.jdbc.JdbcSQLException: Function ENVELOPE not found; SQL 
statement: SELECT envelope("geometry") FROM "geotools"."ft1" WHERE TRUE 
[90022-40]
        at org.h2.message.Message.addSQL(Message.java:349)
        at org.h2.command.Parser.parse(Parser.java:224)
        at org.h2.command.Parser.prepareCommand(Parser.java:189)
        at org.h2.engine.Session.prepareLocal(Session.java:173)
        at org.h2.engine.Session.prepareCommand(Session.java:155)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:997)
        at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:61)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:759)
        ... 31 more

testSubCollection(org.geotools.data.h2.H2FeatureCollectionTest)  Time elapsed: 
0.016 sec  <<< ERROR!
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:384)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:273)
        at 
org.geotools.data.store.ContentFeatureCollection.getBounds(ContentFeatureCollection.java:267)
        at 
org.geotools.jdbc.JDBCFeatureCollectionTest.testSubCollection(JDBCFeatureCollectionTest.java:94)
        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:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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 org.geotools.jdbc.JDBCTestSupport.run(JDBCTestSupport.java:92)
        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:585)
        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:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.IOException: Error occured calculating bounds
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:788)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:381)
        ... 30 more
Caused by: org.h2.jdbc.JdbcSQLException: Function ENVELOPE not found; SQL 
statement: SELECT envelope("geometry") FROM "geotools"."ft1" WHERE 
"intProperty" = 1 [90022-40]
        at org.h2.message.Message.addSQL(Message.java:349)
        at org.h2.command.Parser.parse(Parser.java:224)
        at org.h2.command.Parser.prepareCommand(Parser.java:189)
        at org.h2.engine.Session.prepareLocal(Session.java:173)
        at org.h2.engine.Session.prepareCommand(Session.java:155)
        at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:997)
        at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:61)
        at 
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:759)
        ... 31 more

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to