RHDG startup will show `WARNING: An illegal reflective access operation has occurred` if DNS_PING is used

Solution Verified - Updated -

Issue

  • If a RHDG image is started the logfile shows the following warning, what is the reason
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.infinispan.commons.util.Util (file:/opt/infinispan/lib/infinispan-commons-12.1.7.Final-redhat-00001.jar) to constructor com.sun.jndi.dns.DnsContextFactory()
WARNING: Please consider reporting this to the maintainers of org.infinispan.commons.util.Util
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
  • Can I ignore the WARNING: An illegal reflective access operation has occurred entry in my logfile?

Environment

  • Red Hat Data Grid (RHDG)
    • 8.2.x
  • Red Hat OpenShift Container Platform (OCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content