Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8199

Upgrade xstream to fix illegal reflective access warning on JDK 11

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      openjdk version "11.0.3" 2019-04-16
      OpenJDK Runtime Environment (build 11.0.3+1-Debian-1)
      OpenJDK 64-Bit Server VM (build 11.0.3+1-Debian-1, mixed mode, sharing)

      Description

      When you run a Statedump export on JDK 11, you get warnings about an illegal reflective access:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/home/pkdev/workspace/ejbca_trunk/dist/statedump/lib/xstream-1.4.9.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
      

      Check if there is a version of xstream that supports JDK 11 properly and upgrade.

      To reproduce, you can use these commands:

      ant statedump
      dist/statedump/statedump.sh export -l eca7422test
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            samuel Samuel Lidén Borell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified