[
https://issues.apache.org/jira/browse/IGNITE-19645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Korotkov updated IGNITE-19645:
-------------------------------------
Description:
Currently the following runtime warnings are printed to console by command line
utilities like ignite.sh or control.sh if used with JDK11:
{noformat}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.apache.ignite.internal.util.GridUnsafe$2
(file:/opt/ignite/libs/ignite-core-2.15.0.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of
org.apache.ignite.internal.util.GridUnsafe$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
{noformat}
{noformat}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker
(file:/opt/ignite-dev/modules/core/target/classes/) to field
sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of
org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
{noformat}
Other such warnings are suppressed by the corresponding _--add-opens_ JVM
options in the {{bin/include/jvmdefaults.sh}} (and
{{{}bin/include/jvmdefaults.bat{}}}) files. But not these ones.
Warning needs to be suppressed by the JVM options like
_--add-opens=java.base/java.nio=ALL-UNNAMED_
_--add-opens=java.base/sun.nio.ch=ALL-UNNAMED_
was:
Currently the following runtime warnings are printed to console by command line
utilities like ignite.sh or control.sh if used with JDK11:
{noformat}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.apache.ignite.internal.util.GridUnsafe$2
(file:/opt/ignite/libs/ignite-core-2.15.0.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of
org.apache.ignite.internal.util.GridUnsafe$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflective access operations
WARNING: All illegal access operations will be denied in a future release
{noformat}
Other such warnings are suppressed by the corresponding _--add-opens_ JVM
options in the {{bin/include/jvmdefaults.sh}} (and
{{{}bin/include/jvmdefaults.bat{}}}) files. But not this one.
Warning needs to be suppressed by the
_--add-opens=java.base/java.nio=ALL-UNNAMED_ JVM option.
> Suppress an illegal reflective access runtime warning for JDK11
> ---------------------------------------------------------------
>
> Key: IGNITE-19645
> URL: https://issues.apache.org/jira/browse/IGNITE-19645
> Project: Ignite
> Issue Type: Task
> Reporter: Sergey Korotkov
> Assignee: Sergey Korotkov
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Currently the following runtime warnings are printed to console by command
> line utilities like ignite.sh or control.sh if used with JDK11:
>
> {noformat}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.apache.ignite.internal.util.GridUnsafe$2
> (file:/opt/ignite/libs/ignite-core-2.15.0.jar) to field
> java.nio.Buffer.address
> WARNING: Please consider reporting this to the maintainers of
> org.apache.ignite.internal.util.GridUnsafe$2
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> {noformat}
>
> {noformat}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by
> org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker
> (file:/opt/ignite-dev/modules/core/target/classes/) to field
> sun.nio.ch.SelectorImpl.selectedKeys
> WARNING: Please consider reporting this to the maintainers of
> org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: All illegal access operations will be denied in a future release
> {noformat}
> Other such warnings are suppressed by the corresponding _--add-opens_ JVM
> options in the {{bin/include/jvmdefaults.sh}} (and
> {{{}bin/include/jvmdefaults.bat{}}}) files. But not these ones.
> Warning needs to be suppressed by the JVM options like
> _--add-opens=java.base/java.nio=ALL-UNNAMED_
> _--add-opens=java.base/sun.nio.ch=ALL-UNNAMED_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)