From 810827c91c5f1fca9045c2b77929c74149287c11 Mon Sep 17 00:00:00 2001 From: KomachiSion <263976490@qq.com> Date: Fri, 29 May 2020 12:05:14 +0800 Subject: [PATCH] Fix serverStatus api jackson error --- .../alibaba/nacos/naming/controllers/ServiceController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java b/naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java index 71b3dcb9d..bf4a694aa 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java +++ b/naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java @@ -288,8 +288,8 @@ public class ServiceController { JsonNode json = JacksonUtils.toObj(value); //format: service1@@checksum@@@service2@@checksum - String statuses = json.get("statuses").toString(); - String serverIp = json.get("clientIP").toString(); + String statuses = json.get("statuses").asText(); + String serverIp = json.get("clientIP").asText(); if (!memberManager.hasMember(serverIp)) { throw new NacosException(NacosException.INVALID_PARAM,