目录
使用jdk17启动flink1.15 报错:
java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java
.lang" to unnamed module @6e60f18
解决办法:启动参数添加add-opens,可以添加在flink-conf.yaml里的env.java.opts.xxx
,这里的配置可以在config.sh
脚本里找到
--add-opens java.base/sun.net.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
标签:lang,java,sun,module,base,opens
From: https://www.cnblogs.com/bingmous/p/17920062.html