Error: Could not initialize class smcrypto.SmCryptoFacade
search cancel

Error: Could not initialize class smcrypto.SmCryptoFacade

book

Article ID: 272704

calendar_today

Updated On:

Products

SITEMINDER CA Single Sign On Federation (SiteMinder) CA Single Sign On Secure Proxy Server (SiteMinder)

Issue/Introduction

 

Running Policy Server, the SAML federation journey fails. The Policy Server reports error:

[07/26/2023][13:42:34.103][13:42:34][1704163][139861449242368][TunnelUtils][addProviderPasswords][][][][][][][][][][][][][][][][][][][][][Exception while attempting to retrieve passwords:
java.lang.NoClassDefFoundError: Could not initialize class com.ca.sso.smcrypto.SmCryptoFacade

This causes the Federation Service to report error:

[07/26/2023][13:42:34][17293][140431700854528][][SSO.java][processRequest][Transaction with ID: xx-xxx-xx-xxx-xx failed. Reason: NO_PROVIDER_INFO_FOUND]
[07/26/2023][13:42:34][17293][140431700854528][][SSO.java][processRequest][No SAML2 provider information found for SP mySP.]
[07/26/2023][13:42:34][17293][140431700854528][][SSO.java][processRequest][Ending SAML2 Single Sign-On Service request processing with HTTP error 400]
[07/26/2023][13:42:34][17293][140431700854528][][ErrorRedirectionHandler.java][redirectToErrorPage][Sending HTTP Error 403 ]

 

Environment

 

  Policy Server 12.8SP7 on RedHat 8;
   JDK 11;
  Policy Store with 12.7 objects;
  CA Access Gateway (SPS);

 

Cause

 

The Policy Server JVM is customized and there are missing out of the box configuration.

As per the documentation, port manually the customization, keeping the out of the box configuration (1).

As per best practices, recompile the custom code which uses the same libraries that are given by the out of the box JVMOptions.txt.

Then, introduce the custom applications 1 by 1 in the JVMOptions.txt, validating that each of them runs correctly with the upgraded Policy Server.

 

Resolution

 

The library:

  bin/thirdparty/bc-fips-1.0.2.3.jar
  
was missing from the Policy Server installation folder.

Installing the library back solved the issue.

 

Additional Information

 

(1)

    Take a Backup JVMOptions.txt