{"record":{"id":"675a8d9a33336fe0","repo":"hibernate/hibernate-orm","slug":"unable-to-locate-specified-properties-file-s","errorCode":null,"errorMessage":"Unable to locate specified properties file [%s]","messagePattern":"Unable to locate specified properties file \\[(.+?)\\]","errorType":"exception","errorClass":"ConfigurationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/cfgxml/internal/ConfigLoader.java","lineNumber":156,"sourceCode":"\t\t\t\treturn loadProperties( stream );\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\tthrow new ConfigurationException(\n\t\t\t\t\t\t\"Unable to apply settings from properties file [\" + file.getAbsolutePath() + \"]\",\n\t\t\t\t\t\te\n\t\t\t\t);\n\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.unableToClosePropertiesFileStream( file.getAbsolutePath(), e );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new ConfigurationException(\n\t\t\t\t\t\"Unable to locate specified properties file [\" + file.getAbsolutePath() + \"]\",\n\t\t\t\t\te\n\t\t\t);\n\t\t}\n\t}\n\n\tprivate static Properties loadProperties(InputStream stream) throws IOException {\n\t\tfinal var properties = new Properties();\n\t\tproperties.load( stream );\n\t\treturn properties;\n\t}\n}\n","sourceCodeStart":138,"sourceCodeEnd":169,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/cfgxml/internal/ConfigLoader.java#L138-L169","documentation":"Error \"Unable to locate specified 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":["Create the referenced properties file or correct the path configured via hibernate configuration.","Ensure the file is on the classpath or that the absolute file system path is correct.","Check for typos and case mismatches in the file name."],"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"}