{"record":{"id":"a26f319f8a5ff9af","repo":"alibaba/nacos","slug":"serverlist-is-empty-please-check-configuration-a26f31","errorCode":null,"errorMessage":"serverList is empty,please check configuration","messagePattern":"serverList is empty,please check configuration","errorType":"exception","errorClass":"NacosLoadException","httpStatus":null,"severity":"error","filePath":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/address/DefaultServerListManager.java","lineNumber":48,"sourceCode":"/**\n * Server list Manager.\n *\n * @author Nacos\n */\npublic class DefaultServerListManager extends AbstractServerListManager {\n    \n    private final AtomicInteger currentIndex = new AtomicInteger();\n    \n    public DefaultServerListManager(NacosClientProperties properties) {\n        super(properties);\n    }\n    \n    @Override\n    public void start() throws NacosException {\n        super.start();\n        List<String> serverList = getServerList();\n        if (serverList.isEmpty()) {\n            throw new NacosLoadException(\"serverList is empty,please check configuration\");\n        } else {\n            currentIndex.set(ThreadLocalRandom.current().nextInt(serverList.size()));\n        }\n    }\n    \n    @Override\n    protected String getModuleName() {\n        return \"Naming\";\n    }\n    \n    @Override\n    protected NacosRestTemplate getNacosRestTemplate() {\n        return HttpClientManager.getInstance().getNacosRestTemplate();\n    }\n    \n    @Override\n    public String genNextServer() {\n        int index = currentIndex.incrementAndGet() % getServerList().size();","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/address/DefaultServerListManager.java#L30-L66","documentation":"Error \"serverList is empty,please check configuration\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/address/DefaultServerListManager.java:48 when the library encounters an invalid state.","commonSituations":"The maintainer client was started without any configured server address.","solutions":["Review the input and runtime state for maintainer serverList empty, 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"}