{"id":"8bb3645b82d24905","repo":"spring-projects/spring-framework","slug":"invalid-key-expected-beanname-property","errorCode":null,"errorMessage":"Invalid key '{}': expected 'beanName{}property'","messagePattern":"Invalid key '(.+?)': expected 'beanName(.+?)property'","errorType":"exception","errorClass":"BeanInitializationException","httpStatus":null,"severity":"error","filePath":"spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyOverrideConfigurer.java","lineNumber":132,"sourceCode":"\t\t\t\tif (!this.ignoreInvalidKeys) {\n\t\t\t\t\tthrow new BeanInitializationException(msg, ex);\n\t\t\t\t}\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(msg, ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Process the given key as 'beanName.property' entry.\n\t */\n\tprotected void processKey(ConfigurableListableBeanFactory factory, String key, String value)\n\t\t\tthrows BeansException {\n\n\t\tint separatorIndex = key.indexOf(this.beanNameSeparator);\n\t\tif (separatorIndex == -1) {\n\t\t\tthrow new BeanInitializationException(\"Invalid key '\" + key +\n\t\t\t\t\t\"': expected 'beanName\" + this.beanNameSeparator + \"property'\");\n\t\t}\n\t\tString beanName = key.substring(0, separatorIndex);\n\t\tString beanProperty = key.substring(separatorIndex + 1);\n\t\tthis.beanNames.add(beanName);\n\t\tapplyPropertyValue(factory, beanName, beanProperty, value);\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Property '\" + key + \"' set to value [\" + value + \"]\");\n\t\t}\n\t}\n\n\t/**\n\t * Apply the given property value to the corresponding bean.\n\t */\n\tprotected void applyPropertyValue(\n\t\t\tConfigurableListableBeanFactory factory, String beanName, String property, String value) {\n\n\t\tBeanDefinition bd = factory.getBeanDefinition(beanName);","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/spring-projects/spring-framework/blob/e8729d043887bf0d0baf91e062e909b56eb2b708/spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyOverrideConfigurer.java#L114-L150","documentation":"Error \"Invalid key '{}': expected 'beanName{}property'\" thrown in spring-projects/spring-framework.","triggerScenarios":"Thrown at spring-beans/src/main/java/org/springframework/beans/factory/config/PropertyOverrideConfigurer.java:132 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}