What is "JDK_JAVA_OPTIONS=--add-opens" In wrapper.conf Used For
Publish Date: Jul 26, 2024
Description
Warn message "WARNING: An illegal reflective access operation has occurred" is noted when starting Mule Runtime on JDK version >= 9.
CAUSE
JDK version 9 or later is modularized and introduced many changes. This modularization is making access to JDK internal class illegal. More details can be found at
JDK migration page.
PRODUCTS AFFECTED
Mule Runtime runs on JDK 9 or later
Resolution
The following JDK options were added into Mule Runtime's wrapper.conf file to suppress the WARNING log as temporary mitigation.
For later JDK 11 versions such as JDK-11.0.17, the WARNING message could suggest some different JAVA OPTIONS. In that scenario, please adjust the set.JDK_JAVA_OPTIONS setting in wrapper.conf to match the JAVA OPTIONS suggested in the WARNING message. For example, for JDK-11.0.17, the settings need to be adjusted to the following: