- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    None
- 
        b10
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8343596 | 17.0.15-oracle | Md Shahbaz Yusuf | P4 | Resolved | Fixed | b01 | 
| JDK-8345454 | 17.0.15 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 | 
| JDK-8343595 | 11.0.27-oracle | Md Shahbaz Yusuf | P4 | Resolved | Fixed | b01 | 
These two tests fail occasionally:
test/jdk/javax/management/security/HashedPasswordFileTest.java
test/jdk/javax/management/MBeanServer/ExceptionTest.java
e.g an NPE in HashedPasswordFileTest at line 220: cs.stop()
Stopping the JMXConnectorServer, but cs is null.
testClearTextPasswordFile and other tests call createServerSide() which would set cs from a call to newJMConnectorServer().
cs is a private variable and is never set to null, so the first test is testClearTextPasswordFile and it fails to set it.
The other tests then go on to pass.
createServerSide() must have thrown an exception, to avoid setting cs, but no exception is visible in the log.
Ah, testClearTextPasswordFile must call createServerSide and get an exception, but it calls cs.stop() in a finally block, so hits the NPE before we see the exception.
Test needs an update to not hit an NPE before showing its Exception.
- backported by
- 
                    JDK-8343595 HashedPasswordFileTest.java and ExceptionTest.java can fail with java.lang.NullPointerException -           
- Resolved
 
-         
- 
                    JDK-8343596 HashedPasswordFileTest.java and ExceptionTest.java can fail with java.lang.NullPointerException -           
- Resolved
 
-         
- 
                    JDK-8345454 HashedPasswordFileTest.java and ExceptionTest.java can fail with java.lang.NullPointerException -           
- Resolved
 
-         
- links to
- 
                     Commit
        openjdk/jdk/04f30185 Commit
        openjdk/jdk/04f30185
- 
                     Commit(master)
        openjdk/jdk17u-dev/be22b1a8 Commit(master)
        openjdk/jdk17u-dev/be22b1a8
- 
                     Review
        openjdk/jdk/11881 Review
        openjdk/jdk/11881
- 
                     Review(master)
        openjdk/jdk17u-dev/3083 Review(master)
        openjdk/jdk17u-dev/3083