IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: An illegal reflective access operation has occurred in cb-datagrid startup.out

EDR: An illegal reflective access operation has occurred in cb-datagrid startup.out

Environment

  • EDR Server: Version 7.0+

Symptoms

During startup of cb-datagrid there is a series of warnings logged in /var/log/cb/datagrid/startup.out:
WARNING: Hazelcast is starting in a Java modular environment (Java 9 and newer) but without proper access to required Java packages. Use additional Java arguments to provide Hazelcast access to Java internal API. The internal API access is used to get the best performance results. Arguments to be used:
 --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
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.hazelcast.internal.networking.nio.SelectorOptimizer (file:/usr/share/cb/datagrid/lib/hazelcast-all-3.12.13.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of com.hazelcast.internal.networking.nio.SelectorOptimizer
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

Cause

The hazelcast warnings indicate that there was a change in Java 9 and newer that generates a warning when a less restrictive access to Java packages is being utilized. EDR Server 7.x is utilizing Java 11.

Resolution

At this time, Java is only warning about this coding practice and not blocking any functionality, so the warnings are only informational and are not causing any adverse impact.

Additional Notes

In a future release of Java, it is possible that this would be blocked and would require a code change.

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎12-20-2023
Views:
232
Contributors