7.2-RC2 issue with redis com.redis.lettucemod.StatefulRedisModulesConnectionImpl and io.lettuce.core.StatefulRedisConnectionImpl

92 views
Skip to first unread message

Frédéric Dussurget

unread,
Nov 4, 2024, 5:05:43 AM11/4/24
to CAS Community
Hi,
from cas-overlay-template 7.2.0-RC2 , server does not start, I've got an issue with compatible versions of the classes com.redis.lettucemod.StatefulRedisModulesConnectionImpl and io.lettuce.core.StatefulRedisConnectionImpl
regards,


I'm using "redis for everything", here is the context :

cas version=7.2.0-RC2
implementation "org.apereo.cas:cas-server-support-redis-ticket-registry"
implementation "org.apereo.cas:cas-server-support-redis-service-registry"
implementation "org.apereo.cas:cas-server-support-gauth-redis"
implementation "org.apereo.cas:cas-server-support-webauthn-redis"
implementation "org.apereo.cas:cas-server-support-trusted-mfa-redis"

log error :

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.redis.lettucemod.StatefulRedisModulesConnectionImpl.<init>(StatefulRedisModulesConnectionImpl.java:41)

The following method did not exist:

    'void io.lettuce.core.StatefulRedisConnectionImpl.<init>(io.lettuce.core.RedisChannelWriter, io.lettuce.core.protocol.PushHandler, io.lettuce.core.codec.RedisCodec, java.time.Duration)'

The calling method's class, com.redis.lettucemod.StatefulRedisModulesConnectionImpl, was loaded from the following location:

    jar:file:/opt/tomcat/webapps/cas/WEB-INF/lib/lettucemod-4.1.2.jar!/com/redis/lettucemod/StatefulRedisModulesConnectionImpl.class

The called method's class, io.lettuce.core.StatefulRedisConnectionImpl, is available from the following locations:

    jar:file:/opt/tomcat/webapps/cas/WEB-INF/lib/lettuce-core-6.5.0.RELEASE.jar!/io/lettuce/core/StatefulRedisConnectionImpl.class

The called method's class hierarchy was loaded from the following locations:

    io.lettuce.core.StatefulRedisConnectionImpl: file:/opt/tomcat/webapps/cas/WEB-INF/lib/lettuce-core-6.5.0.RELEASE.jar
    io.lettuce.core.RedisChannelHandler: file:/opt/tomcat/webapps/cas/WEB-INF/lib/lettuce-core-6.5.0.RELEASE.jar


Action:

Correct the classpath of your application so that it contains compatible versions of the classes com.redis.lettucemod.StatefulRedisModulesConnectionImpl and io.lettuce.core.StatefulRedisConnectionImpl

Matthew Gordon

unread,
Feb 19, 2025, 10:10:08 AM2/19/25
to CAS Community, Frédéric Dussurget
I am seeing the same thing. Seems to be Redis specific. Did you happen to make any progress on this?

Thank you,
Matt

Frédéric Dussurget

unread,
Feb 21, 2025, 11:13:27 AM2/21/25
to CAS Community, Matthew Gordon, Frédéric Dussurget
Hi Matthew,
I did just a little step forward, adding a dependancy, have a look here : https://groups.google.com/a/apereo.org/g/cas-user/c/jbCURSYjNHA
I'm still stuck at this time
Regards
Reply all
Reply to author
Forward
0 new messages