Hi Everyone,
I am trying to perform a build on trunk using mvn -Dall clean install. It is
failing on the H2 DataStore.
There are two tests: testFeatureSource(org.geotools.data.h2.H2EmptyTest) and
testFeatureCollection(org.geotools.data.h2.H2EmptyTest) that are failing.
The stack trace (see below) for the :
testFeatureSource(org.geotools.data.h2.H2EmptyTest) test indicates that it is
an Online Test Case. A similar stacktrace exists for
testFeatureCollection(org.geotools.data.h2.H2EmptyTest).
Reading the developers guidelines online it indicates that online test are
disabled by default and should not run. Have I read the online document wrong?
The stacktrace seems to indicate otherwise.
Something may have changed recently on the trunk. If so, what has changed and
how can I build from trunk without performing online tests?
Thanks for your help,
Brett Walker
java.lang.RuntimeException: java.io.IOException: Error occurred calculating
bounds
at
org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:508)
at
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:426)
at
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:363)
at
org.geotools.jdbc.JDBCEmptyTest.testFeatureSource(JDBCEmptyTest.java:56)
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 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 org.geotools.test.OnlineTestCase.run(OnlineTestCase.java:123)
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:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.io.IOException: Error occurred calculating bounds
at
org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1173)
at
org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:501)
... 29 more
Caused by: org.h2.jdbc.JdbcSQLException: Column geom_point not found; SQL
statement:
SELECT
ST_Envelope("geom_point"),ST_Envelope("geom_point"),ST_Envelope("geom_point"),ST_Envelope("geom_point"),ST_Envelope("geom_point"),ST_Envelope("geom_point")
FROM "empty" [42122-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.expression.ExpressionColumn.optimize(ExpressionColumn.java:128)
at org.h2.expression.JavaFunction.optimize(JavaFunction.java:54)
at org.h2.command.dml.Select.prepare(Select.java:716)
at org.h2.command.Parser.prepareCommand(Parser.java:236)
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.getBounds(JDBCDataStore.java:1149)
... 30 more
Brett Walker <[email protected]<mailto:[email protected]>>
Software Developer / Analyst
Geometry Pty Ltd
Telephone 03 6223 1999
Mobile 0458 498 386
Fax 03 6223 1988
Web www.geometryit.com<http://www.geometryit.com/>
Address 31 Salamanca Square, Battery Point, TAS 7004,
Australia
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel