Skip to content

Spring Boot 3.5's dependency management should have been upgraded to Jedis 6.0.0 #45669

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
oyvindhorneland opened this issue May 26, 2025 · 2 comments
Assignees
Labels
status: noteworthy A noteworthy issue to call out in the release notes type: bug A general bug
Milestone

Comments

@oyvindhorneland
Copy link

oyvindhorneland commented May 26, 2025

Spring Boot 3.5.0 with

  • spring-boot-starter-cache
  • spring-boot-starter-data-redis
  • jedis (replaces lettuce)

fails with NoSuchMethodError on method annotated with @Cacheable after upgrade from Spring Boot 3.4.5 to 3.5.0.

java.lang.NoSuchMethodError: 'redis.clients.jedis.params.BaseSetExParams redis.clients.jedis.params.SetParams.px(long)'
	at org.springframework.data.redis.connection.jedis.JedisConverters.toSetCommandExPxArgument(JedisConverters.java:378)
	at org.springframework.data.redis.connection.jedis.JedisClusterStringCommands.set(JedisClusterStringCommands.java:144)
	at org.springframework.data.redis.cache.DefaultRedisCacheWriter.doPut(DefaultRedisCacheWriter.java:247)
	at org.springframework.data.redis.cache.DefaultRedisCacheWriter.lambda$put$3(DefaultRedisCacheWriter.java:238)
	at org.springframework.data.redis.cache.DefaultRedisCacheWriter.execute(DefaultRedisCacheWriter.java:403)
	at org.springframework.data.redis.cache.DefaultRedisCacheWriter.put(DefaultRedisCacheWriter.java:237)
	at org.springframework.data.redis.cache.RedisCache.put(RedisCache.java:208)
	at org.springframework.cache.transaction.TransactionAwareCacheDecorator.put(TransactionAwareCacheDecorator.java:119)
	at org.springframework.cache.interceptor.AbstractCacheInvoker.doPut(AbstractCacheInvoker.java:157)
	at org.springframework.cache.interceptor.CacheAspectSupport$CachePutRequest.performCachePut(CacheAspectSupport.java:1087)
	at org.springframework.cache.interceptor.CacheAspectSupport$CachePutRequest.apply(CacheAspectSupport.java:1072)
	at org.springframework.cache.interceptor.CacheAspectSupport.evaluate(CacheAspectSupport.java:616)
	at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:448)
	at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:410)
	at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:65)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)

The issue seems to be related to spring-projects/spring-data-redis#3144.

Upgrading managed jedis version from default 5.2.0 to the latest 6.0.0 fixes the problem and at least in our case seems to work well.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 26, 2025
@m1ngyuan
Copy link

lettuce may also need to be upgraded spring-projects/spring-data-redis#3152

@snicoll
Copy link
Member

snicoll commented May 26, 2025

We indeed missed the Lettuce upgrade to 6.6.0 as well, I've created #45670.

@snicoll snicoll changed the title java.lang.NoSuchMethodError 'redis.clients.jedis.params.BaseSetExParams redis.clients.jedis.params.SetParams.px(long)' Spring Boot 3.5's dependency management should have been upgraded to Jedis 6.0.0 May 26, 2025
@snicoll snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels May 26, 2025
@snicoll snicoll self-assigned this May 26, 2025
@snicoll snicoll added this to the 3.5.1 milestone May 26, 2025
@snicoll snicoll added the status: noteworthy A noteworthy issue to call out in the release notes label May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: noteworthy A noteworthy issue to call out in the release notes type: bug A general bug
Projects
None yet
Development

No branches or pull requests

4 participants