java.security.Provider Exception: update() failed

Hello,

We have OpenFire chat server running on Solaris 10 SPARC with Java 1.6.0_25. We connect ldap via LDAPS and all certificates in java keystore.

Chat works fine. Users can login and use chat properly. The porblem is when we start server, we have following exception in log file. Within 1 week of usage, same exceptions occur over time and withing 5-6 days the server just hangs. No one can able to connect. I can’t even shutdown the server properly. I have to kill the process.

The exception is,

Exception in thread "Thread-756" java.security.ProviderException: update() failed
        at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:566)
        at sun.security.pkcs11.P11Cipher.engineUpdate(P11Cipher.java:465)
        at javax.crypto.Cipher.update(DashoA13*..)
        at com.sun.net.ssl.internal.ssl.CipherBox.encrypt(CipherBox.java:141)
        at com.sun.net.ssl.internal.ssl.OutputRecord.encrypt(OutputRecord.java:199)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:742)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:731)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.sendAlert(SSLSocketImpl.java:1758)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1644)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1612)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1576)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1521)
        at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:86)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at com.sun.jndi.ldap.Connection.run(Connection.java:808)
        at java.lang.Thread.run(Thread.java:662)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_OPERATION_NOT_INITIALIZED
        at sun.security.pkcs11.wrapper.PKCS11.C_EncryptUpdate(Native Method)
        at sun.security.pkcs11.P11Cipher.implUpdate(P11Cipher.java:518)
        ... 17 more

Does anyone else have this problem? Any solution to this problem?