{"record":{"id":"76d0cc65490d9752","repo":"apache/hadoop","slug":"null-io-stream-76d0cc","errorCode":null,"errorMessage":"Null IO stream","messagePattern":"Null IO stream","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSInputStream.java","lineNumber":176,"sourceCode":"    }\n\n    ReadBuffer readBuffer = readBufferQueue.poll();\n    readBuffer.lock();\n    try {\n      readBuffer.await(ReadBuffer.STATUS.INIT);\n      if (readBuffer.getStatus() == ReadBuffer.STATUS.ERROR) {\n        this.buffer = null;\n      } else {\n        this.buffer = readBuffer.getBuffer();\n      }\n    } catch (InterruptedException e) {\n      LOG.warn(\"interrupted when wait a read buffer\");\n    } finally {\n      readBuffer.unlock();\n    }\n\n    if (this.buffer == null) {\n      throw new IOException(\"Null IO stream\");\n    }\n    position = pos;\n    partRemaining = partSize;\n  }\n\n  @Override\n  public synchronized int read() throws IOException {\n    checkNotClosed();\n\n    if (partRemaining <= 0 && position < contentLength) {\n      reopen(position);\n    }\n\n    int byteRead = -1;\n    if (partRemaining != 0) {\n      byteRead = this.buffer[this.buffer.length - (int)partRemaining] & 0xFF;\n    }\n    if (byteRead >= 0) {","sourceCodeStart":158,"sourceCodeEnd":194,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSInputStream.java#L158-L194","documentation":"Error \"Null IO stream\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSInputStream.java:176 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This indicates the OSS object stream was not opened correctly; retry opening the file and verify the object exists and credentials/endpoint are valid."],"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"}