{"record":{"id":"2761cb80c459068d","repo":"alibaba/nacos","slug":"plugin-config-value-is-not-a-number","errorCode":null,"errorMessage":"Plugin config value is not a number: {}","messagePattern":"Plugin config value is not a number: (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java","lineNumber":162,"sourceCode":"            case NUMBER:\n                validateNumber(definition.getKey(), value);\n                break;\n            case BOOLEAN:\n                validateBoolean(definition.getKey(), value);\n                break;\n            case ENUM:\n                validateEnum(definition, value);\n                break;\n            default:\n                break;\n        }\n    }\n    \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":144,"sourceCodeEnd":180,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java#L144-L180","documentation":"Error \"Plugin config value is not a number: {}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigBasicChecker.java:162 when the library encounters an invalid state.","commonSituations":"A numeric plugin config key received a non-numeric value.","solutions":["Review the input and runtime state for plugin config not number, 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"}