JDK-8204203 : Many pkcs11 tests failed in Provider initialization, after compiler on Windows changed
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto:pkcs11
  • Affected Version: 11,12,13
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-06-01
  • Updated: 2020-09-22
  • Resolved: 2019-05-03
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 13
11.0.10-oracleFixed 13 b20Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8204250 :  
Description
This is new failure happened in jdk-11+16 windows-x64.

Test .dll seems need to be re-built.

(with given +x execution permission to the test .dll) There are many pkcs11 tests failed due to: 
java.security.ProviderException: Initialization failed 
... 
Caused by: java.io.IOException: The specified module could not be found. 
Comments
Fix request 11u: This patch reenables some tests on Windows which had to be disabled due to a compiler change during JDK11 development. Now the test requirements have been recompiled with the newer compiler, too, and we can reenable the tests. Patch applies cleanly with the exception of removing the problem list entry for test/jdk/sun/security/tools/keytool/NssTest.java as that test doesn't exist in 11u. Regression tests pass with the additional tests. This changelist is a predecessor of JDK-8225390 which problemlists a shaky test and shall be backported as well. Requesting jdk11u-critical because the test failure of JDK-8225390 is observed in 11.0.5 as well.
03-09-2019

These tests will use NSS 3.41
09-04-2019

cd <NSS_DIST>/nss export OS_TARGET=WIN95 export USE_64=1 export BUILD_OPT=0 export NSDISTMODE=copy export NSS_DISABLE_GTESTS=1 export target_arch="x64" source coreconf/msvc.sh make nss_build_all
22-02-2019

They are in tier2_part1
01-06-2018

Please do not consider fixing this by adding another round of these binaries to the source repository. Keeping binary files in the repository is very inefficient and adds a lot of size to the repository history, which we all have to carry around when we clone the source. You have to understand that every version of these files that you ever added are carried in the history forever. We have a mechanism for providing the binaries dynamically at test time from a binary storage (Artifactory), please use it. Christian already has a working patch.
01-06-2018

Now that JDK-8203795 has upgraded the default compiler on Windows to VS2017, these libs should be re-built by VS2017 as well.
01-06-2018