Registry crashed with "An illegal reflective access operation has occurred"`
See original GitHub issueRunning the latest version 2.2.3
with SQL storage and it seems that from time to time the application crashed with this exception:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jolokia.util.ClassUtil (file:/usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar) to constructor sun.security.x509.X500Name(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.jolokia.util.ClassUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Not sure how to debug this further.
Note that it was also happening with older version, like 2.0.1
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
An illegal reflective access operation has occurred when ...
An illegal reflective access operation has occurred when using Java 11 with ForgeRock products. Last updated Aug 18, 2022.
Read more >How to fix “an illegal reflective access operation has occurred”
In this article, we are going to show you what "an illegal reflective access operation has occurred" means and how to fix it....
Read more >Groovy - WARNING: An illegal reflective access operation has ...
I was fiddling with JDK 9, and I thought it was too far behind so I tried JDK 11, which made things even...
Read more >JAVA 11: "illegal reflective access" warning - gluegen - jogamp
Hi, at application run-time, when calling Platform.getOSAndArch() with a JAVA11 RTE (Oracle, OpenJDK) a warning is printed through StdErr:
Read more >Burp crashing after a few minutes
$ ./BurpSuitePro WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.gson.internal.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From a quick search, it seems that the error is related to the Java module system. The target of reflection must be exposed by the module. Found this issue https://github.com/rhuss/jolokia/issues/394
K8s node autoscaller was moving pods around nodes 😅 this were the only logs, hence my assumption.