hibernate/hibernate-orm · error · HibernateException

Unable to make JDBC Connection [{url}]

Error message

Unable to make JDBC Connection [{url}]

What it means

Error "Unable to make JDBC Connection [{url}]" thrown in hibernate/hibernate-orm.

Source

Thrown at hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/BasicConnectionCreator.java:61

			String initSql) {
		this.serviceRegistry = serviceRegistry;
		this.url = url;
		this.connectionProps = connectionProps;
		this.autoCommit = autocommit;
		this.isolation = isolation;
		this.initSql = initSql;
	}

	@Override
	public String getUrl() {
		return url;
	}

	@Override
	public Connection createConnection() {
		final Connection conn = makeConnection( url, connectionProps );
		if ( conn == null ) {
			throw new HibernateException( "Unable to make JDBC Connection [" + url + "]" );
		}

		try {
			try {
				if ( isolation != null ) {
					conn.setTransactionIsolation( isolation );
				}
			}
			catch (SQLException e) {
				throw convertSqlException( "Unable to set transaction isolation (" + isolation + ")", e );
			}

			try {
				if ( conn.getAutoCommit() != autoCommit ) {
					conn.setAutoCommit( autoCommit );
				}
			}
			catch (SQLException e) {

View on GitHub (pinned to fad1729dce)

Solutions

  1. Verify the JDBC URL, credentials, and that the database is reachable
  2. Ensure the JDBC driver is on the classpath and the URL syntax matches the driver

When it happens

Trigger: Thrown at hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/BasicConnectionCreator.java:61 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22). Data as JSON: /api/errors/f1eca9095317dd30. Report an issue: GitHub.