Skip to content
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

Unable to make protected java.lang.Object java.lang.ClassLoader.getClassLoadingLock(java.lang.String) accessible: module java.base does not "opens java.lang" to unnamed module #1511

Closed
PerforMance308 opened this issue May 8, 2024 · 2 comments
Labels
kind/question Further information is requested

Comments

@PerforMance308
Copy link

PerforMance308 commented May 8, 2024

What do you want to ask?

I was trying to use sermant-injector in K8S, and I get this error:

image

Sermant sersion: 1.4.0

any ideas?

@PerforMance308 PerforMance308 added the kind/question Further information is requested label May 8, 2024
@lilai23
Copy link
Collaborator

lilai23 commented May 9, 2024

you can try to add follow VM commands:
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/java.math=ALL-UNNAMED
--add-opens java.base/sun.net.www=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.http=ALL-UNNAMED

@hanbingleixue
Copy link
Collaborator

The solution has been provided. No other questions are replied. Therefore, this issue is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants