{"record":{"id":"1482c665c5867455","repo":"apache/hadoop","slug":"parsing-of-json-list-response-failed-in-dfsclient","errorCode":null,"errorMessage":"Parsing of Json List Response Failed in DfsClient.","messagePattern":"Parsing of Json List Response Failed in DfsClient\\.","errorType":"exception","errorClass":"AbfsDriverException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java","lineNumber":1418,"sourceCode":"        DfsListResultSchema listResultSchema;\n        final ObjectMapper objectMapper = new ObjectMapper();\n        listResultSchema = objectMapper.readValue(stream, DfsListResultSchema.class);\n        result.setListResultSchema(listResultSchema);\n        LOG.debug(\"ListPath listed {} paths with {} as continuation token\",\n            listResultSchema.paths().size(),\n            getContinuationFromResponse(result));\n        List<VersionedFileStatus> fileStatuses = new ArrayList<>();\n        for (DfsListResultEntrySchema entry : listResultSchema.paths()) {\n          fileStatuses.add(getVersionedFileStatusFromEntry(entry, uri));\n        }\n        ListResponseData listResponseData = new ListResponseData();\n        listResponseData.setFileStatusList(fileStatuses);\n        listResponseData.setRenamePendingJsonPaths(null);\n        listResponseData.setContinuationToken(\n            getContinuationFromResponse(result));\n        return listResponseData;\n      } catch (JsonParseException | JsonMappingException ex) {\n        throw new AbfsDriverException(ERR_DFS_LIST_PARSING, ex);\n      }\n    } catch (AbfsDriverException ex) {\n      // Throw as it is to avoid multiple wrapping.\n      LOG.error(\"Unable to deserialize list results for Uri {}\", uri != null ? uri.toString(): \"NULL\", ex);\n      throw ex;\n    } catch (Exception ex) {\n      LOG.error(\"Unable to deserialize list results for Uri {}\", uri != null ? uri.toString(): \"NULL\", ex);\n      throw new AbfsDriverException(ERR_DFS_LIST_PARSING, ex);\n    }\n  }\n\n  @Override\n  public List<String> parseBlockListResponse(final InputStream stream) throws IOException {\n    return null;\n  }\n\n  /**\n   * When the request fails, this function is used to parse the responseAbfsHttpClient.LOG.debug(\"ExpectedError: \", ex);","sourceCodeStart":1400,"sourceCodeEnd":1436,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsDfsClient.java#L1400-L1436","documentation":"Error \"Parsing of Json List Response Failed in DfsClient.\" thrown in apache/hadoop.","triggerScenarios":"The DFS endpoint returns a list response whose JSON cannot be parsed.","commonSituations":"See trigger scenarios.","solutions":["Capture the raw list response with DEBUG logging and validate the JSON.","Check for proxies or middleware altering the response body.","Retry the listing operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}