Open GoogleCodeExporter opened 8 years ago
It seems to be caused by transactionalMode="local" in your ehcache
configuration (ehcache.xml file). And it seems to me that this mode is quite
rare.
If javamelody needs to be changed, this may be to replace in the
CacheInformations constructor from:
final Statistics statistics = cache.getStatistics();
to:
final Statistics statistics;
if (cache.getCacheConfiguration().getTransactionalMode().isTransactional()) {
final TransactionController transactionController = cache.getCacheManager()
.getTransactionController();
transactionController.begin();
try {
statistics = cache.getStatistics();
} finally {
transactionController.commit();
}
} else {
statistics = cache.getStatistics();
}
but just when the ehcache version used is recent enough.
Original comment by evernat@free.fr
on 11 Apr 2014 at 9:02
The JavaMelody project has moved. Follow this issue at
https://github.com/javamelody/javamelody/issues/402
Original comment by evernat@free.fr
on 12 Jul 2015 at 10:18
Original issue reported on code.google.com by
adigu...@gmail.com
on 11 Apr 2014 at 8:02