My Oracle Support Banner

Error java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_HOST_MEMORY Applying Patch 20613362 (Doc ID 2523280.1)

Last updated on SEPTEMBER 20, 2021

Applies to:

Oracle Purchasing - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.3 version, Patch Application Issues

When attempting to apply <patch 20613362>, error occurs.

The following error is captured in worker nn:

ERROR
-----------------------
Calling /popt/app/oracle/prd_apps/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java ...
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:317)
at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:262)
~~~~~~
Caused by: java.lang.SecurityException: Framework jar verification can not be initialized
at javax.crypto.JarVerifier.(JarVerifier.java:228)
... 20 more
Caused by: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_HOST_MEMORY
at sun.security.pkcs11.P11Signature.engineVerify(P11Signature.java:621)
at java.security.Signature$Delegate.engineVerify(Signature.java:1217)
at java.security.Signature.verify(Signature.java:651)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:447)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:395)
at javax.crypto.JarVerifier.testSignatures(JarVerifier.java:775)
at javax.crypto.JarVerifier.access$400(JarVerifier.java:37)
at javax.crypto.JarVerifier$1.run(JarVerifier.java:222)
at javax.crypto.JarVerifier$1.run(JarVerifier.java:187)
at java.security.AccessController.doPrivileged(Native Method)
at javax.crypto.JarVerifier.(JarVerifier.java:186)
... 20 more
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_HOST_MEMORY
at sun.security.pkcs11.wrapper.PKCS11.C_Verify(Native Method)
at sun.security.pkcs11.P11Signature.engineVerify(P11Signature.java:598)
... 30 more
big_modexp_ncp_yf() returned -5




STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Attempt to apply patch using adpatch
2. Patch fails
3. Error is logged in the patch adworker.log 


Note: Error could occur for any patch. Many systems applying EBS patches have been reported with this issue.

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.