Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13724

[GSS](7.2.0) Requesting TRANSACTIONAL cache concurrency strategy but the cache is not configured as transactional.

    Details

    • Target Release:
    • Steps to Reproduce:
      Hide

      The following are configured in `hibernate.cfg.xml`

                      <property name="cache.region.factory_class">org.jboss.as.jpa.hibernate5.infinispan.InfinispanRegionFactory</property>
                      <property name="cache.infinispan.cachemanager">java:jboss/infinispan/container/hibernate</property>
                      <property name="cache.use_second_level_cache">true</property>
      

      An entity is marked with the annotation:

      import org.hibernate.annotations.Cache;
      import static org.hibernate.annotations.CacheConcurrencyStrategy.TRANSACTIONAL;
      
      @Entity
      @Cache(usage=TRANSACTIONAL)
      public class Employee ... {
          ...
      }
      
      Show
      The following are configured in `hibernate.cfg.xml` <property name= "cache.region.factory_class" >org.jboss.as.jpa.hibernate5.infinispan.InfinispanRegionFactory</property> <property name= "cache.infinispan.cachemanager" >java:jboss/infinispan/container/hibernate</property> <property name= "cache.use_second_level_cache" > true </property> An entity is marked with the annotation: import org.hibernate.annotations.Cache; import static org.hibernate.annotations.CacheConcurrencyStrategy.TRANSACTIONAL; @Entity @Cache(usage=TRANSACTIONAL) public class Employee ... { ... }
    • Affects:
      Release Notes

      Description

      When deploying a legacy (non-JPA) Hibernate application with level 2 cache enabled, the following WARN is logged:

      ... WARN  [org.hibernate.cache.infinispan.impl.BaseRegion] ... Requesting TRANSACTIONAL cache concurrency strategy but the cache is not configured as transactional.
      

        Gliffy Diagrams

          Attachments

          1. jboss-eap-7.2.log
            31 kB
          2. sample-app.zip
            21 kB
          3. wildfly-11.0.0.Final.log
            16 kB
          4. wildfly-12.0.0.Final.log
            20 kB

            Issue Links

              Activity

                People

                • Assignee:
                  tommaso-borgato Tommasso Borgato
                  Reporter:
                  stephen.fikes Stephen Fikes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: