apache/flink · error · java.lang.IllegalArgumentException

An object must not allow additional properties in node: {}

Error message

An object must not allow additional properties in node: {}

What it means

Error "An object must not allow additional properties in node: {}" thrown in apache/flink.

Source

Thrown at flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java:272

        final Iterator<Map.Entry<String, JsonNode>> fieldIter = props.fields();
        int i = 0;
        while (fieldIter.hasNext()) {
            final Map.Entry<String, JsonNode> subNode = fieldIter.next();

            // set field name
            names[i] = subNode.getKey();

            // set type
            types[i] = convertType(location + '/' + subNode.getKey(), subNode.getValue(), root);

            i++;
        }

        // validate that object does not contain additional properties
        if (node.has(ADDITIONAL_PROPERTIES)
                && node.get(ADDITIONAL_PROPERTIES).isBoolean()
                && node.get(ADDITIONAL_PROPERTIES).asBoolean()) {
            throw new IllegalArgumentException(
                    "An object must not allow additional properties in node: " + location);
        }

        return Types.ROW_NAMED(names, types);
    }

    private static TypeInformation<?> convertArray(String location, JsonNode node, JsonNode root) {
        // validate items
        if (!node.has(ITEMS)) {
            throw new IllegalArgumentException(
                    "Arrays must specify an '" + ITEMS + "' property in node: " + location);
        }
        final JsonNode items = node.get(ITEMS);

        // list (translated to object array)
        if (items.isObject()) {
            final TypeInformation<?> elementType = convertType(location + '/' + ITEMS, items, root);
            // result type might either be ObjectArrayTypeInfo or BasicArrayTypeInfo for Strings

View on GitHub (pinned to 2f3c205e92)

Solutions

  1. Address the cause reported by the error message: An object must not allow additional properties in node: the reported value
  2. Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry.

Example fix

Correct the condition described ("An object must not allow additional properties in node: the reported value") and rerun the job or command.

When it happens

Trigger: Triggered at runtime when the operation fails because: An object must not allow additional properties in node: the reported value.

Common situations: Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: An object must not allow additional properties in node: the reported value.


AI-assisted analysis of apache/flink@2f3c205e92 (2026-08-14). Data as JSON: /api/errors/0a3109c38e5fbd0d. Report an issue: GitHub.