-
Notifications
You must be signed in to change notification settings - Fork 782
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
cannot access a member of class org.springframework.cloud.sleuth.instrument.session.TraceSessionRepository #2267
Comments
Downgrading |
Can you please create a project on github or zip it and don't use lombok? That would be much easier to work with for us to test the problem. Thank you! |
Hi @marcingrzejszczak !
Repro
The issue disappears when I downgrade Spring Cloud to 2021.0.5
|
We also experienced this nasty bug, and a downgrade of |
@marcingrzejszczak: Thank you! |
Describe the bug
When calling deleteById on my class overriding SessionRepository, I get the Exception
java.lang.IllegalStateException: Could not access method or field: class org.springframework.util.ReflectionUtils cannot access a member of class org.springframework.cloud.sleuth.instrument.session.TraceSessionRepository with modifiers "public"
Stacktrace in next comment.
The code throwing the Exception was changed in #2264 in an attempt to fix #2246
Instead of fixing it, it just makes it worse.
Sample
Stacktrace:
Implement a custom session:
Implement a custom repository:
Implement an intelligent test session provider. Below is just the relevant code leading to the exception.
Extract from pom.xml :
The text was updated successfully, but these errors were encountered: