-
Notifications
You must be signed in to change notification settings - Fork 324
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
WARNING: sun.reflect.Reflection.getCallerClass is not supported. #1292
Comments
That's probably due to our shading configuration in regards to multi-release jars. See also https://stackoverflow.com/questions/53049346/is-log4j2-compatible-with-java-11 |
Thanks for reporting! |
This issue is still present in latest versions of the agent (1.28.x as of writing):
|
There are two issues
|
To add some context: log4j has two implementations for
We'd need to enhance One option would be to load the resources via a As the agent jar is added to the system class loader, we could also investigate whether delegating the resource lookup to the system class loader would work. |
After some more investigation, I don't think the Another issue is that we package the
But we should package it under the top-level
|
Fixes WARNING: sun.reflect.Reflection.getCallerClass is not supported closes elastic#1292
I think this is coming from the shaded log4j2:
The text was updated successfully, but these errors were encountered: