6 Replies Latest reply on Mar 24, 2006 5:09 PM by Brian Clements

    problem with JBossCache 1.2.3 with Hibernate 3.1

    Brian Clements Newbie

      I'm trying to use hibernate 3.1 with JBCache 1.2.3.

      I keep getting this error:
      java.lang.UnsupportedOperationException: TreeCache is a fully transactional cache: MY_REGION
      java.lang.UnsupportedOperationException: TreeCache is a fully transactional cache: MY_REGION
      java.lang.UnsupportedOperationException: TreeCache is a fully transactional cache: MY_REGION
      at org.hibernate.cache.TreeCache.unlock(TreeCache.java:137)
      at org.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:176)
      at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:153)
      at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
      at org.hibernate.loader.Loader.doQuery(Loader.java:717)
      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
      at org.hibernate.loader.Loader.loadEntity(Loader.java:1785)
      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:93)
      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:81)
      at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2730)
      at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:365)
      at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:346)
      at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
      at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
      at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListene



      In my hibernate.cfg.xml I'm using

      org.hibernate.cache.TreeCacheProvider

      And my treecache looks like this:
      ------------------------------------------------------------
      <?xml version="1.0" encoding="UTF-8"?>





      jboss:service=Naming
      jboss:service=TransactionManager

      org.jboss.cache.GenericTransactionManagerLookup
      REPEATABLE_READ
      REPL_ASYNC
      true
      0
      0

      true
      MOD-Catalog
      ...
      300000
      300000

      15000


      --------------------
      Any ideas?

      -Brian