We are unable to run the spring boot application.
Error –
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 @72a2312e
spring-boot-starter-parent – 3.2.5
pulsar-client-original – 3.2.2
jdk 17
We tried adding VM args –
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/sun.net=ALL-UNNAMED
Still Application failed to start.
Expected- Application must start.