-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not generate CGLIB subclass of class io.lettuce.core.support.ConnectionPoolSupport$1 #843
Comments
What are you trying to achieve and why do you want to subclass an anonymous inner class? |
I am trying to create connection pool for redis connection.For creating connection pool I am using ConnectionPoolSupport of lettuce-core I want my GenericObjectPool to store pool of want to get StatefulRedisClusterConnection Object from this pool.
|
I'm not sure we can do something about this issue here. Care to post your boot config? Currently, we cannot see why Spring is trying to create a proxy around
|
So how do i proceed further please suggest any solution. |
Please provide a project that is able to reproduce the issue (Ideally using start.spring.io). Currently, we cannot see why Spring is trying to create a proxy around |
I have uploaded my project . please use redis host in application.properties |
Thanks a lot. Proxying happens because Proxying
|
Closing this one as we cannot do anything further here. |
Bug Report
Current Behavior
I am current using lettuce for the redis cache implementation.
Input Code
Tried to use connection pooling support for redis connection
but got this exception
Unable to register MBean [clusterConnection] with key 'clusterConnection'; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class io.lettuce.core.support.ConnectionPoolSupport$1: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
GenericObjectPool<StatefulRedisClusterConnection<String, Object>> pool = ConnectionPoolSupport
.createGenericObjectPool(()->clusterClient.connect(new SerializedObjectCodec()),genericPollConfig );
I was using this code for creating connection poll.
Please suggest some solution
The text was updated successfully, but these errors were encountered: