{"record":{"id":"af1d678b8e23a70d","repo":"hibernate/hibernate-orm","slug":"unable-to-apply-settings-from-properties-file-s","errorCode":null,"errorMessage":"Unable to apply settings from properties file [%s]","messagePattern":"Unable to apply settings from properties file \\[(.+?)\\]","errorType":"exception","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/cfgxml/internal/ConfigLoader.java","lineNumber":115,"sourceCode":"\t\t\t}\n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tstream.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\tBOOT_LOGGER.unableToCloseCfgXmlUrlStream( e );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new ConfigurationException( \"Could not access given cfg.xml URL input stream\", e );\n\t\t}\n\t}\n\n\tpublic Properties loadProperties(String resourceName) {\n\t\tfinal var stream = locateStream( resourceName );\n\t\tif ( stream == null ) {\n\t\t\tthrow new ConfigurationException( \"Unable to apply settings from properties file [\" + resourceName + \"]\" );\n\t\t}\n\n\t\ttry {\n\t\t\treturn loadProperties( stream );\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new ConfigurationException( \"Unable to apply settings from properties file [\" + resourceName + \"]\", e );\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tstream.close();\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tBOOT_LOGGER.unableToClosePropertiesFileStream( resourceName, e );\n\t\t\t}\n\t\t}\n\t}\n","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/cfgxml/internal/ConfigLoader.java#L97-L133","documentation":"Error \"Unable to apply settings from properties file [%s]\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A configuration resource (cfg.xml URL or properties file) cannot be opened or read.","commonSituations":"Unreadable or missing config files, wrong URLs, or IO errors while Hibernate loads settings during bootstrap.","solutions":["Confirm the properties file path/URL exists and is readable by the application.","Validate the properties file syntax (key=value pairs, no malformed unicode escapes).","Check file encoding; use ISO-8859-1 or properly escaped unicode as required by java.util.Properties."],"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"}