Hi there
I have setup the monitor kit 1.03 on a windows machine and have started the server (I had to remove the -j option to make the server run).
Now I run the EHCache client program which gives the following exception:
Code:
Exception in thread "CounterManagerImpl Timer" java.lang.NoSuchMethodError: net.sf.ehcache.Ehcache.getStatistics()Lnet/sf/ehcache/Statistics;
at org.terracotta.ehcachedx.monitor.probe.SampledCacheStatistics$4.call(SampledCacheStatistics.java:113)
at org.terracotta.ehcachedx.monitor.probe.SampledCacheStatistics$4.call(SampledCacheStatistics.java:111)
at org.terracotta.ehcachedx.monitor.probe.counter.sampled.PullSampledCounterImpl.recordSample(PullSampledCounterImpl.java:37)
at org.terracotta.ehcachedx.monitor.probe.counter.sampled.SampledCounterImpl$1.run(SampledCounterImpl.java:28)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Exception in thread "main" net.sf.ehcache.CacheException: java.lang.IllegalStateException: Timer already cancelled.
at net.sf.ehcache.CacheManager.init(CacheManager.java:423)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:290)
at textanalyzer.Main.main(Main.java:237)
Caused by: java.lang.IllegalStateException: Timer already cancelled.
at java.util.Timer.sched(Unknown Source)
at java.util.Timer.schedule(Unknown Source)
at org.terracotta.ehcachedx.monitor.probe.counter.CounterManagerImpl.createCounter(CounterManagerImpl.java:36)
at org.terracotta.ehcachedx.monitor.probe.SampledCacheStatistics.<init>(SampledCacheStatistics.java:73)
at org.terracotta.ehcachedx.monitor.probe.CacheManagerService.registerCache(CacheManagerService.java:739)
at org.terracotta.ehcachedx.monitor.probe.ProbePeerListener.notifyCacheAdded(ProbePeerListener.java:108)
at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:159)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:1423)
at net.sf.ehcache.CacheManager.addConfiguredCaches(CacheManager.java:813)
at net.sf.ehcache.CacheManager.doInit(CacheManager.java:498)
at net.sf.ehcache.CacheManager.init(CacheManager.java:392)
... 2 more
How to make this work?
With regards,
Rune