JDK-8144559 : sun/security/mscapi/SignUsingNONEwithRSA.sh failed intermittently
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-12-03
  • Updated: 2016-07-15
  • Resolved: 2016-07-08
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 9
9 b127Fixed
Related Reports
Relates :  
Description
sun/security/mscapi/SignUsingNONEwithRSA.sh failed intermittently
Exception in thread "main" java.lang.Exception: Cannot load the keys need to run this test
	at SignUsingNONEwithRSA.getKeysFromKeyStore(SignUsingNONEwithRSA.java:134)
	at SignUsingNONEwithRSA.main(SignUsingNONEwithRSA.java:97)
----------rerun:(19/1140)*----------
Comments
Review sent: http://mail.openjdk.java.net/pipermail/security-dev/2016-July/014375.html
07-07-2016

I am not able to reproduce this failure. I am going to remove shell script from the test and move temporary keypair generation to SignUsingNONEwithRSA.sh using java code. This will avoid "Cannot load the keys need to run this test" as test will fail if temporary keys can't be generated.
07-07-2016

It seems that sometimes the keytool command in SignUsingNONEwithRSA.sh fails to create the keypair. I would recommend adding -J-Djava.security.debug=all to the keytool command line which might show some additional helpful information the next time it fails.
04-12-2015