-
Notifications
You must be signed in to change notification settings - Fork 4k
MethodNotFoundException occurred while store token with redis #1230
Comments
update:
|
update |
@rieonke Thanks for updating with the solution on explicitly declaring the dependencies. I'm going to close this issue. |
@jgrandja . This issue still happening in Error : java.lang.NoSuchMethodError: org.springframework.data.redis.connection.RedisConnection.set([B[B)V |
same issue as @hardikbeladiya I believe it's because the RedisTokenStore compiled against RedisConnection with an old version ( actually spring-data-redis 1.5.0.RELEASE https://github.com/spring-projects/spring-security-oauth/blob/2.2.1.RELEASE/spring-security-oauth2/pom.xml) @rieonke a deprecated won't cause NoSuchMethodError |
@jgrandja. Same problem: org.springframework.security.oauth.boot org.springframework.data redis.clients java.lang.NoSuchMethodError:org.springframework.data.redis.connection.RedisConnection.set([B[B)V |
append more information. The signature of method |
update |
This issue happening in spring-security-oauth2-autoconfigure:2.0.0.RELEASE spring-data-redis:2.0.5.RELEASE redis.clients:jedis:2.9.0 |
spring-security-oauth2-autoconfigure:2.0.0.RELEASE spring-data-redis:2.0.5.RELEASE redis.clients:jedis:2.9.0 the same problem happened. re-compile spring-security-oauth2 by upgrading the spring-date-redis dependency version to 2.0.5.RELEASE |
I think this issue needs to be re-opened. As things stand org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.0.RELEASE does not work with Spring Boot 2.0 when using Redis to store tokens. As has already been noted above, the underlying problem is that
|
A fix is in process #1319 |
Same error still exists, my pom.xml below:
|
getting following error : java.lang.NoSuchMethodError: org.springframework.util.Assert.state(ZLjava/util/function/Supplier;)V if i commented spring-security-oauth2-autoconfigure , its working fine. I am trying to use this dependency in existing project. Please , help in solving the above issue |
@HarishKumarGudivada You are bringing in spring-security-oauth2-autoconfigure on a Boot 1.x project which will not work. For Boot 1.x the autoconfigure support is included in the Boot autoconfig. PS: In the future please create questions on StackOverflow and not on GitHub (especially not on a closed issue which may not be noticed) |
the exception was
Env:
Code throws which throws exception blow:
line 157
conn.set(accessKey, serializedAccessToken);
https://github.com/spring-projects/spring-security-oauth/blob/0c034e4dfac53c6f736a3d7e858bae37328e0fab/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/provider/token/store/redis/RedisTokenStore.java#L154-L163
The text was updated successfully, but these errors were encountered: