1

Starting with JRE8U25, our users are getting "the application has requested permission to establish connections to" errors with the IP address of any one of our DNS servers following it. I've seen other posts on the topic of this error, but non of them seem to apply (this is new with 8U25 so it's not the old 7U5 bug, nor is it going back to localhost).

There's just one piece of code that references DNS servers, and that's to find out which MX to use for sending mail. So, I know exactly where it's coming from, but I have no idea why it's worked fine for years only to fail now.

If it matters, this is a JWS/JNLP launched application. The problem is also quite intermittent. I've never seen it on my dev box, but some users see it multiple times a day (but not even every time the code is called to do the lookup).

Happens in this block:

    Hashtable<String, String> env = new Hashtable<>();
    env.put("java.naming.factory.initial","com.sun.jndi.dns.DnsContextFactory");
    DirContext ictx = new InitialDirContext( env );
    Attributes attrs = ictx.getAttributes("domain.com", new String[] { "MX" });
    Attribute attr = attrs.get( "MX" );
    NamingEnumeration en = attr.getAll();

Has there been a JNLP launch security change that I need to make?

Brian Knoblauch
  • 20,639
  • 15
  • 57
  • 92

0 Answers0