{"record":{"id":"bcf44c08f03cd868","repo":"alibaba/nacos","slug":"plugin-config-value-is-not-in-enum-values","errorCode":null,"errorMessage":"Plugin config value is not in enum values: {}","messagePattern":"Plugin config value is not in enum values: (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java","lineNumber":175,"sourceCode":"    \n    private void validateNumber(String key, String value) {\n        try {\n            new BigDecimal(value);\n        } catch (NumberFormatException e) {\n            throw new IllegalArgumentException(\"Plugin config value is not a number: \" + key, e);\n        }\n    }\n    \n    private void validateBoolean(String key, String value) {\n        if (!\"true\".equalsIgnoreCase(value) && !\"false\".equalsIgnoreCase(value)) {\n            throw new IllegalArgumentException(\"Plugin config value is not a boolean: \" + key);\n        }\n    }\n    \n    private void validateEnum(ConfigItemDefinition definition, String value) {\n        if (definition.getEnumValues() != null && !definition.getEnumValues().isEmpty()\n            && !definition.getEnumValues().contains(value)) {\n            throw new IllegalArgumentException(\"Plugin config value is not in enum values: \"\n                + definition.getKey());\n        }\n    }\n}\n","sourceCodeStart":157,"sourceCodeEnd":180,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java#L157-L180","documentation":"Error \"Plugin config value is not in enum values: {}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java:175 when the library encounters an invalid state.","commonSituations":"An enum plugin config key received a value outside the allowed set.","solutions":["Review the input and runtime state for plugin config not in enum, correct the reported problem, and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}