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
on JDK 11 - WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/.../spring-core/4.3.22.RELEASE/spring-core-4.3.22.RELEASE.jar) #22674
Comments
This is just a warning that appears on JDK 9+, caused by the use of internal JDK API in CGLIB. You may safely ignore this for the time being; a Spring Framework 4.3 based application will nevertheless run fine. For full JDK 9+ support, please upgrade to Spring Framework 5.1+ / Spring Boot 2.1+. |
This warning has been on JDK 8 u201 |
Seriously, on a recent JDK 8 update? Could you please double-check that? This is only known to appear on JDK 9+ against the new module system foundation there. In any case, those warnings will only disappear as of Spring Framework 5.1+. The alternative way of defining classes on JDK 9+ is quite involved and comes with side effects, so we are not going to backport it. With 4.3.x and 5.0.x, it's safe to ignore those warnings anyway, as far as we're aware. |
OK, I will do |
OS Windows 10 |
@paulvi |
Indeed, my wrong: while a have Java 8 on path, and have been using it for all projects, The good news is that after using JDK 11 for a day, I have not noticed any other issues. |
@paulvi, thanks for the feedback. |
OS Windows 10, jdk-11.0.5, Spring boot 2.2.1,spring-core/5.2.1.RELEASE, I noticed stille has:WARNING: An illegal reflective access operation has occurred |
@cy503328434 |
I am experiencing this warning on MacOS Catalina, oracle JDK11, spring 5.1.6 and spring boot 2.1.10 |
|
I'm getting the same on spring-core-5.1.10 with jdk 11. This should be reopened. |
same warning on openjdk64-11.0.2, spring-core-5.2.2.RELEASE.jar, spring boot 2.2.2.RELEASE |
Same issue Windows 10, jdk-11.0.3, spring-boot 2.0.6.Release, spring-core 5.0.10.RELEASE |
Same Issue Windows 10 Prof., openjdk-12.0.2, spring-boot 2.1.4, openjfx 13 |
Same, Mac OS Mojave . openjdk 11.0.6 2020-01-14. spring boot 2.2.4.RELEASE |
Same here (Spring Boot 2.2.4, OpenJDK 11, Alpine): How many repeated reports are necessary to re-open the error, @jhoeller? |
Same on Windows 10 with Oracle JDK 11.0.6 LTS
|
Everyone, sharing the warning is not very useful unfortunately as the warning alone is no indication that it is the same problem. Please review this comment. |
Please note that this warning can still happen on Spring Framework 5.1+ in case of certain ClassLoader scenarios and certain kinds of application classes to be proxied. The root of the problem is that there is no full replacement for the (non-public) As for the warning itself, as Stéphane mentioned, unfortunately it only indicates that Spring's CGLIB variant has been used for creating a class in a specific ClassLoader where |
This has just happened for me. |
Happening to me as well. |
Happening to me as well. |
@jhoeller Considering that there is now https://openjdk.java.net/jeps/396 which will replace this warning with an error (application will fail to start) are the plans on somehow fix the issue in all cases? This JEP doesn't yet have a target release, but both JDK 16 and 17 are likely. Or maybe report issue to JDK that |
Same issue |
Resolved for me after upgrade to Spring Boot 2.4.0. |
still the same error with Spring Boot 2.4.0 and adopt openJDK 15.0.1 under macOS BigSur 11.0.1 WARNING: An illegal reflective access operation has occurred |
I'm getting the same in JDK 11(adopt-openj9-11.0.9) |
same issue. Mac OS 10.15.7 / Spring Boot 2.4.1 openjdk version "11.0.9.1" 2020-11-04 |
A quick update: See my comment at #22814 (comment) - Please note that many scenarios are going to work ok even with An easy way out is also |
I just reproduced warnings on openjdk 11.0.10 without any additional dependencies, just by unpacking the simplest starter archive and adding simple configuration:
Probably this is related to the difficulties with proxying of JDK classes (java.lang.Object). |
Can also confirm this issue, if it helps this only started happening after adding Spring Integration (via the spring-boot-starter-integration starter -- version 5.4.2 according to effective POM) |
Occurred for me too, after I started to create a new class with
WARNING: An illegal reflective access operation has occurred JDK: azul-15.0.5 |
Error for Spring Boot 1.5.x (1.5.19.RELEASE, using the latest spring-core-4.3.22.RELEASE.jar)
I have not seen this error before within previous boot 1.5.17.RELEASE.
And frankly upgrade to the latest 1.5.19.RELEASE/spring-core-4.3.22.RELEASE.jar was maybe 1-2 weeks ago.
So why this error appeared?
ref #22019
The text was updated successfully, but these errors were encountered: