Open GoogleCodeExporter opened 9 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
Original issue reported on code.google.com by
adigu...@gmail.com
on 11 Apr 2014 at 8:02