{"record":{"id":"224bb5b80f471109","repo":"alibaba/nacos","slug":"400-224bb5","errorCode":"400","errorMessage":"[pluginId={pluginId}, operation={operationType}] {validationErrorMessage}","messagePattern":"\\[pluginId=(.+?), operation=(.+?)\\] (.+?)","errorType":"error_code","errorClass":"NacosApiException","httpStatus":400,"severity":"error","filePath":"core/src/main/java/com/alibaba/nacos/core/plugin/sync/RaftPluginStateSynchronizer.java","lineNumber":107,"sourceCode":"    \n    private void submitToRaft(PluginStateOperation operation) throws NacosApiException {\n        try {\n            CPProtocol cpProtocol = consensusService.getProtocol();\n            byte[] data = serializer.serialize(operation);\n            \n            WriteRequest request = WriteRequest.newBuilder()\n                .setGroup(PLUGIN_STATE_GROUP)\n                .setData(ByteString.copyFrom(data))\n                .setOperation(DataOperation.CHANGE.name())\n                .build();\n            \n            Response response = cpProtocol.write(request);\n            if (!response.getSuccess()) {\n                if (response.getErrMsg().startsWith(\n                    PluginStateOperation.INVALID_PARAM_ERROR_PREFIX)) {\n                    String message = response.getErrMsg().substring(\n                        PluginStateOperation.INVALID_PARAM_ERROR_PREFIX.length());\n                    throw new NacosApiException(NacosException.INVALID_PARAM,\n                        ErrorCode.PARAMETER_VALIDATE_ERROR, message);\n                }\n                if (response.getErrMsg().startsWith(\n                    PluginStateOperation.CONFIG_APPLY_ERROR_PREFIX)) {\n                    String message = response.getErrMsg().substring(\n                        PluginStateOperation.CONFIG_APPLY_ERROR_PREFIX.length());\n                    throw new NacosApiException(NacosException.SERVER_ERROR,\n                        ErrorCode.SERVER_ERROR, message);\n                }\n                throw new NacosApiException(NacosException.SERVER_ERROR, ErrorCode.SERVER_ERROR,\n                    \"Failed to submit plugin state to Raft: \" + response.getErrMsg());\n            }\n        } catch (Exception e) {\n            if (e instanceof NacosApiException) {\n                throw (NacosApiException) e;\n            }\n            throw new NacosApiException(NacosException.SERVER_ERROR, ErrorCode.SERVER_ERROR, e,\n                \"Failed to submit plugin state to Raft\");","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/core/src/main/java/com/alibaba/nacos/core/plugin/sync/RaftPluginStateSynchronizer.java#L89-L125","documentation":"Error \"[pluginId={pluginId}, operation={operationType}] {validationErrorMessage}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/sync/RaftPluginStateSynchronizer.java:107 when the library encounters an invalid state.","commonSituations":"A plugin state synchronization operation failed validation.","solutions":["Inspect the server logs for the underlying cause, fix it, and retry the operation."],"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"}