Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4501103

NPE thrown if RR type exceeds 35.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta3
    • sparc
    • solaris_7



      Name: ss24420 Date: 09/07/2001


       Customer writes:
          From: Nicolas LEHUEN <###@###.###>
          To: "'###@###.###'" <###@###.###>
          Subject: DNS Service Provider 1.2 Technology Preview 2 : Getting all attri
      butes on domain name 'fisystem.com' generates a NPE
          Date: Mon, 20 Aug 2001 17:48:10 +0200

          Hi,

          I am trying to use the DNS Service Provider 1.2 Technology Preview 2 in
          order to get MX records of domain names. This is a portion of my code :

          javax.naming.directory.Attributes
          attrsP=((javax.naming.directory.DirContext)dnsP.getInitialContext()).getAttr
          ibutes("fisystem.com",new String[] { "a", "mx" });

          This codes works allright, but if I try to get *all* attributes using the
          following code :

          javax.naming.directory.Attributes
          attrsP=((javax.naming.directory.DirContext)dnsP.getInitialContext()).getAttr
          ibutes("fisystem.com");

          I get the following exception :

          java.lang.NullPointerException
      at javax.naming.directory.BasicAttributes.get(Unknown Source)
      at com.sun.jndi.dns.DnsContext.rrsToAttrs(DnsContext.java:452)
      at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:320)
      at
          com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(Unknown Source)
      at
          com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown
          Source)
      at
          com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown
          Source)
      at
          com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(Unknown
          Source)
      at xsp.test.test_dns.handle(test_dns.java:120)
      <rest of the stack trace skipped since irrelevant to the problem>

          I suspect a problem with a DNS record in "fisystem.com" but my knowledge in
          the field is too limited to investigate further.

          My provider URL is "dns://10.75.3.23" (i.e. we use an internal DNS).

          Regards,

          Nicolas Lehuen
          Responsable R&D / Head of R&D
          UBICCO, the Multi-Access Software Vendor
          http://www.ubicco.com/
          mailto:###@###.###
      Bug End:

      ======================================================================

            sseligmasunw Scott Seligman (Inactive)
            sseligmasunw Scott Seligman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: