java.sql.SQLException: URI has an authority component Error Code: 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via ha-jdbc by smithh032772
, 1 year ago
URI has an authority component Error Code: 0
via sourceforge.net by Unknown author, 2 years ago
via sourceforge.net by Unknown author, 1 year ago
via GitHub by mspiffy
, 9 months ago
Failed to start database 'D:/www/dslforge/workspace/.metadata' with class loader org.eclipse.osgi.internal.loader.EquinoxClassLoader@3ba49634[org.dslforge.workspace.jpa:0.9.1.201701312145(id=82)], see the next exception for details. Error Code: 40000
via Stack Overflow by sthor69
, 2 years ago
Error in allocating a connection. Cause: Connection could not be allocated because: Required Derby DataSource property databaseName not set. Error Code: 0
via candoerz.com by Unknown author, 1 year ago
Error in allocating a connection. Cause: Connection could not be allocated because: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Server key". ClientConnectionId:a3f21831-fbc0-491c-9691-2b28500d7d2b Error Code: 0
java.sql.SQLException: URI has an authority component Error Code: 0
at java.io.File.(Unknown Source)
at net.sf.hajdbc.xml.FileXMLStreamFactory.(FileXMLStreamFactory.java:50)
at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.(XMLDatabaseClusterConfigurationFactory.java:120)
at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.(XMLDatabaseClusterConfigurationFactory.java:115)
at net.sf.hajdbc.xml.XMLDatabaseClusterConfigurationFactory.(XMLDatabaseClusterConfigurationFactory.java:110)
at net.sf.hajdbc.sql.CommonDataSource.create(CommonDataSource.java:79)
at net.sf.hajdbc.sql.CommonDataSource.create(CommonDataSource.java:48)
at net.sf.hajdbc.util.concurrent.LifecycleRegistry.get(LifecycleRegistry.java:63)
at net.sf.hajdbc.util.concurrent.LifecycleRegistry.get(LifecycleRegistry.java:34)
at net.sf.hajdbc.sql.CommonDataSource.getProxy(CommonDataSource.java:86)
at net.sf.hajdbc.sql.DataSource.getConnection(DataSource.java:60)
at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDataSource(PooledConnection.java:224)
at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:180)
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:724)
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:86)
at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:132)
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:309)
at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:135)
at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:330)
at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:293)
at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:418)
at org.eclipse.persistence.sessions.server.ConnectionPool.buildConnection(ConnectionPool.java:216)
at org.eclipse.persistence.sessions.server.ExternalConnectionPool.startUp(ExternalConnectionPool.java:146)
at org.eclipse.persistence.sessions.server.ServerSession.connect(ServerSession.java:484)
at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:633)
at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:208)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.