Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-8146

WARNING: An illegal reflective access operation has occurred

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: clients, core
    • Labels:
      None
    • Environment:
      Java 11
      Kafka v2.1.1

      Description

      Hi,
      I am running Kafka v2.1.1 and see below warnings at the startup of server and clients. What is the cause of these warnings and how they can be avoided or fixed?

      Client side:
      WARNING: Illegal reflective access by org.apache.kafka.common.network.SaslChannelBuilder (file:/local/kafka/kafka_installation/kafka_2.12-2.1.1/libs/kafka-clients-2.1.1.jar) to method sun.security.krb5.Config.getInstance()
      WARNING: Please consider reporting this to the maintainers of org.apache.kafka.common.network.SaslChannelBuilder
      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

      Server side:
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.zookeeper.server.util.KerberosUtil (file:/local/kafka/kafka_installation/kafka_2.12-2.1.1/libs/zookeeper-3.4.13.jar) to method sun.security.krb5.Config.getInstance()
      WARNING: Please consider reporting this to the maintainers of org.apache.zookeeper.server.util.KerberosUtil
      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xabhi Abhi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: