ehcache Questions

5

I'm trying to setup ehcache in my Spring boot application. I have the following ehcache.xml and configuration file: <?xml version="1.0" encoding="UTF-8"?> <config xmlns...
Garate asked 24/7, 2023 at 1:12

8

Solved

I am using 2nd level cache and query cache. May I know how to programmatically clear all caches ?
Cowgirl asked 17/3, 2010 at 9:31

8

I am getting an error intermittently when I build my Java project in Intellij. Internal caches are corrupted or have outdated format, forcing project rebuild: java.io.FileNotFoundException: C:\tar...
Manganite asked 20/10, 2013 at 17:24

6

Solved

I want to have @Cacheable annotation on method with no parameter. In that case, I use @Cacheable as follows @Cacheable(value="usercache", key = "mykey") public string sayHello(){ return "test" }...
Leotaleotard asked 28/10, 2015 at 5:13

4

Solved

I want to clear the cache using JAVA code. and for this goal I write this code: public void clearCache(){ CacheManager.getInstance().clearAll(); } is this code correct? and is there a way to...
Dybbuk asked 9/9, 2013 at 7:55

10

Solved

My error is : Exception in thread "main" java.lang.IllegalArgumentException: Cannot find cache named 'getActionsBycasId' for CacheableOperation[public java.util.List com.codinko.database.DataBaseC...
Declivity asked 19/1, 2015 at 8:7

7

Solved

I'm getting a no CacheManager bean found... But i have not tried to do anything with CacheManager! Here's my error! org.springframework.beans.factory.BeanCreationException: Error creating bean wi...
Outwards asked 18/7, 2014 at 2:43

3

I am initializing my cache in the following way: CacheManager cacheManager; cacheManager = CacheManagerBuilder.newCacheManagerBuilder().build(); cacheManager.init(); Cache<String, SmsMessageDt...
Disorient asked 26/9, 2016 at 13:9

3

Solved

I have problems with save some values in @Service method. My code: @Service(value = "SettingsService") public class SettingsService { ... public String getGlobalSettingsValue(Settings setting) {...
Peptone asked 22/8, 2016 at 5:59

4

Solved

I'm working with ehcache 2.5.4. I have an object that needs to be cached through out the day and refreshed with a new value at 00:00am every day. Currently with ehcache configurations I can only ...
Charissecharita asked 18/12, 2012 at 22:53

6

I tried to use EhCache 3.5 caching features in our web application based on Spring Boot 2/Spring Framework 5. I added EHCache dependency: <dependency> <groupId>org.ehcache</group...
Rodl asked 1/3, 2018 at 10:21

15

Solved

Spring cache is not working when calling cached method from another method of the same bean. Here is an example to explain my problem in clear way. Configuration: <cache:annotation-driven cac...
Terchie asked 3/6, 2013 at 14:51

2

Did anyone try to get hibernate-ehcache to work with latest Spring Boot 3 and hibernate 6? Taken from the last updates to the library (6.0.0-alpha7 with last update in 2021) this seems not to be co...
Menell asked 7/3, 2023 at 8:31

2

Solved

I have a similar problem which but sometimes it works. The error described only happens once in a while. I am using spring 3.2.5 and ehcache 2.6.5. Exception trace: org.springframework.expressio...
Subsequent asked 19/6, 2014 at 7:30

2

Solved

There was a config called maxBytesLocalHeap in Ehcache 2.x where we could enter a heap percentage value. I couldn't find an equivalent in 3.x, but there's nothing about deprecation in release notes...
Alphonse asked 17/10, 2022 at 13:58

1

Solved

I've looked through a lot of similar questions asked here but I'm still not able to find a solution so here's my issue: I'm trying to setup Ehcache on springboot. Spring 2.2.6.RELEASE Ehcache 3.8.1...
Maryannamaryanne asked 23/6, 2022 at 0:47

4

Solved

I am trying to load some context from an RSS feed and pass it as a cache to the client using ehcache library in spring. here is my code : import org.springframework.cache.annotation.Cacheable; @S...
Diplex asked 26/2, 2014 at 17:2

5

Solved

Getting java.net.SocketException when trying to start a multicast provider: 2013-09-11 11:45:44,204 [main] ERROR net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider: Error starting he...
Albright asked 11/9, 2013 at 17:0

5

Solved

Before you mark this as duplicate please read the question first. I've read all the stuff about this exception however it does not solve the issue for me. And I do get a slightly different exceptio...
Candlefish asked 22/2, 2013 at 10:7

3

Solved

I am using ehcache with Spring. Noticed the below error recently. Also the XSD file is missing now at http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.x...
Periodontics asked 12/5, 2016 at 15:15

1

Solved

In my pom i have ehcache 2 dependency <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>${ehcache.version}</version...
Gannie asked 19/4, 2022 at 20:43

2

Solved

In my application I use the hibernate-core-4.1.8 jar and would like to take an ehCache as 2nd level cache. The jar I am currently using is ehcache-core-2.5.0. I placed it in my WebContetn/WEB-INF/...
Cruise asked 14/12, 2012 at 16:14

3

Solved

I have a service with multiple methods and am attempting to cache them using Spring @Cacheable annotations. Everything works fine except I've found the methods with an array as a method parameter a...
Huonghupeh asked 1/8, 2013 at 17:57

5

Solved

I am using Spring3.1 in standalone Env. I am caching my entry using @Cachable annotation. Sometimes I need to iterate on the caching list in order to get specific value(not key). So I managed to ...
Weinreb asked 6/8, 2012 at 13:36

5

Solved

I am working with Spring and EhCache I have the following method @Override @Cacheable(value="products", key="#root.target.PRODUCTS") public Set<Product> findAll() { return new LinkedHashSe...
Soulsearching asked 24/7, 2014 at 18:7

© 2022 - 2024 — McMap. All rights reserved.