JDK-8190333 : sun/security/ssl/X509KeyManager/PreferredKey.java failed with "Failed to get the preferable key aliases"
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-10-30
  • Updated: 2018-04-16
  • Resolved: 2018-04-11
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
11 b09Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
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:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
	at java.base/java.lang.Thread.run(Thread.java:844)
Comments
review request: http://mail.openjdk.java.net/pipermail/security-dev/2018-April/016983.html
03-04-2018

Because JDK-8190335 had reverted the changes pushed by JDK-8176354, so I just modified the title and description to reflect the real problem. In addition, please remove the associated item from ProblemList when fix this issue.
05-01-2018

John, Could you please try to back out the changeset in your local workspace, and check if the tests pass? (or, maybe you already have done this?) If the changeset caused it, we should backout the fix or put the tests to the problem list.
30-10-2017

The changeset from JDK-8176354 modified a keystore. If using old keystore, the tests don't fail.
30-10-2017

Please re-work the fix for JDK-8176354 to make sure it doesn't break other tests. I am setting the priority from P2 to P2 as the original issue had.
30-10-2017