From d4a6144ae42582653c90a7441e8d28813736c9aa Mon Sep 17 00:00:00 2001 From: eveagle Date: Mon, 9 May 2022 18:17:05 +0800 Subject: [PATCH] fix responseFromFront to LinkedHashMap --- .../webase/node/mgr/alert/task/NodeStatusMonitorTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/webank/webase/node/mgr/alert/task/NodeStatusMonitorTask.java b/src/main/java/com/webank/webase/node/mgr/alert/task/NodeStatusMonitorTask.java index bb46aead4..a02565b64 100644 --- a/src/main/java/com/webank/webase/node/mgr/alert/task/NodeStatusMonitorTask.java +++ b/src/main/java/com/webank/webase/node/mgr/alert/task/NodeStatusMonitorTask.java @@ -180,7 +180,7 @@ public List> getNodeListWithType(String groupId) { 100, 1); try { // get data from response - LinkedHashMap responseMap = (LinkedHashMap) responseFromFront; + LinkedHashMap responseMap = JsonTools.stringToObj(JsonTools.objToString(responseFromFront), LinkedHashMap.class); log.debug("end getNodeListWithType result: {}", responseMap.get("data")); return (List>) responseMap.get("data"); }catch (Exception e) {