Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12069

Using OpenJDK 11 on Bitbucket 6.8.0 produce Warnings about Hazelcast running in a modular Java environment

    XMLWordPrintable

Details

    Description

      Issue Summary

      When using Bitbucket Server 6.x with OpenJDK 11, there are warnings on Hazelcast both on the application and launcher logs.

      Steps to Reproduce 

      1. Install OpenJDK 11
      2. Install Bitbucket 6.8.0
      3. Ensure that Bitbucket is using this OpenJDK 11
      4. Start Bitbucket Server
      5. Check atlassian-bitbucket.log and launcher.log

      Expected Results

      Hazecast should be working with OpenJDK 11. Thus, the warning message should not be produced.

      Actual Results

      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
      

      Workaround

      No workaround available. However, these warnings are completely safe to ignore.

      Attachments

        Issue Links

          Activity

            People

              behumphreys Ben Humphreys
              mmarini@atlassian.com Marini Marini (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: