WebLogic Server JVM Crash Under Load at sun.security.pkcs11.wrapper.PKCS11 Class

(Doc ID 1103464.1)

Last updated on DECEMBER 11, 2017

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Oracle Solaris on SPARC (32-bit)
***Checked for relevance on 24-Dec-2012***


WebLogic Server crashes under heavy load with a core dump. hs_err_pid.log looks as below:

# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode solaris-sparc )
# Problematic frame:
# C [pkcs11_softtoken_extra.so.1+0x32654]

Stack: [0x98b80000,0x98c00000], sp=0x98bfcaf8, free space=498k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [pkcs11_softtoken_extra.so.1+0x32654]
C [pkcs11_softtoken_extra.so.1+0x2d068]
C [pkcs11_softtoken_extra.so.1+0x21348]
C [pkcs11_softtoken_extra.so.1+0x164f8] C_EncryptUpdate+0x114
C [libj2pkcs11.so+0x5ac4] Java_sun_security_pkcs11_wrapper_PKCS11_C_1EncryptUpdate+0x194
j sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(JJ[BIIJ[BII)I+332076044
j sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(JJ[BIIJ[BII)I+0

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(JJ[BIIJ[BII)I+0
J sun.security.pkcs11.P11Cipher.implUpdate([BII[BII)I
j sun.security.pkcs11.P11Cipher.engineUpdate([BII[BI)I+18
j javax.crypto.Cipher.update([BII[BI)I+60
j com.sun.net.ssl.internal.ssl.CipherBox.encrypt([BII)I+107

At the same time, the following exceptions are logged in the stdout log file of server:

Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_OPERATION_NOT_INITIALIZED
at sun.security.pkcs11.wrapper.PKCS11.C_DecryptFinal(Native Method)
at sun.security.pkcs11.P11Cipher.implDoFinal(P11Cipher.java:713)


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms