alibaba/nacos · error · IllegalArgumentException
Plugin config value is not a boolean: {}
Error message
Plugin config value is not a boolean: {} What it means
Error "Plugin config value is not a boolean: {}" thrown in alibaba/nacos.
Source
Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java:168
case ENUM:
validateEnum(definition, value);
break;
default:
break;
}
}
private void validateNumber(String key, String value) {
try {
new BigDecimal(value);
} catch (NumberFormatException e) {
throw new IllegalArgumentException("Plugin config value is not a number: " + key, e);
}
}
private void validateBoolean(String key, String value) {
if (!"true".equalsIgnoreCase(value) && !"false".equalsIgnoreCase(value)) {
throw new IllegalArgumentException("Plugin config value is not a boolean: " + key);
}
}
private void validateEnum(ConfigItemDefinition definition, String value) {
if (definition.getEnumValues() != null && !definition.getEnumValues().isEmpty()
&& !definition.getEnumValues().contains(value)) {
throw new IllegalArgumentException("Plugin config value is not in enum values: "
+ definition.getKey());
}
}
}
View on GitHub (pinned to 9b989acdf1)
Solutions
- Review the input and runtime state for plugin config not boolean, correct the reported problem, and retry.
When it happens
Trigger: Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java:168 when the library encounters an invalid state.
Common situations: A boolean plugin config key received a non-boolean value.
AI-assisted analysis of alibaba/nacos@9b989acdf1 (2026-08-14).
Data as JSON: /api/errors/37c9883a2df106b6.
Report an issue: GitHub.