{"record":{"id":"5a87295885b91e0b","repo":"apache/flink","slug":"failed-to-parse-xml-document-with-handler","errorCode":null,"errorMessage":"Failed to parse XML document with handler {}","messagePattern":"Failed to parse XML document with handler (.+?)","errorType":"exception","errorClass":"SdkClientException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java","lineNumber":172,"sourceCode":"            BufferedReader breader =\n                    new BufferedReader(\n                            new InputStreamReader(inputStream, Constants.DEFAULT_ENCODING));\n            xr.setContentHandler(handler);\n            xr.setErrorHandler(handler);\n            xr.parse(new InputSource(breader));\n\n        } catch (IOException e) {\n            throw e;\n\n        } catch (Throwable t) {\n            try {\n                inputStream.close();\n            } catch (IOException e) {\n                if (log.isErrorEnabled()) {\n                    log.error(\"Unable to close response InputStream up after XML parse failure\", e);\n                }\n            }\n            throw new SdkClientException(\n                    \"Failed to parse XML document with handler \" + handler.getClass(), t);\n        }\n    }\n\n    protected InputStream sanitizeXmlDocument(DefaultHandler handler, InputStream inputStream)\n            throws IOException {\n\n        if (!sanitizeXmlDocument) {\n            // No sanitizing will be performed, return the original input stream unchanged.\n            return inputStream;\n        } else {\n            if (log.isDebugEnabled()) {\n                log.debug(\"Sanitizing XML document destined for handler \" + handler.getClass());\n            }\n\n            InputStream sanitizedInputStream = null;\n\n            try {","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java#L154-L190","documentation":"Error \"Failed to parse XML document with handler {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Failed to parse XML document with handler the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Failed to parse XML document with handler the reported value.","solutions":["Address the cause reported by the error message: Failed to parse XML document with handler the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Failed to parse XML document with handler 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"}