• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • Terracotta Developer Console
  • kkannaiy
  • Reporter: teck
  • June 26, 2009
  • 0
  • Watchers: 1
  • February 12, 2013
  • June 29, 2009

Attachments

Description

I don’t have a lot of details on how to recreate this unfortunately, saw it at a customer site. The dev-console didn’t work for hibernate stats as a result. The full stack trace attached as a log file

java.lang.ClassCastException: org.terracotta.modules.hibernatecache.sra.HibernateCollectionsGlobalSRA cannot be cast to org.terracotta.modules.hibernatecache.sra.HibernateGeneralSRA at org.terracotta.modules.hibernatecache.jmx.HibernateStatsBean.registerHibernateStatisticsWithSRA(HibernateStatsBean.java:68) at org.terracotta.modules.hibernatecache.jmx.HibernateStatsBean.(HibernateStatsBean.java:44) at org.terracotta.modules.hibernatecache.instrumentation.HibernateStatisticsRegistration.register(HibernateStatisticsRegistration.java:46) at org.hibernate.stat.StatisticsImpl.(TerracottaStatisticsImpl.java:42) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:169) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)

Comments

Geert Bevin 2009-06-29

r16836 in trunk

Fiona OShea 2009-06-29

shouldn’t this be in 3.1 branch as well?

  • Or are we waiting for a monkey run?

Geert Bevin 2009-06-29

It’s in both :-)

r16834 in 3.1 branch r16836 in trunk

Fiona OShea 2009-06-29

Thanks:) I’m having issues syncing my projects/ directories today so can’t review myself. And obviously didn’t read the jira info properly.

Kalai Kannaiyan 2009-08-13

verified with Terracotta 3.1.0-SNAPSHOT, as of 20090812-140815 (Revision 13403 by cruise@su10mo4 from 3.1) with h2lcperf, hibernate stats is working fine as expected.