Monitoring Statistics issues
(too old to reply)
2014-04-01 16:09:43 UTC
Hi,all. I want to get jersey resource statistics so I use monitoring statistics. But when I use monitoringStatisticsProvider.get().snapshot().getResourceClassStatistics() ,the map I got has little info. I debugged and found that in MonitoringStatisticsImpl.java resourceClassStatistics has all statistics info I need ,but after the code below classStats has little info with "unable to evaluate the expression Method threw 'java.lang.NullPointerException' exception." in debug window.

Map<Class<?>, ResourceStatistics> classStats = Collections.unmodifiableMap(Maps.transformValues(this.resourceClassStatistics,buildingFunction));

Any one can help me ?

Thanks very much.