Java安全性错误引起:sun.security.pkcs11.wrapper.PKCS11Exception:CKR_OPERATION_ACTIVE

时间:2017-06-12 05:40:30

标签: java security gridfs

我们在java工作中随机看到java安全错误 当我们从Windows服务器中选择xml文件并在尝试保存在MongoGridFS中的Linux服务器上解析它们时,会出现此错误。 问题是当我们重新启动这个工作时,它会再次开始正常工作以获得相同的数据。

update() failed
java.security.ProviderException: update() failed
                                    at 
sun.security.pkcs11.P11Digest.engineUpdate(P11Digest.java:228)
                                    at java.security.MessageDigest$Delegate.engineUpdate(MessageDigest.java:568)
                                    at java.security.MessageDigest.update(MessageDigest.java:323)
                                    at com.mongodb.gridfs.GridFSInputFile.dumpBuffer(GridFSInputFile.java:280)
                                    at com.mongodb.gridfs.GridFSInputFile.saveChunks(GridFSInputFile.java:229)
                                    at com.mongodb.gridfs.GridFSInputFile.save(GridFSInputFile.java:178)
                                    at com.mongodb.gridfs.GridFSInputFile.save(GridFSInputFile.java:160)

                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                                    at java.lang.Thread.run(Thread.java:744)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_OPERATION_ACTIVE
                                    at sun.security.pkcs11.wrapper.PKCS11.C_DigestInit(Native Method)
                                    at sun.security.pkcs11.P11Digest.engineUpdate(P11Digest.java:210)
                                    ... 16 more

java版“1.7.0_45”
OpenJDK运行时环境(rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64位服务器VM(构建24.45-b08,混合模式)

LSB版本:: base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing -4.0-noarch 分销商ID:CentOS 说明:CentOS 6.5版(最终版)

请你帮我解决这个问题,因为它已成为关键问题。

由于 Virendra Agarwal

0 个答案:

没有答案