{"record":{"id":"90406fe4cb1f4b79","repo":"hibernate/hibernate-orm","slug":"unknown-transaction-isolation-level-90406f","errorCode":null,"errorMessage":"Unknown transaction isolation level: {}","messagePattern":"Unknown transaction isolation level: (.+?)","errorType":"exception","errorClass":"ConnectionProviderConfigurationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java","lineNumber":363,"sourceCode":"\t\t\t\treturn ISOLATION_VALUE_MAP.get( string );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// it could be a String representation of the isolation numeric value\n\t\t\t\ttry {\n\t\t\t\t\tfinal int isolationLevel = parseInt( string );\n\t\t\t\t\tcheckIsolationLevel( isolationLevel );\n\t\t\t\t\treturn isolationLevel;\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException ignore) {\n\t\t\t\t\tthrow new ConnectionProviderConfigurationException( \"Unknown transaction isolation level: '\" + string + \"'\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static void checkIsolationLevel(int isolationLevel) {\n\t\tif ( !ISOLATION_VALUE_CONSTANT_NAME_MAP.containsKey( isolationLevel ) ) {\n\t\t\tthrow new ConnectionProviderConfigurationException( \"Unknown transaction isolation level: \" + isolationLevel );\n\t\t}\n\t}\n\n\t/**\n\t * Gets the {@link Connection} constant name corresponding to the given isolation.\n\t *\n\t * @param isolation The transaction isolation numeric value.\n\t *\n\t * @return The corresponding Connection constant name.\n\t *\n\t * @throws HibernateException If the given isolation does not map to JDBC standard isolation\n\t *\n\t * @see #toIsolationNiceName\n\t */\n\tpublic static String toIsolationConnectionConstantName(Integer isolation) {\n\t\tfinal String name = ISOLATION_VALUE_CONSTANT_NAME_MAP.get( isolation );\n\t\tif ( name == null ) {\n\t\t\tthrow new HibernateException(","sourceCodeStart":345,"sourceCodeEnd":381,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java#L345-L381","documentation":"Error \"Unknown transaction isolation level: {}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java:363 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set 'hibernate.connection.isolation' to a numeric java.sql.Connection isolation constant or a supported level name","Remove or correct the invalid isolation level configuration"],"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"}