org.opengis.referencing.FactoryException

Failed to connect to the EPSG database.


Solutions on the web9

Solution icon of stackoverflow
Failed to connect to the EPSG database.

Solution icon of web
Failed to connect to the EPSG database.

Solution icon of stackexchange-gis
via Geographic Information Systems by Dariush
, 11 months ago
Failed to connect to the EPSG database.

Solution icon of stackexchange-gis
via Geographic Information Systems by Selphiron
, 11 months ago
Failed to connect to the EPSG database.

Solution icon of stackexchange-gis
via Geographic Information Systems by user82538
, 6 months ago
Failed to connect to the EPSG database.

Solution icon of web
Failed to connect to the EPSG database.

Solution icon of web
via faqssys.info by Unknown author, 1 year ago
Failed to connect to the EPSG database.

Solution icon of web
Failed to connect to the EPSG database.

Solution icon of stackoverflow
Database failure while creating a 'CoordinateReferenceSystem' object for code "EPSG:4326".

Stack trace

  • org.opengis.referencing.FactoryException: Failed to connect to the EPSG database. at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:441) at org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:133) at org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:235) at org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119) at org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:667) at org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:501) at org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:192) at javax.imageio.spi.FilterIterator.advance(ServiceRegistry.java:821) at javax.imageio.spi.FilterIterator.<init>(ServiceRegistry.java:815) at javax.imageio.spi.ServiceRegistry.getServiceProviders(ServiceRegistry.java:516) at org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:197) at org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:180) at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:455) at org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:102) at org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69) at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:257) at org.opentripplanner.common.geometry.GeometryUtils.<clinit>(GeometryUtils.java:41) at org.opentripplanner.graph_builder.module.osm.OpenStreetMapModule$Handler.buildBasicGraph(OpenStreetMapModule.java:615) at org.opentripplanner.graph_builder.module.osm.OpenStreetMapModule$Handler.buildGraph(OpenStreetMapModule.java:238) at org.opentripplanner.graph_builder.module.osm.OpenStreetMapModule.buildGraph(OpenStreetMapModule.java:172) at org.opentripplanner.graph_builder.GraphBuilder.run(GraphBuilder.java:157) at org.opentripplanner.standalone.OTPMain.run(OTPMain.java:111) at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:86) Caused by: java.sql.SQLException: Can't read file "EPSG.zip". at org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory.createBackingStore(ThreadedHsqlEpsgFactory.java:313) at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore0(ThreadedEpsgFactory.java:397) at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.createBackingStore(ThreadedEpsgFactory.java:434) ... 22 more Caused by: java.io.FileNotFoundException: /tmp/Geotools/Databases/HSQL/v7.9.0/EPSG_creation_lock.txt (No such file or directory) at java.io.RandomAccessFile.open0(Native Method) at java.io.RandomAccessFile.open(RandomAccessFile.java:316) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243) at org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory.acquireLock(ThreadedHsqlEpsgFactory.java:343) at org.geotools.referencing.factory.epsg.ThreadedHsqlEpsgFactory.createBackingStore(ThreadedHsqlEpsgFactory.java:280) ... 24 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 2 months ago
4 times, 4 months ago
3 times, 6 months ago
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
33 more bugmates