Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoSuchMethodError exception with spring-data-redis

Started getting the following exception, after upgrading release train to Kay-RELEASE of spring data.

Caused by: java.lang.NoSuchMethodError: org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V
at org.springframework.data.redis.connection.RedisStandaloneConfiguration.<init>(RedisStandaloneConfiguration.java:61)
at org.egov.infra.config.redis.RedisServerConfiguration.redisConnectionFactory(RedisServerConfiguration.java:86)
at org.egov.infra.config.redis.RedisServerConfiguration$$EnhancerBySpringCGLIB$$f89e20ba.CGLIB$redisConnectionFactory$1(<generated>)
at org.egov.infra.config.redis.RedisServerConfiguration$$EnhancerBySpringCGLIB$$f89e20ba$$FastClassBySpringCGLIB$$1ac62136.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)

Have double checked all the jars dependency and neither there is duplicate nor different versions of jars exist. I'm using spring 4.3.12.RELEASE

like image 491
Sreekanth Avatar asked Dec 11 '25 04:12

Sreekanth


1 Answers

spring-data Kay-RELEASE (aka 2.0.0) doesn't work with Spring v4.3.X <. It only works with springframework v 5.0.0 >.

like image 80
Sreekanth Avatar answered Dec 13 '25 20:12

Sreekanth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!