在将EhCache v2.4.5配置为hibernate v3.6.7的二级缓存后,我在尝试使用hibernate会话加载特定实体的所有对象时出现以下错误。(第一次加载对象没有错误)
java.lang.IllegalStateException: The country Cache is not alive.
at net.sf.ehcache.Cache.checkStatus(Cache.java:2438)
at net.sf.ehcache.Cache.get(Cache.java:1541)
at net.sf.ehcache.hibernate.regions.EhcacheTr
我试图升级一个Spring/Hibernate应用程序,使用EhCache 2.6.8 (从2.3.1)作为二级缓存。
我已经更新了我的pom以使用新版本,修改了ehcache.xml以使用一些新的属性(按字节来调整缓存大小,而不是元素),并且它编译和构建ok。但是,当它试图访问缓存时,我得到了这个NPE:
java.lang.NullPointerException at net.sf.ehcache.Cache.isKeyInCache(Cache.java:3034)
at net.sf.ehcache.hibernate.regions.EhcacheDataRegion.conta
...my的问题是,使用这种配置,我是否需要“启动”ehcache?如果是,怎么做?它是一个迷宫,通过库依赖,例如需要hibernate-ehcache和ehcache?需要hibernate-jcache?以下是调试3天后退出tomcat 9标准的最后错误:
... 93 common frames omitted
aused by: java.lang.IllegalStateException: Cache provider not started
at org.hibernate.cache.spi.AbstractRegionFactory.verifyS
我正在尝试在spring-boot 1.5.1中实现hibernate二级缓存。面对下面的错误
Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory
在运行running引导应用程序时,我得到了下面的异常。
Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given; please either disable second level cache or set correct region factory using the hibernate.cache.region.factory_class setting and make sure the second level cac
我正在尝试用ehcache实现hibernate集群二级缓存,使用JMS复制。Hibernate版本是3.6.10.final,spring版本是3.2.2。
当servlet启动时,我得到以下错误:
Caused by: org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Failure cloning default cache. Initial cause was not supported
at net.sf.ehcache.hibernate.AbstractEhcacheProvider.buildC
尝试将hibernate与我的web应用程序一起使用时,出现以下异常:
Initial SessionFactory creation failed.org.hibernate.HibernateException: could not
instantiate RegionFactory [org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory]
org.hibernate.HibernateException: could not instantiate RegionFactory
[org.hibernate.cache.eh
我使用Spring3.2和hibernate 4.2.8,并尝试使用ehcache,但是当我用@Cache(org.hibernate.annotations.Cache)注释实体类时,我得到了以下异常
Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is not given, please either di