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 @xxxx
Reason
java.lang package not opened to the Flink module
Solution 1
In IntelliJ IDEA:
Run -> Edit Configurations -> Build and Run (Modify Options) -> Add VM Options
Debug
Running Java Program on IntelliJ IDEA
Issue
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 @xxxx
Reason
java.lang package not opened to the Flink module
Solution 1
In IntelliJ IDEA:
Run -> Edit Configurations -> Build and Run (Modify Options) -> Add VM Options
Apply -> OK
Solution 2
Change JDK to Java8
File -> Project Structure -> Project -> SDK -> choose 1.8
Run -> Edit Configurations -> Build and Run -> choose 1.8 and (Modify Options) -> Disable VM options