java.lang.ClassCastException: io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl cannot be cast to io.lettuce.core.api.StatefulRedisConnection at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(Le... #1900
Unanswered
sangeethaPrem
asked this question in
Q&A
Replies: 1 comment
-
This is not the Spring Data issue tracker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When I try to call the initConnection() on my clustered redis, i get the error java.lang.ClassCastException: io.lettuce.core.cluster.StatefulRedisClusterConnectionImpl cannot be cast to io.lettuce.core.api.StatefulRedisConnection
looking at the code it seems like the class cast is only for the StatefulRedisConnection, where as the validateConnection() supports both StatefulRedisConnection and StatefulRedisClusterConnection.
any one faced this before? on how to achieve this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions