gt2-epsg-access.jar in the classpath prevent gt2-epsg-hsql.jar to work
----------------------------------------------------------------------

                 Key: GEOT-1211
                 URL: http://jira.codehaus.org/browse/GEOT-1211
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.4.M0
            Reporter: Martin Desruisseaux
         Assigned To: Martin Desruisseaux
            Priority: Minor
             Fix For: 2.4.0


If {{gt2-epsg-access.jar}} and {{gt2-epsg-hsql.jar}} are both on the classpath, 
then {{FactoryFinder.getCRSAuthorityFactories(...)}} fails to initialize the 
EPSG-HSQL factory. Stack trace below:

{noformat}
org.opengis.referencing.FactoryException: Failed to connect to the EPSG 
database.
        at 
org.geotools.referencing.factory.epsg.DefaultFactory.createBackingStore(DefaultFactory.java:480)
        at 
org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:136)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java
 :218)
        at 
org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:124)
        at 
org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:530)
        at 
org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:389)
        at 
org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:146)
        at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java :793)
        at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:787)
        at 
javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:491)
        at org.geotools.factory.FactoryRegistry.getServiceProviders 
(FactoryRegistry.java:152)
        at 
org.geotools.referencing.FactoryFinder.getFactories(FactoryFinder.java:196)
        at 
org.geotools.referencing.FactoryFinder.getCRSAuthorityFactories(FactoryFinder.java:475)
        at 
org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:60)
        at 
org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:52)
        at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:149)
        at org.geotools.referencing.CRS.decode(CRS.java:343)
        at org.geotools.referencing.CRS.decode(CRS.java:279)
        (...snip...)
Caused by: java.sql.SQLException: [unixODBC][Driver Manager]Data source name 
not found, and no default driver specified
        at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
        at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
        at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
        at 
sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
        at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
        at sun.jdbc.odbc.ee.DataSource.getConnection(DataSource.java :65)
        at 
org.geotools.referencing.factory.epsg.FactoryOnAccess.createBackingStore(FactoryOnAccess.java:86)
        at 
org.geotools.referencing.factory.epsg.DefaultFactory.createBackingStore0(DefaultFactory.java
 :417)
        at 
org.geotools.referencing.factory.epsg.DefaultFactory.createBackingStore(DefaultFactory.java:473)
        ... 71 more
{noformat}

{{gt2-epsg-access} should not block {{gt2-epsg-hsql}, since it is supposed to 
be an {{OptionalFactory}}.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to