JDK-8241130 : com.sun.jndi.ldap.EventSupport.removeDeadNotifier: java.lang.NullPointerException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.naming
  • Affected Version: 11,15
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-03-18
  • Updated: 2020-09-01
  • Resolved: 2020-03-20
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.
JDK 11 JDK 15
11.0.10-oracleFixed 15 b16Fixed
Related Reports
Relates :  
Description
This is a follow up item which related to JDK-8202117. When test the fix for JDK-8202117, intermittent failure with java.lang.NullPointerException been observed, that exposed another bug in com.sun.jndi.ldap.EventSupport, create separated bug to track here since it's a different issue

use the same test com/sun/jndi/ldap/RemoveNamingListenerTest.java with JDK-8202117 fix patch http://mail.openjdk.java.net/pipermail/core-libs-dev/2020-March/065270.html

----------System.out:(1/15)----------
Test run OK!!!
----------System.err:(28/1638)----------
Mar 16, 2020 10:14:25 AM BaseLdapServer start
INFO: Starting server at port 63,593
Mar 16, 2020 10:14:25 AM BaseLdapServer acceptConnections
INFO: Server is accepting connections at port 63,593
Mar 16, 2020 10:14:25 AM BaseLdapServer acceptConnections
INFO: Accepted new connection at Socket[addr=/127.0.0.1,port=63594,localport=63593]
Mar 16, 2020 10:14:25 AM BaseLdapServer close
INFO: Stopping server at port 63,593
Mar 16, 2020 10:14:25 AM BaseLdapServer acceptConnections
INFO: Server stopped accepting connections at port 63,593
Mar 16, 2020 10:14:25 AM BaseLdapServer handleConnection
INFO: Connection Handler exit Socket closed
STATUS:Passed.
java.lang.NullPointerException
	at java.naming/com.sun.jndi.ldap.EventSupport.removeDeadNotifier(EventSupport.java:253)
	at java.naming/com.sun.jndi.ldap.NamingEventNotifier.run(NamingEventNotifier.java:180)
	at java.base/java.lang.Thread.run(Thread.java:832)
java.lang.NullPointerException
	at java.naming/com.sun.jndi.ldap.EventSupport.removeDeadNotifier(EventSupport.java:253)
	at java.naming/com.sun.jndi.ldap.NamingEventNotifier.run(NamingEventNotifier.java:180)
	at java.base/java.lang.Thread.run(Thread.java:832)
java.lang.NullPointerException
	at java.naming/com.sun.jndi.ldap.EventSupport.removeDeadNotifier(EventSupport.java:253)
	at java.naming/com.sun.jndi.ldap.NamingEventNotifier.run(NamingEventNotifier.java:180)
	at java.base/java.lang.Thread.run(Thread.java:832)
STATUS:Failed.`main' threw exception: java.lang.NullPointerException
STATUS:Failed.`main' threw exception: java.lang.NullPointerException
STATUS:Failed.`main' threw exception: java.lang.NullPointerException

...
result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException


test result: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
Comments
Fix request (11u) -- will label after testing completed. I would like to downport this because we see the described test failure. "8202117: com/sun/jndi/ldap/RemoveNamingListenerTest.java fails intermittently: Connection reset" that causes this failure was downporte to 11.0.9. Applies clean except for Copyright.
28-08-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/b96911696f71 User: xyin Date: 2020-03-20 02:26:32 +0000
20-03-2020

RFR: http://mail.openjdk.java.net/pipermail/core-libs-dev/2020-March/065310.html
18-03-2020