JDK-8176354 : sun/security/ssl/X509KeyManager/PreferredKey.java failed with "Failed to get the preferable key aliases" error
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-03-08
  • Updated: 2017-12-22
  • Resolved: 2017-10-27
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 10
10 b30Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
sun/security/ssl/X509KeyManager/PreferredKey.java 

----------System.err:(13/840)----------
java.lang.Exception: Failed to get the preferable key aliases
	at PreferredKey.main(PreferredKey.java:106)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:547)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.base/java.lang.Thread.run(Thread.java:844)
Comments
The fix has been backed out because it caused DTLS tests to fail, please see JDK-8190333.
30-10-2017

Review request sent, webrev: http://cr.openjdk.java.net/~amjiang/8176354/webrev.00/
20-09-2017

Hi Amanda. I'm retargeting your fix toward 10 given JDK 9 timelines and priority for this test issue.
13-03-2017

This test is problem listed in jdk 9 via JDK-8176400. But it's showing up in 10. In principle the JDK 10 repo should be synchronized against JDK 9 repo.
10-03-2017

Test was failed because related certificate in keystore has been expired on 03/07/2017: Alias name: dummydsa Creation date: Mar 10, 2007 ................ Valid from: Sat Mar 10 22:35:00 PST 2007 until: Tue Mar 07 22:35:00 PST 2017 ......................
08-03-2017