"WARNING: An illegal reflective access operation has occurred" on startup

Description

On starting Lucee with Java 11, the following warning appears:

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/usr/local/tomcat/lucee/lucee.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

I'm using the offical Lucee dockerfiles.

relates to

Activity

Show:

Brad Wood 29 May 2019 at 20:59

This comes from the underlying Felix library and when I last pointed it out Micha said that it still wasn’t fixed even on the latest version of Felix. Based on what Felix is doing (adding custom URLs to a URLClassloader) I’m not sure Felix will be able to change that code until the JDK changes to allow what they need. So Lucee is stuck with this warning until Felix changes.

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Affects versions

Priority

Created 29 May 2019 at 20:56
Updated 24 August 2022 at 08:29
Resolved 24 August 2022 at 08:29

Flag notifications