apache/hadoop · error · SAXException
Invalid XML
Error message
Invalid XML
What it means
Error "Invalid XML" thrown in apache/hadoop.
Source
Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/services/BlobListXmlParser.java:134
/**
* <pre>Receive notification of the end of an element.</pre>
* Whenever an XML-tag is closed, the parent-tag and current-tag shall be
* checked and correct property shall be set in the active {@link #currentBlobEntry}.
* If the current-tag is "Blob", it means that there are no more properties to
* be set in the the active {@link #currentBlobEntry}, and it shall be the
* {@link #listResultSchema}.
*/
@Override
public void endElement(final String uri,
final String localName,
final String qName)
throws SAXException {
String currentNode = elements.pop();
// Check if the ending tag is correct to the starting tag in the stack.
if (!currentNode.equals(localName)) {
throw new SAXException(AbfsHttpConstants.XML_TAG_INVALID_XML);
}
String parentNode = EMPTY_STRING;
if (elements.size() > 0) {
parentNode = elements.peek();
}
String value = bld.toString();
if (value.isEmpty()) {
value = null;
}
/*
* If the closing tag is Blob, there are no more properties to be set in
* currentBlobEntry.
*/
if (AbfsHttpConstants.XML_TAG_BLOB.equals(currentNode)) {
listResultSchema.addBlobListEntry(currentBlobEntry);View on GitHub (pinned to 2add963021)
Solutions
- Verify the storage account returned a well-formed XML list response; enable DEBUG logging for AbfsBlobClient to capture the raw payload.
- Check for proxy or firewall appliances altering the response body.
- Retry the request; if persistent, capture the response and report it to the storage service.
When it happens
Trigger: Listing blobs over the Blob endpoint returns malformed or truncated XML, often under network interference or service-side errors.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/9edb678e061582db.
Report an issue: GitHub.