3 Replies Latest reply on Jul 30, 2007 2:25 PM by Calvin Chu

    java.lang.UnsupportedOperationException: TreeCache is a full

    Calvin Chu Newbie

      Trying to set up TreeCache for performance testing, and encountered the following error.

      Changed Hibernate to the latest release 3.2.4 sp1 and swapped in its associated treecache. Same error occurred under both JBOSS 4.0.5 and the latest 4.2.0.

      Changed Treecache to 1.4.1 sp3. The error persists. What could be the problem.

      Ehcache worked fine in all scenarios.

      java.lang.UnsupportedOperationException: TreeCache is a fully transactional cache: hibernate.test.com.kin.site.domain.Person
      at org.hibernate.cache.TreeCache.unlock(TreeCache.java:147)
      at org.hibernate.cache.ReadWriteCache.put(ReadWriteCache.java:176)
      at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:156)
      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:1784)
      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
      at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
      at org.hibernate.loader.entity.BatchingEntityLoader.load(BatchingEntityLoader.java:82)
      at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:2977)
      at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:393)
      at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:374)
      at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:137)
      at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:193)
      at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
      at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:815)
      at org.hibernate.impl.SessionImpl.get(SessionImpl.java:808)
      at org.h2uow.persistence.hibernate.SessionDecorator.get(SessionDecorator.java:241)