Hi,
since the last update of the spatialite drivers the build has been failing
on Travis with
this failing test:

Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.217
sec <<< FAILURE! - in
org.geotools.data.spatialite.SpatiaLiteDataStoreFactoryTest
testCreateDataStore(org.geotools.data.spatialite.SpatiaLiteDataStoreFactoryTest)
 Time elapsed: 0.21 sec  <<< ERROR!
java.io.IOException: null
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at 
org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)
        at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
        at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
        at 
org.geotools.data.spatialite.SpatiaLiteDataStoreFactory.initializeDataSource(SpatiaLiteDataStoreFactory.java:170)
        at 
org.geotools.data.spatialite.SpatiaLiteDataStoreFactory.createDataSource(SpatiaLiteDataStoreFactory.java:149)
        at 
org.geotools.jdbc.JDBCDataStoreFactory.createDataSource(JDBCDataStoreFactory.java:388)
        at 
org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:176)
        at 
org.geotools.data.spatialite.SpatiaLiteDataStoreFactoryTest.testCreateDataStore(SpatiaLiteDataStoreFactoryTest.java:51)


The test is indeed failing with Java 7, in the stack trace I get from
Eclipse I see:
java.io.IOException
at
org.geotools.data.spatialite.SpatiaLiteDataStoreFactory.initializeDataSource(SpatiaLiteDataStoreFactory.java:174)
at
org.geotools.data.spatialite.SpatiaLiteDataStoreFactory.createDataSource(SpatiaLiteDataStoreFactory.java:149)
at
org.geotools.jdbc.JDBCDataStoreFactory.createDataSource(JDBCDataStoreFactory.java:388)
at
org.geotools.jdbc.JDBCDataStoreFactory.createDataStore(JDBCDataStoreFactory.java:176)
at
org.geotools.data.spatialite.SpatiaLiteDataStoreFactoryTest.testCreateDataStore(SpatiaLiteDataStoreFactoryTest.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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 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.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC
driver class 'org.sqlite.JDBC'
at
org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at
org.geotools.data.spatialite.SpatiaLiteDataStoreFactory.initializeDataSource(SpatiaLiteDataStoreFactory.java:170)
... 23 more
Caused by: java.lang.ClassNotFoundException: org.sqlite.JDBC
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at
org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)
... 26 more

Any idea why the class would not initialize under Java 7?

Cheers
Andrea

-- 
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to