{"id":"60efb09b3ca52a1c","repo":"spring-projects/spring-framework","slug":"sourcelist-is-required","errorCode":null,"errorMessage":"'sourceList' is required","messagePattern":"'sourceList' is required","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"spring-beans/src/main/java/org/springframework/beans/factory/config/ListFactoryBean.java","lineNumber":80,"sourceCode":"\t\t}\n\t\tif (!List.class.isAssignableFrom(targetListClass)) {\n\t\t\tthrow new IllegalArgumentException(\"'targetListClass' must implement [java.util.List]\");\n\t\t}\n\t\tthis.targetListClass = targetListClass;\n\t}\n\n\n\t@Override\n\t@SuppressWarnings(\"rawtypes\")\n\tpublic Class<List> getObjectType() {\n\t\treturn List.class;\n\t}\n\n\t@Override\n\t@SuppressWarnings(\"unchecked\")\n\tprotected List<Object> createInstance() {\n\t\tif (this.sourceList == null) {\n\t\t\tthrow new IllegalArgumentException(\"'sourceList' is required\");\n\t\t}\n\t\tList<Object> result = null;\n\t\tif (this.targetListClass != null) {\n\t\t\tresult = BeanUtils.instantiateClass(this.targetListClass);\n\t\t}\n\t\telse {\n\t\t\tresult = new ArrayList<>(this.sourceList.size());\n\t\t}\n\t\tClass<?> valueType = null;\n\t\tif (this.targetListClass != null) {\n\t\t\tvalueType = ResolvableType.forClass(this.targetListClass).asCollection().resolveGeneric();\n\t\t}\n\t\tif (valueType != null) {\n\t\t\tTypeConverter converter = getBeanTypeConverter();\n\t\t\tfor (Object elem : this.sourceList) {\n\t\t\t\tresult.add(converter.convertIfNecessary(elem, valueType));\n\t\t\t}\n\t\t}","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/spring-projects/spring-framework/blob/e8729d043887bf0d0baf91e062e909b56eb2b708/spring-beans/src/main/java/org/springframework/beans/factory/config/ListFactoryBean.java#L62-L98","documentation":"Error \"'sourceList' is required\" thrown in spring-projects/spring-framework.","triggerScenarios":"Thrown at spring-beans/src/main/java/org/springframework/beans/factory/config/ListFactoryBean.java:80 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}