Questions specific to Ehcache version 2, for general question about Ehcache use Ehcache tag
Questions tagged [ehcache-2]
41 questions
28
votes
8 answers
ehcache persist to disk issues
I want to do something with ehcache in Java that I think should be extremely simple, but I've spent enough time frustrating myself with the docs...
Write a value to a disk persistent cache. Shut down.
Start up again and read that value.
Here is my…

hross
- 3,633
- 2
- 27
- 31
4
votes
1 answer
Ehcache 2.10 Thread BLOCKED
Ehcache version
2.10.6
Once in a while, Ehcache servers are getting down because of the threads getting blocked. Please find below the details about the bucket configuration and thread details which are blocking each other.
There are multiple…

Holy_diver
- 377
- 1
- 15
4
votes
1 answer
How to create cache dynamically with spring ehcache abstraction
In ehcache-spring-annotations library available on google code, a configuration option "create-missing-caches" is available to create dynamic caches (cache not defined in ehcache.xml) on the fly. Is there a similar configuration available in pure…

Sudhir
- 1,339
- 2
- 15
- 36
3
votes
0 answers
WARN:Could not find a specific ehcache configuration for cache named message in Hibernate
Getting the warning message when deploying the application in server Jboss eap 7.1 - while starting the server below messages are shown in eclipse console log as like below,
WARN [org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory]…

Siva
- 43
- 1
- 2
- 8
3
votes
1 answer
SpringBoot + Hibernate + EHCache 2.X AbstractMethodError exception
I'm unable to configure a SpringBoot project with hibernate and EHCache 2.X. I'm trying to enable 2nd level cache of hibernate.
I'm using:
SpringBoot 1.5.9 RELEASE
Hibernate 5.2.13.Final
EHCache 2.X (imported by spring-boot-starter-cache…

aee
- 543
- 3
- 14
3
votes
1 answer
Hibernate 2nd level cache: Not able to evict
I am using Hibernate 4.1.7 and EhCache as second level cache. I am implementing a rest service to clear cahce (evict all regions ) as needed.
Below is code snippet
org.hibernate.stat.Statistics statistics =…

jprism
- 3,239
- 3
- 40
- 56
3
votes
2 answers
java.lang.annotation.IncompleteAnnotationException: org.terracotta.statistics.Statistic missing element type
My project have hibernate l2 cache and using ehcache for manage that with this configuration
hibernate.cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
After migrate to Spring boot 2 I get this exception
Caused…

ali akbar azizkhani
- 2,213
- 5
- 31
- 48
2
votes
1 answer
ehcache 2.x + spring boot not working
I am trying to apply ehcache on my spring boot application. Here is my code.
pom.xml
net.sf.ehcache
ehcache
…

Laodao
- 1,547
- 3
- 17
- 39
2
votes
2 answers
How to configure 2-level of hibernate entity cache via annotations properly
I want to configure 2nd level hibernate cache at Spring Boot microservice.
And I don't want to use xml at all.
Next is my example.
UserEntity.java
@Entity
@Table(name = "users")
@Cacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region =…

rvit34
- 1,967
- 3
- 17
- 33
2
votes
1 answer
ERROR Unable to set localhost. This prevents creation of a GUID. when using Ehcache in AWS lambda java code
Below is the error when I am using Ehcache 2 to cache one of the variable in Java code in AWS lambda. Does EhCache run on serverless Aws Lambda?
ERROR Unable to set localhost. This prevents creation of a GUID. Cause was: ip-10-22-209-10:…

Manoj4068
- 123
- 1
- 7
- 14
1
vote
1 answer
infinispan embedded Cache with Invalidation mode and putForExternalRead
We are running a cluster of 30+ servers with massive caching to improve our performance. We use Spring Boot. We have
hibernate 2LC replicated with invalidation mode
Local Application Caches without any clustering
and Application Caches with…

Janning Vygen
- 8,877
- 9
- 71
- 102
1
vote
0 answers
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.cache.ehcache.EhCacheFactoryBean
I am using the spring 3.2 version along with net.sf cache, but while doing mvn build I am getting NoClassDefFoundError for EhCacheFactoryBean, but I checked a similar class available in my classpath
below is my stack trace
Failed to load…

Harshini SG
- 11
- 3
1
vote
0 answers
Ehcache DiskStore object growing indefinitely
EhCache version: 2.8.4
JVM version: 11.0.7
Cache configuration:

Mike
- 33
- 3
1
vote
0 answers
Ehcache 3.8 Threads stuck in get
Payload size 291KB
Put = 500 Keys
Get = 40000 (on same 500 keys i.e 80 get for each keys) 50 threads
Put is fast
But get is dead slow
PUT STATS LongSummaryStatistics{count=500, sum=151, min=0, average=0.302000, max=41}
GET STATS…

Holy_diver
- 377
- 1
- 15
1
vote
1 answer
EhCache 3.8.1 BootstrapCacheLoader
I have a problem when using cache across different modules. At first, I was using Ehcache 2.10.6 so in my configuration ehcache.xml file I had something like this:

PanosMR
- 131
- 1
- 14