Desknow 应用程序上的 Java JCE 安全错误

标签 java apache tomcat

由于以下错误,DeskNow 未正确启动:

以下是错误的完整堆栈跟踪:

java.lang.ExceptionInInitializerError
    at javax.crypto.JceSecurityManager.(JceSecurityManager.java:65)
    at javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2543)
    at javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2567)
    at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:548)
    at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:527)
    at sun.security.ssl.CipherSuite.isAvailable(CipherSuite.java:194)
    at sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:350)
    at sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContextImpl.java:301)
    at sun.security.ssl.SSLServerSocketImpl.initServer(SSLServerSocketImpl.java:162)
    at sun.security.ssl.SSLServerSocketImpl.(SSLServerSocketImpl.java:114)
    at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:79)
    at com.ventia.mail.c.k.(k.java:1)
    at com.ventia.mail.c.s.(s.java:24)
    at com.ventia.freedom.k.d.init(d.java:421)
    at com.ventia.freedom.k.d$$EnhancerByCGLIB$$c3ccb642.CGLIB$init$46()
    at com.ventia.freedom.k.d$$EnhancerByCGLIB$$c3ccb642$$FastClassByCGLIB$$9058e013.invoke()
    at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
    at com.ventia.freedom.n.s.intercept(s.java:6)
    at com.ventia.freedom.k.d$$EnhancerByCGLIB$$c3ccb642.init()
    at com.ventia.freedom.n.w.a(w.java:156)
    at com.ventia.freedom.n.w.i(w.java:415)
    at com.ventia.freedom.g.b$0.run(b$0.java:3)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
    at javax.crypto.JceSecurity.(JceSecurity.java:89)
    ... 23 more
Caused by: java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer!
    at javax.crypto.JarVerifier.verifyPolicySigned(JarVerifier.java:289)
    at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:316)
    at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:261)
    at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
    at javax.crypto.JceSecurity$1.run(JceSecurity.java:81)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.crypto.JceSecurity.(JceSecurity.java:78)
    ... 23 more

The error occurred at Thu May 22 11:12:03 MYT 2014

DeskNow needs to be restarted.

如果我在 Windows 上安装它,我会遇到空指针异常。我需要做什么来解决这个问题?

最佳答案

您需要根据您的jdk 版本从Oracle 下载站点下载JCE zip 文件。它将附带 2 jar local_policy.jarUS_export_policy.jar,以及 README.txt 文件。您需要按照 README 文件中的说明进行操作,实际上需要安装部分。

关于Desknow 应用程序上的 Java JCE 安全错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23797289/

相关文章:

java - Tomcat webcontainer - 如何访问 ssl 加密的 oracle 数据库

java - 如何在 Java 中生成有效的 EAN13 条形码?

java - 为什么 do-while 循环在这个 Java 程序中没有按预期运行?

java - SQS 过期 token : The security token included in the request is expired status code: 403

javascript - Steam 发布请求 - 无法加载资源 : the server responded with a status of 400 (Bad Request)

php - 如何将 $_SESSION 变量传递给 websocket 服务器?

apache - Fork shell 脚本(不是 &)

Javafx HBox 限制到特定高度

java - Eclipse 动态 Web 项目中缺少 WEB-INF 文件

tomcat - 如何防止 Tomcat 为 domain.com 和 www.domain.com 创建单独的 session ?