JDK-6806783 : Regression : NullPointerException comes to occur in 1.4.2_15 - 1.4.2_20
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 1.4.2_15
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2009-02-18
  • Updated: 2010-08-04
  • Resolved: 2009-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_21Resolved
Related Reports
Duplicate :  
Relates :  
Description
A Customer migrate to 1.4.2_15( or later).
They have found NullPointerException come to occur.

java.lang.NullPointerException
	at com.sun.jndi.dns.Resolver.query(Resolver.java:64)
	at com.sun.jndi.dns.Resolver.findSoa(Resolver.java:135)
	at com.sun.jndi.dns.DnsContext.isZoneCurrent(DnsContext.java:892)
	at com.sun.jndi.dns.DnsContext.getNameNode(DnsContext.java:806)
	at com.sun.jndi.dns.DnsContext.c_list(DnsContext.java:298)
	at com.sun.jndi.toolkit.ctx.ComponentContext.p_list(ComponentContext.java:555)
	at com.sun.jndi.toolkit.ctx.PartialCompositeContext.list(PartialCompositeContext.java:273)
	at com.sun.jndi.toolkit.ctx.PartialCompositeContext.list(PartialCompositeContext.java:262)
	at javax.naming.InitialContext.list(InitialContext.java:387)
	at TestNPE142.main(TestNPE142.java:74)


CONFIGURATION : 
 Solaris10/jdk1.4.2_15 - 1.4.2_20ea

NOTE : 
This exception did not occur in 1.4.2_14 and earlier.

REPRODUCE :
 1. Edit the attached TestNPE142.java for your environmet compile
    (IP address of DNS and domainname should be changed.)
 2. Edit the attached run3.csh and invoke.
    (JDK path should be changed.)

We can always reproduce.