{"id":"03625992af21e98c","repo":"spring-projects/spring-framework","slug":"could-not-load-properties","errorCode":null,"errorMessage":"Could not load properties: {}","messagePattern":"Could not load properties: (.+?)","errorType":"exception","errorClass":"BeanInitializationException","httpStatus":null,"severity":"error","filePath":"spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyResourceConfigurer.java","lineNumber":89,"sourceCode":"\n\t/**\n\t * {@linkplain #mergeProperties Merge}, {@linkplain #convertProperties convert} and\n\t * {@linkplain #processProperties process} properties against the given bean factory.\n\t * @throws BeanInitializationException if any properties cannot be loaded\n\t */\n\t@Override\n\tpublic void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {\n\t\ttry {\n\t\t\tProperties mergedProps = mergeProperties();\n\n\t\t\t// Convert the merged properties, if necessary.\n\t\t\tconvertProperties(mergedProps);\n\n\t\t\t// Let the subclass process the properties.\n\t\t\tprocessProperties(beanFactory, mergedProps);\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tthrow new BeanInitializationException(\"Could not load properties: \" + ex.getMessage(), ex);\n\t\t}\n\t}\n\n\t/**\n\t * Convert the given merged properties, converting property values\n\t * if necessary. The result will then be processed.\n\t * <p>The default implementation will invoke {@link #convertPropertyValue}\n\t * for each property value, replacing the original with the converted value.\n\t * @param props the Properties to convert\n\t * @see #processProperties\n\t */\n\tprotected void convertProperties(Properties props) {\n\t\tEnumeration<?> propertyNames = props.propertyNames();\n\t\twhile (propertyNames.hasMoreElements()) {\n\t\t\tString propertyName = (String) propertyNames.nextElement();\n\t\t\tString propertyValue = props.getProperty(propertyName);\n\t\t\tString convertedValue = convertProperty(propertyName, propertyValue);\n\t\t\tif (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) {","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/spring-projects/spring-framework/blob/e8729d043887bf0d0baf91e062e909b56eb2b708/spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyResourceConfigurer.java#L71-L107","documentation":"Error \"Could not load properties: {}\" thrown in spring-projects/spring-framework.","triggerScenarios":"Thrown at spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyResourceConfigurer.java:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e8729d043887bf0d0baf91e062e909b56eb2b708","analyzedAt":"2026-08-04T19:07:39.725Z","schemaVersion":2}