{"record":{"id":"f1eca9095317dd30","repo":"hibernate/hibernate-orm","slug":"unable-to-make-jdbc-connection-url","errorCode":null,"errorMessage":"Unable to make JDBC Connection [{url}]","messagePattern":"Unable to make JDBC Connection \\[(.+?)\\]","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/BasicConnectionCreator.java","lineNumber":61,"sourceCode":"\t\t\tString initSql) {\n\t\tthis.serviceRegistry = serviceRegistry;\n\t\tthis.url = url;\n\t\tthis.connectionProps = connectionProps;\n\t\tthis.autoCommit = autocommit;\n\t\tthis.isolation = isolation;\n\t\tthis.initSql = initSql;\n\t}\n\n\t@Override\n\tpublic String getUrl() {\n\t\treturn url;\n\t}\n\n\t@Override\n\tpublic Connection createConnection() {\n\t\tfinal Connection conn = makeConnection( url, connectionProps );\n\t\tif ( conn == null ) {\n\t\t\tthrow new HibernateException( \"Unable to make JDBC Connection [\" + url + \"]\" );\n\t\t}\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tif ( isolation != null ) {\n\t\t\t\t\tconn.setTransactionIsolation( isolation );\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\tthrow convertSqlException( \"Unable to set transaction isolation (\" + isolation + \")\", e );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif ( conn.getAutoCommit() != autoCommit ) {\n\t\t\t\t\tconn.setAutoCommit( autoCommit );\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException e) {","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/BasicConnectionCreator.java#L43-L79","documentation":"Error \"Unable to make JDBC Connection [{url}]\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/BasicConnectionCreator.java:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the JDBC URL, credentials, and that the database is reachable","Ensure the JDBC driver is on the classpath and the URL syntax matches the driver"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}