i'm probably not the first encountering this issue...
# troubleshooting
a
i'm probably not the first encountering this issue while upgrading to Java 17 (Flink 1.18):
Copy code
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.lang.Object[] java.util.Arrays$ArrayList.a accessible: module java.base does not "opens java.util" to unnamed module
this happens in a unittest I've tried adding to
pom.xml
:
Copy code
<configuration>
    <argLine>--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</argLine>
  </configuration>
but it didn't change anything. What i'm missing ? thanks in advance !
n
Ours looks like this, maybe it helps:
<argLine>--add-opens java.base/java.time=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED</argLine>
a
hey @Nicholas Erasmus in which part of pom do you add those args ?
n
a
oh, thank you !
n
no prob πŸ™‚ hope you get it sorted
a
yep, works in this way