[ http://jira.jboss.com/jira/browse/HIBERNATE-11?page=history ]
Steve Ebersole reassigned HIBERNATE-11: --------------------------------------- Assign To: Steve Ebersole (was: Gavin King) > DeployedTreeCacheProvider must be updated to support JBossCache 1.2.1 > --------------------------------------------------------------------- > > Key: HIBERNATE-11 > URL: http://jira.jboss.com/jira/browse/HIBERNATE-11 > Project: Hibernate > Type: Bug > Reporter: youngm > Assignee: Steve Ebersole > Attachments: hibernate-cache.diff > > > When retrieving JBossCache from JNDI DeployedTreeCacheProvider must cast the > returned instance to org.jboss.cache.TreeCacheMBean not > org.jboss.cache.TreeCache. > Mike > See stacktrace below: > 13:25:29,883 ERROR [Hibernate] Starting failed > jboss.har:service=am_data/HibernateFactory > net.sf.hibernate.HibernateException: Could not instantiate Cache > at > net.sf.hibernate.cfg.Configuration.configureCaches(Configuration.java:1138) > at > net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:795) > at > org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:583) > at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:551) > at > org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) > at > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) > at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) > at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) > at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) > at > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) > at > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:911) > at $Proxy0.start(Unknown Source) > at org.jboss.system.ServiceController.start(ServiceController.java:416) > at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) > at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) > at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) > at > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) > at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) > at $Proxy4.start(Unknown Source) > at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273) > at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964) > at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775) > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) > at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) > at > org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122) > at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) > at > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) > at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) > at > org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) > at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) > at $Proxy7.deploy(Unknown Source) > at > org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325) > at > org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:483) > at > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) > at > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215) > at > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194) > Caused by: net.sf.hibernate.cache.CacheException: > java.lang.ClassCastException: Object at 'cache/am_data' in context > {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces} > is not an instance of [class=org.jboss.cache.TreeCache [EMAIL PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2} interfaces={interface=org.jboss.cache.TreeCacheMBean [EMAIL > PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2}, interface=java.lang.Cloneable classloader=null, > interface=org.jgroups.MembershipListener [EMAIL PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2}}] object class is [class=$Proxy25 [EMAIL PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53774am_data_cache.sar > ,addedOrder=14} interfaces={interface=org.jboss.cache.TreeCacheMBean [EMAIL > PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2}}] > at > org.jboss.hibernate.cache.DeployedTreeCacheProvider.getOrLookupDeployedTreeCache(DeployedTreeCacheProvider.java:77) > at > org.jboss.hibernate.cache.DeployedTreeCacheProvider.buildCache(DeployedTreeCacheProvider.java:45) > at > net.sf.hibernate.cfg.Configuration.configureCaches(Configuration.java:1135) > ... 50 more > Caused by: java.lang.ClassCastException: Object at 'cache/am_data' in context > {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces} > is not an instance of [class=org.jboss.cache.TreeCache [EMAIL PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2} interfaces={interface=org.jboss.cache.TreeCacheMBean [EMAIL > PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2}, interface=java.lang.Cloneable classloader=null, > interface=org.jgroups.MembershipListener [EMAIL PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2}}] object class is [class=$Proxy25 [EMAIL PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53774am_data_cache.sar > ,addedOrder=14} interfaces={interface=org.jboss.cache.TreeCacheMBean [EMAIL > PROTECTED] > url=file:/C:/Projects/PointBlank3/dist/jboss/server/default/tmp/deploy/tmp53746jboss-service.xml > ,addedOrder=2}}] > at org.jboss.naming.Util.checkObject(Util.java:240) > at org.jboss.naming.Util.lookup(Util.java:199) > at org.jboss.naming.Util.lookup(Util.java:158) > at > org.jboss.hibernate.cache.DeployedTreeCacheProvider.lookupDeployedTreeCache(DeployedTreeCacheProvider.java:87) > at > org.jboss.hibernate.cache.DeployedTreeCacheProvider.getOrLookupDeployedTreeCache(DeployedTreeCacheProvider.java:67) > ... 52 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development