Closed
Description
When running the sample apps or during testing of the sanity app we see the following exception in the logs:
java.lang.IllegalAccessException: class org.apache.pulsar.common.util.netty.DnsResolverUtil cannot access class sun.net.InetAddressCachePolicy (in module java.base) because module java.base does not export sun.net to unnamed module @3d82c5f3
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) ~[na:na]
which is related to Java17 and add-opens.
Let's update this in the proper location to avoid this exception. Do we need to update this in the docs anywhere?