{"record":{"id":"3766e1e3954bf2c3","repo":"alibaba/nacos","slug":"static-plugin-config-was-refreshed-but-failed-to-a","errorCode":null,"errorMessage":"Static plugin config was refreshed but failed to apply: {pluginId}","messagePattern":"Static plugin config was refreshed but failed to apply: (.+?)","errorType":"exception","errorClass":"PluginConfigApplyException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java","lineNumber":145,"sourceCode":"     * Refresh runtime-effective static configuration and apply an effective change.\n     *\n     * @param pluginInfo plugin info\n     * @param pluginInstance plugin instance\n     */\n    public void refreshStaticConfig(PluginInfo pluginInfo, Object pluginInstance) {\n        synchronized (getPluginLock(pluginInfo.getPluginId())) {\n            resolver.refreshStaticConfig(pluginInfo);\n            PluginConfigResolution resolution = resolver.resolve(pluginInfo, false);\n            if (resolution.getConfig().equals(pluginInfo.getConfig())) {\n                return;\n            }\n            try {\n                checker.validateEffectiveConfig(pluginInfo, resolution.getConfig());\n                applier.apply(pluginInfo.getPluginId(), pluginInstance, resolution.getConfig());\n            } catch (RuntimeException e) {\n                LOGGER.error(\"[PluginConfigService] Static plugin config was refreshed but failed \"\n                    + \"to apply, pluginId={}\", pluginInfo.getPluginId(), e);\n                throw new PluginConfigApplyException(\"Static plugin config was refreshed but \"\n                    + \"failed to apply: \" + pluginInfo.getPluginId(), e);\n            }\n            pluginInfo.setConfig(copyConfig(resolution.getConfig()));\n        }\n    }\n    \n    /**\n     * Replace and apply the local-only source snapshot.\n     *\n     * @param pluginInfo plugin info\n     * @param pluginInstance plugin instance\n     * @param config normalized full override map\n     */\n    public void updateLocalOnlyConfig(PluginInfo pluginInfo, Object pluginInstance,\n        Map<String, String> config) {\n        replaceAndApply(pluginInfo.getPluginId(), pluginInfo, pluginInstance,\n            PluginConfigSourceType.LOCAL_ONLY, config, true);\n    }","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java#L127-L163","documentation":"Error \"Static plugin config was refreshed but failed to apply: {pluginId}\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at core/src/main/java/com/alibaba/nacos/core/plugin/config/PluginConfigService.java:145 when the library encounters an invalid state.","commonSituations":"Applying refreshed static plugin configuration failed.","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"}