我用java开发的。但是连接的时候总报这个错误。我是一个菜鸟,求大神求助啊
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.crypto.Mac.getInstance(Mac.java:171)
at com.aliyun.oss.common.auth.HmacSHA1Signature.sign(HmacSHA1Signature.java:63)
at com.aliyun.oss.common.auth.HmacSHA1Signature.computeSignature(HmacSHA1Signature.java:43)
at com.aliyun.oss.internal.OSSRequestSigner.sign(OSSRequestSigner.java:37)
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:150)
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:133)
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:68)
at com.aliyun.oss.internal.OSSObjectOperation.getObject(OSSObjectOperation.java:190)
at com.aliyun.oss.internal.OSSObjectOperation.getObject(OSSObjectOperation.java:231)
at com.aliyun.oss.OSSClient.getObject(OSSClient.java:385)
at cn.edsport.web.controller.pub.Demo.main(Demo.java:40)
Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:86)
... 11 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:318)
at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:263)
at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
at javax.crypto.JceSecurity$1.run(JceSecurity.java:78)
at java.security.AccessController.doPrivileged(Native Method)
at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:76)
... 11 more
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。