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

时间:2014-05-22 03:19:33

标签: 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上安装它,我会得到空指针异常。我需要做些什么来解决这个问题?

1 个答案:

答案 0 :(得分:1)

您需要根据您的jdk版本从Oracle下载站点下载JCE zip文件。它将配备2罐local_policy.jar& US_export_policy.jarREADME.txt文件。您需要按照README文件中的说明操作,实际上需要安装部分。