-
Notifications
You must be signed in to change notification settings - Fork 38.5k
on JDK 11 - WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 #24548
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
Comments
@Felixoid, can you please provide a full stack trace showing the code path leading to the warning you encounter? |
Here's a warning from our tests:
Is it enough, or do you prefer me to provide something more? |
TL;DR: I'm trying to get a bigger picture of the exact use case that leads to this warning. That warning tells us that something called In other words, is it part of the Spring Framework (or a Spring portfolio project) that is creating the proxy, or is it an external library that is relying on Spring to create a proxy. Also, what is a proxy being created for -- a type from your application, or some other type? |
Potentially a duplicate of #23099 |
We get this warning during integration tests and I can't find a way to produce stack trace for this warning. I've found the test where it comes from, but can't paste it here because of NDA. The next snippet from build.gradle doesn't help:
We launch gradle with command |
As just mentioned in #22674 (comment), this is unfortunately much more involved than a simple "fixed" versus "not fixed". We did address the case that can be semantically adapted to the JDK 9+ |
Interestingly, I was playing around with several dependecies while choosing frameworks for a new project and I noticed that the warning also happens when you try to use org.joinfaces jsf-spring-boot-starter 4.1.4to enable use of JSF in a project that would also potentially incorporate latest PrimeFaces. Other details about the project would be that other than incorporating dependancies for PrimeFaces, PrimeFaces Extension and BootStrap, it is purely initialized from spring boot and runs JDK 13. Once you remove joinfaces, the warning also went away. So I would say that at least there is one of the culprits. Adding full list of used dependancies if someone wants to check it out as well: org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-data-jdbc org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-data-redis org.springframework.boot spring-boot-starter-mail org.springframework.boot spring-boot-starter-security org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-web-services
|
We have the issue only during the testing, and here's a list of our gradle test dependencies:
Maybe this would help |
I have an application using Java 11.0.6 When I added
Using --illegal-access=debug the stack trace is:
|
OpenJDK Runtime Environment (build 11.0.6.0.1+10-LTS-sapmachine)
In my case, it is apparently related to H2
|
Closing as a duplicate of #22674, see this comment for more details. |
I used this pom, and my problem dissapared
|
Report: Spring Boot: 2.3.1 WARNING: An illegal reflective access operation has occurred |
Hello. Issue #22674 was closed, but it still exists.
@jhoeller has mentioned, that it's fixed, but it obviously not.
The text was updated successfully, but these errors were encountered: