"illegal reflective access operation"

Was upgrading our wiki, and noticed the following in catalina logs:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.converters.reflection.FieldDictionary (file:/usr/lib/xwiki/WEB-INF/lib/xstream-1.4.14.jar) to field java.util.Collections$UnmodifiableMap.serialVersionUID
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.converters.reflection.FieldDictionary
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

Sounds ominous. Something to be concerned about any time soon?
-Alan

It means you’re using Java 9+ with XWiki. This is fine but Java 9+ is just warning that in the future some code will stop working and that we need to fix it. In this case it’s coming from 3rd party lib we use.

If you don’t want to see these warnings you can start your JVM with the right parameters to not display them.

Nothing to be concerned of on your side.

Thanks

See Loading...