{"record":{"id":"fe53672750224de0","repo":"apache/flink","slug":"only-json-schemes-with-simple-references-one-indi","errorCode":null,"errorMessage":"Only JSON schemes with simple references (one indirection in the same document) are supported yet. But was: {}","messagePattern":"Only JSON schemes with simple references \\(one indirection in the same document\\) are supported yet\\. But was: (.+?)","errorType":"validation","errorClass":"java.lang.IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java","lineNumber":352,"sourceCode":"\n        // \"If the instance value is a string, this property defines that the string SHOULD\n        // be interpreted as binary data and decoded using the encoding named by this property.\"\n\n        switch (node.asText()) {\n            case CONTENT_ENCODING_BASE64:\n                return Types.PRIMITIVE_ARRAY(Types.BYTE);\n            default:\n                // we fail hard here:\n                // this gives us the chance to support more encodings in the future without problems\n                // of backwards compatibility\n                throw new IllegalArgumentException(\n                        \"Invalid encoding '\" + node.asText() + \"' in node: \" + location);\n        }\n    }\n\n    private static JsonNode resolveReference(String ref, JsonNode origin, JsonNode root) {\n        if (!ref.startsWith(\"#\")) {\n            throw new IllegalArgumentException(\n                    \"Only JSON schemes with simple references \"\n                            + \"(one indirection in the same document) are supported yet. But was: \"\n                            + ref);\n        }\n        final String path = ref.substring(1);\n        final JsonNode foundNode = root.at(path);\n        if (foundNode.isMissingNode()) {\n            throw new IllegalArgumentException(\"Could not find reference: \" + ref);\n        }\n        // prevent obvious cyclic references\n        if (foundNode == origin) {\n            throw new IllegalArgumentException(\"Cyclic references are not supported:\" + ref);\n        }\n        return foundNode;\n    }\n\n    private static TypeInformation<?>[] convertTypes(\n            String location, JsonNode arrayNode, JsonNode root) {","sourceCodeStart":334,"sourceCodeEnd":370,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java#L334-L370","documentation":"Error \"Only JSON schemes with simple references (one indirection in the same document) are supported yet. But was: {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Only JSON schemes with simple references (one indirection in the same document) are supported yet. But was: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Only JSON schemes with simple references (one indirection in the same document) are supported yet. But was: the reported value.","solutions":["Address the cause reported by the error message: Only JSON schemes with simple references (one indirection in the same document) are supported yet. But was: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Only JSON schemes with simple references (one indirection in the same document) are supported yet. But was: the reported value\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}