Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70484

Illegal reflection on URLClassLoader by Apache Felix warnings are logged on Java 11

    XMLWordPrintable

Details

    Description

      Issue Summary

      When using Jira >=8 on Java 11, a warning message is logged due to an illegal reflection operation by the Apache Felix Framework (org.apache.felix.framework) to method java.net.URLClassLoader.addURL

      The issue is tracked on Apache Felix at https://issues.apache.org/jira/browse/FELIX-5765

      Steps to Reproduce

      1. Start a Jira 8.5.2 instance on Java 11
      2. Observe the error messages in the startup logs (catalina.out)

      Expected Results

      No warnings are shown in the log

      Actual Results

      The below warning is shown in the catalina.out file:

          ___ Starting the JIRA Plugin System _________________
          
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/Users/allewellyn/jira/atlassian-jira-software-8.5.2-standalone/atlassian-jira/WEB-INF/lib/org.apache.felix.framework-5.6.12.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
      WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
      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
      

      There is no currently identified appreciable effect on Jira, but, there may be in a future release of Java (All illegal access operations will be denied in a future release)

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              vkovalskiy Vadym Kovalskiy
              allewellyn@atlassian.com Alex [Atlassian,PSE]
              Votes:
              33 Vote for this issue
              Watchers:
              52 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: