When using Bitbucket Server 6.x with OpenJDK 11, there are warnings on Hazelcast both on the application and launcher logs.
Steps to Reproduce
- Install OpenJDK 11
- Install Bitbucket 6.8.0
- Ensure that Bitbucket is using this OpenJDK 11
- Start Bitbucket Server
- Check atlassian-bitbucket.log and launcher.log
Hazecast should be working with OpenJDK 11. Thus, the warning message should not be produced.
The below warning message is shown on atlassian-bitbucket.log:
2019-11-26 14:41:54,706 WARN [spring-startup] c.h.i.HazelcastInstanceFactory 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
The below warning is shown on launcher.log:
WARNING: Illegal reflective access by com.hazelcast.internal.networking.nio.SelectorOptimizer (jar:file:/opt/atlassian/bitbucket/bitbucket/app/WEB-INF/lib/hazelcast-3.11.1.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
No workaround available. However, these warnings are completely safe to ignore.