Java exception with openjdk 17

Thank you, as explained in that thread (While upgrading Jenkins to 2.426.2 I am getting below when connecting a node to the Jenkins server - #4 by mawinter69) adding this to JVM Options fixed my problem (we use an ssh connection):

--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED