Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

NoSuchMethodError.RedisConnection.set([B[B)V #16

Closed
tangdu opened this issue Mar 13, 2018 · 4 comments
Closed

NoSuchMethodError.RedisConnection.set([B[B)V #16

tangdu opened this issue Mar 13, 2018 · 4 comments

Comments

@tangdu
Copy link

tangdu commented Mar 13, 2018

where use
Springboot 2.0.0.Release & spring-security-oauth2-autoconfigure 2.0.1.BUILD-SNAPSHOT
I think the problem is in lettuce

error mssaage is
Caused by: java.lang.NoSuchMethodError: org.springframework.data.redis.connection.RedisConnection.set([B[B)V at org.springframework.security.oauth2.provider.token.store.redis.RedisTokenStore.storeAccessToken(RedisTokenStore.java:160) at org.springframework.security.oauth2.provider.token.DefaultTokenServices.createAccessToken(DefaultTokenServices.java:122) at org.springframework.security.oauth2.provider.token.AbstractTokenGranter.getAccessToken(AbstractTokenGranter.java:70)

my code is
`
@Autowired
private RedisConnectionFactory redisConnectionFactory;

@bean
public TokenStore tokenStore() {
RedisTokenStore redisTokenStore = new RedisTokenStore(redisConnectionFactory);
redisTokenStore.setPrefix("user-token:");
return redisTokenStore;
}
`

@reith
Copy link

reith commented Apr 11, 2018

@tangdu did you have any progress in this?

@sis-yoshiday
Copy link

I'm not reporter but suspect it below issue.
spring-attic/spring-security-oauth#1230

And was fixed in spring-security-oauth2:2.3.2, released at APRIL 12, 2018

@jgrandja
Copy link
Contributor

@tangdu This has been resolved in the 2.3.2.RELEASE of spring-security-oauth2. See 1319 and 1335.

@jzheaux
Copy link
Contributor

jzheaux commented Oct 6, 2018

Hi, @ConnorLH, sorry you're having maven troubles. You can use mvn dependency:tree to see which dependency is wanting to bring in spring-security-oauth2.

This question is a bit better for StackOverflow, and I would recommend that you post there to get additional support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants