My Oracle Support Banner

Multithreaded Application Using OraclePKI.jar Intermittently Fails With PKI-02002 (Doc ID 1356263.1)

Last updated on FEBRUARY 28, 2023

Applies to:

JDBC - Version 11.2.0.1.0 to 11.2.0.3.0 [Release 11.2]
Information in this document applies to any platform.

Symptoms

In a multithreaded application using the 11.2.0.x JDBC Thin driver with version 11.2.0.x of OraclePKI.jar, the ability to open a wallet file intermittently fails with the error:

java.sql.SQLException: encountered a problem with the Secret Store. Check the wallet location for the presence of an open wallet (cwallet.sso) and ensure that this wallet contains the correct credentials using the mkstore utility:  java.io.IOException: PKI-02002: Unable to open the wallet. Check password.

When the various threads in the application are subject to a sleep() call, the frequency with which the problem occurs decreases in relation to the length of time of the sleep call (the longer the threads sleep, the less frequently the error occurs).

The problem did not reproduce when using 10.x versions of OraclePKI.jar .

Changes

 

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
Changes
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.