apache/hadoop · error · HadoopIllegalArgumentException
Invalid inputs are found, all being null
Error message
Invalid inputs are found, all being null
What it means
Error "Invalid inputs are found, all being null" thrown in apache/hadoop.
Source
Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/CoderUtil.java:180
}
}
return Arrays.copyOf(nullIndexes, idx);
}
/**
* Find the valid input from all the inputs.
* @param inputs input buffers to look for valid input
* @return the first valid input
*/
static <T> T findFirstValidInput(T[] inputs) {
for (T input : inputs) {
if (input != null) {
return input;
}
}
throw new HadoopIllegalArgumentException(
"Invalid inputs are found, all being null");
}
/**
* Picking up indexes of valid inputs.
* @param inputs decoding input buffers
* @param <T>
*/
static <T> int[] getValidIndexes(T[] inputs) {
int[] validIndexes = new int[inputs.length];
int idx = 0;
for (int i = 0; i < inputs.length; i++) {
if (inputs[i] != null) {
validIndexes[idx++] = i;
}
}
return Arrays.copyOf(validIndexes, idx);View on GitHub (pinned to 2add963021)
Solutions
- Provide at least one non-null input; an all-null inputs array indicates erasedIndexes or buffer construction is wrong.
- Check the caller logic that builds the inputs array against the erased block list.
When it happens
Trigger: Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/erasurecode/rawcoder/CoderUtil.java:180 when the library encounters an invalid state.
Common situations: Occurs when all input buffers passed to the coder are null. Ensure at least the required number of valid input buffers are supplied before encoding/decoding.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/cf02dc6541603562.
Report an issue: GitHub.