question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Registry crashed with "An illegal reflective access operation has occurred"`

See original GitHub issue

Running 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsenkocommented, May 16, 2022

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

Tbh, Jolokia has not yet been ported to Java 11 (nor really tested). This is on the todo list, but currently, I’m buried under work so that this has no high priority for me at the moment.

1reaction
PlugaruTcommented, May 16, 2022

OK that’s good news (although we should still investigate that warning). What was the actual cause of the crash?? Now I’m super curious. 😃

K8s node autoscaller was moving pods around nodes 😅 this were the only logs, hence my assumption.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found