Skip to content

After upgrade to Spring Boot 3.5.0 java.lang.NoSuchMethodError: 'redis.clients.jedis.params.BaseSetExParams redis.clients.jedis.params.SetParams.px(long)' is raised when TTL is set #3165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trcoelho opened this issue Jun 2, 2025 · 1 comment
Labels
for: external-project For an external project and not something we can fix

Comments

@trcoelho
Copy link

trcoelho commented Jun 2, 2025

Hello!

After upgrading to Spring Boot 3.5.0, following exception occurs:

java.lang.NoSuchMethodError: 'redis.clients.jedis.params.BaseSetExParams redis.clients.jedis.params.SetParams.px(long)'

When spring.cache.redis.time-to-live propertie is set even in configuration:

@Bean RedisCacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) { RedisCacheConfiguration cacheConfig = RedisCacheConfiguration.defaultCacheConfig().entryTtl(Duration.ofSeconds(1500)).disableCachingNullValues(); return RedisCacheManager.builder(redisConnectionFactory).cacheDefaults(cacheConfig).build(); }

Looks like if you force:

<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency>

to version 6.0.0 it got solved,

Any updates or other workaround to solve it?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 2, 2025
@mp911de
Copy link
Member

mp911de commented Jun 3, 2025

This is a Boot issue to be fixed with Spring Boot 3.5.1: spring-projects/spring-boot#45669

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2025
@mp911de mp911de added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

3 participants