-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
BoundHashOperations referenced from a method is not visible from class loader #2772
Comments
Can you provide a reproducer? Attempting to reproduce failed with a Spring Boot 3 app: @Bean
CommandLineRunner clr(RedisTemplate<String, String> template) {
return args -> {
template.boundHashOps("my-key").entries();
};
} Please provide also the version number of Spring Boot and Spring Data Redis. |
Hey @mp911de Thanks for your quick response. Spring Boot : 3.1.2 It's failing here in first line where we call
|
Still cannot reproduce. Can you provide please a minimal reproducer? Using https://start.spring.io will get you started. |
Is this the full Stack Trace? I suspect not. Also, in what context is your Spring application running? Is this a Web application inside Apache Tomcat, Eclipse Jetty, or some other container environment? Are you using a custom What dependencies are on your Spring application classpath?
Are you by chance using Java's module system and modulepath? The jump from Spring Boot 2 to Spring Boot 3 also suggests that you moved from (possibly, as early as) Java 8 to minimally Java 17. Since this is not readily reproducible, it is unlikely to be a specific problem with Spring Data Redis, therefore a small, self-contained reproducer will help us help you. Thanks. |
NOTE: Upon closer inspection, given the "ETag" reference from your snippet of code above, I gather this is a Spring Web application. As such, you are at the mercy of your Servlet container's ClassLoader(s), most likely. |
As @mp911de did above, I also wrote a quick test class based on this issue for a sanity check. You can see the dependencies of my (test) classpath here along with the parent. This test passes as expected and I am using Spring Boot I also thought of 1 last thing... what Java Runtime Environment are you using? Hopefully you can reproduce this issue in a small, self-contained example/test. Here is a link from |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
This Exception Because CompletableFuture,Executor Paramters,Use ForkJoinPool https://stackoverflow.com/questions/49113207/completablefuture-forkjoinpool-set-class-loader I Use Custom Executor ThreadPool solve this exception |
Hello,
We moved from spring-boot 2 to spring boot 3 and upgraded the spring-data-redis. We are facing an issue with spring-data-redis 3.1.2 version with below error stack trace at runtime.
Below is the function we are trying to call
Any clue what is happening here at run-time ?
The text was updated successfully, but these errors were encountered: