{"record":{"id":"8c32418ba78ef796","repo":"apache/maven","slug":"the-token-s-at-position-d-refers-to-a-java-u-8c3241","errorCode":null,"errorMessage":"The token '%s' at position '%d' refers to a java.util.List or an array, but the value seems is an instance of '%s'","messagePattern":"The token '(.+?)' at position '(.+?)' refers to a java\\.util\\.List or an array, but the value seems is an instance of '(.+?)'","errorType":"exception","errorClass":"IntrospectionException","httpStatus":null,"severity":"error","filePath":"impl/maven-impl/src/main/java/org/apache/maven/impl/model/reflection/ReflectionValueExtractor.java","lineNumber":264,"sourceCode":"            int index = Integer.parseInt(indexStr);\n\n            if (value.getClass().isArray()) {\n                return Array.get(value, index);\n            }\n\n            if (value instanceof List list) {\n                return list.get(index);\n            }\n        } catch (NumberFormatException | IndexOutOfBoundsException e) {\n            return null;\n        }\n\n        final String message = String.format(\n                \"The token '%s' at position '%d' refers to a java.util.List or an array, but the value \"\n                        + \"seems is an instance of '%s'\",\n                expression.subSequence(from, to), from, value.getClass());\n\n        throw new IntrospectionException(message);\n    }\n\n    private static Object getPropertyValue(Object value, String property) throws IntrospectionException {\n        if (value == null || property == null || property.isEmpty()) {\n            return null;\n        }\n\n        ClassMap classMap = getClassMap(value.getClass());\n        String methodBase = Character.toTitleCase(property.charAt(0)) + property.substring(1);\n        try {\n            for (String prefix : ACCESSOR_PREFIXES) {\n                Method method = classMap.findMethod(prefix + methodBase);\n                if (method != null) {\n                    return method.invoke(value, OBJECT_ARGS);\n                }\n            }\n            return null;\n        } catch (InvocationTargetException e) {","sourceCodeStart":246,"sourceCodeEnd":282,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-impl/src/main/java/org/apache/maven/impl/model/reflection/ReflectionValueExtractor.java#L246-L282","documentation":"Error \"The token '%s' at position '%d' refers to a java.util.List or an array, but the value seems is an instance of '%s'\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-impl/src/main/java/org/apache/maven/impl/model/reflection/ReflectionValueExtractor.java:264 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}