sermant-io / Sermant

CNCF sandbox project, a Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.25k stars 164 forks source link

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 closed 5 months ago

PerforMance308 commented 6 months ago

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?

lilai23 commented 6 months ago

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 commented 5 months ago

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