Hi,
I'm having a test failure in the H2 module.... the
think is, hudson reports a build success at the same
svn revision I am, and I have no local outstanding changes...
The issue is:
-------------------------------------------------------------------------------
Test set: org.geotools.data.h2.H2DataStoreAPITest
-------------------------------------------------------------------------------
Tests run: 34, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.234
sec <<< FAILURE!
testGetFeaturesWriterAdd(org.geotools.data.h2.H2DataStoreAPITest) Time
elapsed: 0.031 sec <<< ERROR!
java.lang.RuntimeException: org.h2.jdbc.JdbcSQLException: The result set
is not scrollable and can not be reset. You may need to use
conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY). [90128-56]
at
org.geotools.jdbc.JDBCFeatureIteratorSupport.<init>(JDBCFeatureIteratorSupport.java:76)
at
org.geotools.jdbc.JDBCFeatureInserter.<init>(JDBCFeatureInserter.java:69)
at org.geotools.jdbc.JDBCFeatureWriter.next(JDBCFeatureWriter.java:110)
at
org.geotools.data.store.DelegateFeatureWriter.next(DelegateFeatureWriter.java:44)
at
org.geotools.jdbc.JDBCDataStoreAPITest.testGetFeaturesWriterAdd(JDBCDataStoreAPITest.java:541)
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:91)
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: org.h2.jdbc.JdbcSQLException: The result set is not
scrollable and can not be reset. You may need to use
conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY). [90128-56]
at org.h2.message.Message.getSQLException(Message.java:84)
at org.h2.message.Message.getSQLException(Message.java:66)
at org.h2.message.Message.getSQLException(Message.java:105)
at org.h2.jdbc.JdbcResultSet.resetResult(JdbcResultSet.java:2913)
at org.h2.jdbc.JdbcResultSet.beforeFirst(JdbcResultSet.java:2498)
at
org.apache.commons.dbcp.DelegatingResultSet.beforeFirst(DelegatingResultSet.java:320)
at
org.geotools.jdbc.JDBCFeatureIteratorSupport.<init>(JDBCFeatureIteratorSupport.java:74)
... 31 more
Looking into it, I can see a:
rs = st.getResultSet();
rs.beforeFirst();
and this is not usually necessary in JDBC code (when you open a
ResultSet it's already in the before first position). Removing
the second line the test passes and the module builds but... why
am I seeing this and Hudson is not? Maybe slight difference in jdk
(I'm using jdk 1.5.0_09, relatively old one). Or maybe someone
has a voodoo doll of my computer with a handful of needles stuck
in it...
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel