Warn message "WARNING: An illegal reflective access operation has occurred" is noted when starting Mule Runtime on JDK version >= 9.
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.
Mule Runtime runs on JDK 9 or later
The following JDK options were added into Mule Runtime's wrapper.conf file to suppress the WARNING log as temporary mitigation.
set.JDK_JAVA_OPTIONS=--add-opens java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.desktop/java.beans=ALL-UNNAMED
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:
set.JDK_JAVA_OPTIONS=--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED
001119252

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.