Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes arrives CKR_0X80000384 errors #6

Closed
armando-basile opened this issue May 30, 2024 · 2 comments
Closed

Sometimes arrives CKR_0X80000384 errors #6

armando-basile opened this issue May 30, 2024 · 2 comments

Comments

@armando-basile
Copy link

Hi xipki,
i'm trying to understand the reason of this error. I use a multithread application that implement this pattern:

  1. Initialize Module (static and synchronized from only main thread)
  2. Get list of slot (static and synchronized from only main thread)
  3. Initialize Token (static and synchronized from only main thread)
  4. Create Session (static and synchronized multi threading)
  5. Perform activities (multi threading)
  6. Close Session (multi threading)

It work fine but sometimes i receive this error and all activities on all static initialized tokens (create sessions, encrypt, signature, etc.) failed with CKR_0X80000384.
The only way to use the application is restart the application (so it close also Module communication)

I don't know if this pattern is correct or i should not use static tokens, but

pkcs11_slots[slotReference].getToken();

before each create session

What do you think about ?

@xipki
Copy link
Owner

xipki commented Jun 5, 2024

Please refer to xipki/jpkcs11wrapper#3.

@xipki
Copy link
Owner

xipki commented Jul 30, 2024

Close due to inactivity.

@xipki xipki closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants