{"record":{"id":"a85729082e4af896","repo":"apache/hadoop","slug":"owner-is-too-long-to-be-serialized","errorCode":null,"errorMessage":"owner is too long to be serialized!","messagePattern":"owner is too long to be serialized!","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java","lineNumber":220,"sourceCode":"    masterKeyId = WritableUtils.readVInt(in);\n  }\n\n  @VisibleForTesting\n  void writeImpl(DataOutput out) throws IOException {\n    out.writeByte(VERSION);\n    owner.write(out);\n    renewer.write(out);\n    realUser.write(out);\n    WritableUtils.writeVLong(out, issueDate);\n    WritableUtils.writeVLong(out, maxDate);\n    WritableUtils.writeVInt(out, sequenceNumber);\n    WritableUtils.writeVInt(out, masterKeyId);\n  }\n  \n  @Override\n  public void write(DataOutput out) throws IOException {\n    if (owner.getLength() > Text.DEFAULT_MAX_LEN) {\n      throw new IOException(\"owner is too long to be serialized!\");\n    }\n    if (renewer.getLength() > Text.DEFAULT_MAX_LEN) {\n      throw new IOException(\"renewer is too long to be serialized!\");\n    }\n    if (realUser.getLength() > Text.DEFAULT_MAX_LEN) {\n      throw new IOException(\"realuser is too long to be serialized!\");\n    }\n    writeImpl(out);\n  }\n  \n  @Override\n  public String toString() {\n    StringBuilder buffer = new StringBuilder();\n    buffer\n        .append(getKind())\n        .append(\" owner=\").append(owner)\n        .append(\", renewer=\").append(renewer)\n        .append(\", realUser=\").append(realUser)","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java#L202-L238","documentation":"Error \"owner is too long to be serialized!\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java:220 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Shorten the owner name: the delegation token owner exceeds the maximum length that can be serialized into the token identifier. Use a shorter user/principal name."],"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"}