0 Replies Latest reply on Oct 21, 2013 8:41 AM by robert.hafner

    org.hibernate.cache.CacheException: org.jboss.cache.CacheException: failed to get global transaction

    robert.hafner

      Our application is using JBoss Cache (1.4.1.SP13) with JGroups (2.4.1-SP3) as a second level cache for Hibernate 3.2.6.ga. The application includes the JBoss Cache/JGroups/Hibernate jars in its WEB-INF/lib directory since we support a few different appservers. The application runs fine on JBoss 4.3 but when attempting to run the application on JBoss 5.1 the exception below occurs.  Looking at the JBoss Cache Compatibility Matrix found here (Compatibility - JBoss Community) it seems this combination of JBC/JGroups/Hibernate might not be supported on JBoss 5.1. Is this correct? If so, what is the best course of action to resolve this issue? Is it to upgrade the JBC to version 3.0.1, JGroups to version 2.6.7, and Hibernate to version 3.3 as that combination seems to be supported based upon the matrix?


      2013-10-17 16:52:09,648 [http-0.0.0.0-8080-7] DEBUG [sasadm] org.jboss.cache.interceptors.TxInterceptor - Finished local commit/rollback method for GlobalTransaction:<10.21.14.228:58236>:1658

      2013-10-17 16:52:09,648 [http-0.0.0.0-8080-7] DEBUG [sasadm] org.jboss.cache.interceptors.TxInterceptor - Finished commit phase

      2013-10-17 16:52:09,648 [http-0.0.0.0-8080-7] TRACE [sasadm] org.jboss.cache.interceptors.TxInterceptor - (10.21.14.228:58236) call on method [_get; id:26; Args: (/com/sas/workflow/engine/mediation/hibernate/HibProcess/com.sas.workflow.engine.mediation.hibernate.HibProcess#2292, item, true)]

      2013-10-17 16:52:09,648 [http-0.0.0.0-8080-7] DEBUG [sasadm] org.jboss.cache.interceptors.TxInterceptor -  local transaction exists - registering global tx if not present for Thread[http-0.0.0.0-8080-7,5,jboss]

      2013-10-17 16:52:09,648 [http-0.0.0.0-8080-7] TRACE [sasadm] org.jboss.cache.interceptors.TxInterceptor - Associated gtx in txTable is null

      2013-10-17 16:52:09,649 [http-0.0.0.0-8080-7] DEBUG [sasadm] org.jboss.cache.interceptors.TxInterceptor - Transaction TransactionImple < ac, BasicAction: a150ee4:e72f:52604a19:515 status: ActionStatus.ABORTED > is already registered.

      2013-10-17 16:52:09,690 [http-0.0.0.0-8080-7] DEBUG [sasadm] org.springframework.transaction.jta.JtaTransactionManager - Initiating transaction rollback

      org.hibernate.cache.CacheException: org.jboss.cache.CacheException: failed to get global transaction

        at org.hibernate.cache.OptimisticTreeCache.read(OptimisticTreeCache.java:111)

        at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:45)

        at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:159)

        at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)

        at org.hibernate.loader.Loader.doQuery(Loader.java:729)

        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)

        at org.hibernate.loader.Loader.loadCollectionSubselect(Loader.java:2066)

        at org.hibernate.loader.collection.SubselectOneToManyLoader.initialize(SubselectOneToManyLoader.java:58)

        at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)

        at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:63)

        at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1716)

        at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)

        at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)

        at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109)

        at org.hibernate.collection.PersistentSet.size(PersistentSet.java:139)

      ...

      Caused by: org.jboss.cache.CacheException: failed to get global transaction

        at org.jboss.cache.interceptors.OptimisticReplicationInterceptor.invoke(OptimisticReplicationInterceptor.java:74)

        at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)

        at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:379)

        at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:174)

        at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)

        at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:138)

        at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5934)

        at org.jboss.cache.TreeCache.get(TreeCache.java:3656)

        at org.jboss.cache.TreeCache.get(TreeCache.java:3637)

        at org.hibernate.cache.OptimisticTreeCache.read(OptimisticTreeCache.java:108)