From 7e521f92c6f1bb7686d0e2655391e47c7d185de8 Mon Sep 17 00:00:00 2001 From: taihelsetw Date: Mon, 29 Jun 2020 15:48:51 +0800 Subject: [PATCH] fix bug while customize WebAppStat --- .../com/alibaba/druid/support/http/stat/WebAppStatUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java b/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java index fc8fb35509..9e53240722 100644 --- a/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java +++ b/src/main/java/com/alibaba/druid/support/http/stat/WebAppStatUtils.java @@ -82,7 +82,7 @@ public class WebAppStatUtils { try { Method method = webStat.getClass().getMethod("getSessionStatData", String.class); - Object obj = method.invoke(webStat); + Object obj = method.invoke(webStat, sessionId); return (Map) obj; } catch (Exception e) { LOG.error("getSessionStatData error", e); @@ -98,7 +98,7 @@ public class WebAppStatUtils { try { Method method = webStat.getClass().getMethod("getURIStatData", String.class); - Object obj = method.invoke(webStat); + Object obj = method.invoke(webStat, uri); return (Map) obj; } catch (Exception e) { LOG.error("getURIStatData error", e);