jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • GeoTools
  • GEOT-1211

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 2.4-M0
  • Fix Version/s: 2.5.9
  • Component/s: referencing
  • Labels:
    None

Description

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:

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

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

Issue Links

depends upon

Task - A task that needs to be done. GEOT-2117 Review GeoToolkit fixes

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Open - The issue is open and ready for the assignee to start work on it.
is related to

Bug - A problem which impairs or prevents the functions of the product. GEOT-1864 CRS.decode("EPSG:4326") cause org.opengis.referencing.FactoryException

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.
relates to

Bug - A problem which impairs or prevents the functions of the product. GEOT-1548 More than one Referning Module is Fatal to New Users

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • History
  • Activity
Hide
Permalink
Martin Desruisseaux added a comment - 05/Apr/07 8:14 AM
Similar problem has been reported with gt2-epsg-postgresql.
Show
Martin Desruisseaux added a comment - 05/Apr/07 8:14 AM Similar problem has been reported with gt2-epsg-postgresql.
Hide
Permalink
Martin Desruisseaux added a comment - 02/May/07 10:24 AM
Need to check if this issue happen again after we removed the DataSource subclassing.
Show
Martin Desruisseaux added a comment - 02/May/07 10:24 AM Need to check if this issue happen again after we removed the DataSource subclassing.
Hide
Permalink
Andrea Aime added a comment - 24/Dec/09 12:43 PM
epsg-access is no more in the geotools codebaes. The problem related to having multiple epsg factories around is still valid but is reported in another issue.
Show
Andrea Aime added a comment - 24/Dec/09 12:43 PM epsg-access is no more in the geotools codebaes. The problem related to having multiple epsg factories around is still valid but is reported in another issue.

People

  • Assignee:
    Martin Desruisseaux
    Reporter:
    Martin Desruisseaux
Vote (0)
Watch (0)

Dates

  • Created:
    28/Mar/07 7:33 AM
    Updated:
    24/Dec/09 12:43 PM
    Resolved:
    24/Dec/09 12:43 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.