Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2611

SaslUtils generates an illegal reflective access with jdk 11 and does not work with jdk 17

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.21
    • 4.2.18
    • None
    • False
    • None
    • False

    Description

      Hi,

      while using jgroups 4.x with SASL activated, we get this message with jdk 11:

       

      {{
      WARNING: Illegal reflective access by org.jgroups.auth.sasl.SaslUtils (file:/path/to/lib/jgroups-4.2.18.Final.jar) to constructor com.sun.security.sasl.ServerFactoryImpl()
      WARNING: Please consider reporting this to the maintainers of org.jgroups.auth.sasl.SaslUtils
      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
      }}
       

      Despite this warning, it works properly.

      Now, since jdk 17 forbids illegal reflective access, jgroups 4.x failed with an IllegalArgumentException

      No SASL server factory for mech DIGEST-MD5

       

      I see that SASL have been removed in jgroups 5.x (JGRP-2377). Yet jgroups 4.x is used with a lot of other projects such as infinispan that claim to be jdk 17 compatible.

       

      So I was wondering if there's any plan to make jgroups 4.x jdk 17 compatible ?

      This documentation explains how to instantiate a SASL server.

       

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-bban Bela Ban
              sylvererichard Sylvere Richard (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: