Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16559

Illegal XStream reflective access warning when starting XWiki on Java 11+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • 11.3, 11.4, 11.5
    • None
    • Windows 10 Pro 64 bit, IE11, using a local instance of XWiki 11.5, on MySQL 5.7 and HSQL 2.5.0 (tested on JAVA 11)
    • Unknown
    • N/A
    • N/A

    Description

      Preconditions: Have Java 11.0.3 installed and running.

      When starting a local instance of XWiki 11.5, some warnings are displayed in console:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/C:/ILIE%20LUCRU/XWIKI%2011.4/xwiki-platform-distribution-flavor-jetty-hsqldb-11.4%20STD%20JAVA%208/webapps/xwiki/WEB-INF/lib/xstream-1.4.11.1.jar) to field java.util.TreeMap.comparator
      WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
      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
      

      The warnings are not recorded in the log.

      I've tested and reproduced the issue also on XWiki 11.4 and 11.3.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: