Failed

org.geotools.data.h2.H2SpatialFiltersTest.testGeometryCollection

Failing for the past 268 builds (Since #5 )
Took 3.5 sec.

Error Message

java.io.IOException

Stacktrace

java.lang.RuntimeException: java.io.IOException
	at org.geotools.data.store.ContentFeatureCollection.size(ContentFeatureCollection.java:259)
	at org.geotools.jdbc.JDBCSpatialFiltersOnlineTest.testGeometryCollection(JDBCSpatialFiltersOnlineTest.java:233)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: java.io.IOException: null
	at org.geotools.jdbc.JDBCDataStore.getAggregateValue(JDBCDataStore.java:1508)
	at org.geotools.jdbc.JDBCDataStore.getCount(JDBCDataStore.java:1432)
	at org.geotools.jdbc.JDBCFeatureSource.getCountInternal(JDBCFeatureSource.java:463)
	at org.geotools.data.store.ContentFeatureSource.getCount(ContentFeatureSource.java:498)
	at org.geotools.jdbc.JDBCFeatureStore.getCountInternal(JDBCFeatureStore.java:184)
	at org.geotools.data.store.ContentFeatureSource.getCount(ContentFeatureSource.java:498)
	at org.geotools.data.store.ContentFeatureCollection.size(ContentFeatureCollection.java:236)
	at org.geotools.jdbc.JDBCSpatialFiltersOnlineTest.testGeometryCollection(JDBCSpatialFiltersOnlineTest.java:233)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: org.h2.jdbc.JdbcSQLException: Function HATBOX_MBR_INTERSECTS_ENV not found; SQL statement:
SELECT count(*) FROM "road" WHERE  ST_Distance("geom", ST_GeomFromText('GEOMETRYCOLLECTION (LINESTRING (30 40, 50 60), LINESTRING (40 30, 70 40))', 4326))<5.1350823507750884E-5 AND "fid" IN (SELECT CAST(HATBOX_JOIN_ID AS INT) FROM HATBOX_MBR_INTERSECTS_ENV('PUBLIC', 'road', 29.999948649176492, 70.00005135082351, 29.999948649176492, 60.000051350823504)) [90022-119]
	at org.h2.message.Message.getSQLException(Message.java:106)
	at org.h2.message.Message.getSQLException(Message.java:117)
	at org.h2.message.Message.getSQLException(Message.java:76)
	at org.h2.command.Parser.readJavaFunction(Parser.java:1921)
	at org.h2.command.Parser.readFunction(Parser.java:1962)
	at org.h2.command.Parser.readTableFilter(Parser.java:972)
	at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1511)
	at org.h2.command.Parser.parseSelectSimple(Parser.java:1608)
	at org.h2.command.Parser.parseSelectSub(Parser.java:1505)
	at org.h2.command.Parser.parseSelectUnion(Parser.java:1350)
	at org.h2.command.Parser.parseSelect(Parser.java:1338)
	at org.h2.command.Parser.readCondition(Parser.java:1727)
	at org.h2.command.Parser.readAnd(Parser.java:1665)
	at org.h2.command.Parser.readExpression(Parser.java:1655)
	at org.h2.command.Parser.parseSelectSimple(Parser.java:1612)
	at org.h2.command.Parser.parseSelectSub(Parser.java:1505)
	at org.h2.command.Parser.parseSelectUnion(Parser.java:1350)
	at org.h2.command.Parser.parseSelect(Parser.java:1338)
	at org.h2.command.Parser.parsePrepared(Parser.java:395)
	at org.h2.command.Parser.parse(Parser.java:291)
	at org.h2.command.Parser.parse(Parser.java:263)
	at org.h2.command.Parser.prepareCommand(Parser.java:235)
	at org.h2.engine.Session.prepareLocal(Session.java:415)
	at org.h2.engine.Session.prepareCommand(Session.java:376)
	at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1049)
	at org.h2.jdbc.JdbcStatement.executeQuery(JdbcStatement.java:70)
	at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
	at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
	at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
	at org.geotools.jdbc.JDBCDataStore.getAggregateValue(JDBCDataStore.java:1483)
	at org.geotools.jdbc.JDBCDataStore.getCount(JDBCDataStore.java:1432)
	at org.geotools.jdbc.JDBCFeatureSource.getCountInternal(JDBCFeatureSource.java:463)
	at org.geotools.data.store.ContentFeatureSource.getCount(ContentFeatureSource.java:498)
	at org.geotools.jdbc.JDBCFeatureStore.getCountInternal(JDBCFeatureStore.java:184)
	at org.geotools.data.store.ContentFeatureSource.getCount(ContentFeatureSource.java:498)
	at org.geotools.data.store.ContentFeatureCollection.size(ContentFeatureCollection.java:236)
	at org.geotools.jdbc.JDBCSpatialFiltersOnlineTest.testGeometryCollection(JDBCSpatialFiltersOnlineTest.java:233)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)