sermant-io / Sermant

A Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.13k stars 143 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 days ago

PerforMance308 commented 1 week 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 1 week 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 15 hours ago

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