{"record":{"id":"1deb14db77884615","repo":"apache/maven","slug":"the-token-s-at-position-d-refers-to-a-java-u-1deb14","errorCode":null,"errorMessage":"The token '%s' at position '%d' refers to a java.util.Map, but the value seems is an instance of '%s'","messagePattern":"The token '(.+?)' at position '(.+?)' refers to a java\\.util\\.Map, 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":239,"sourceCode":"    }\n\n    private static Object getMappedValue(\n            final String expression, final int from, final int to, final Object value, final String key)\n            throws IntrospectionException {\n        if (value == null || key == null) {\n            return null;\n        }\n\n        if (value instanceof Map map) {\n            return map.get(key);\n        }\n\n        final String message = String.format(\n                \"The token '%s' at position '%d' refers to a java.util.Map, 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 getIndexedValue(\n            final String expression, final int from, final int to, final Object value, final String indexStr)\n            throws IntrospectionException {\n        try {\n            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        }","sourceCodeStart":221,"sourceCodeEnd":257,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-impl/src/main/java/org/apache/maven/impl/model/reflection/ReflectionValueExtractor.java#L221-L257","documentation":"Error \"The token '%s' at position '%d' refers to a java.util.Map, 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:239 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"}