Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not availab
2015-01-29 19:30
956 查看
今天用eclipse本地环境调用物流信息接口的时候
String response = restTemplate.getForObject("xmlStr", byteRsp.toString()),
String.class);
报错:
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not availab
在网上找了问题原因,就是jvm没找到sunjce_provider.jar;于是我把jre/lib/ext下的这个jar复制一份到%JAVA_HOME%/jre/lib下,
把eclipse中的jre删掉重新加一下,问题解决
String response = restTemplate.getForObject("xmlStr", byteRsp.toString()),
String.class);
报错:
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not availab
在网上找了问题原因,就是jvm没找到sunjce_provider.jar;于是我把jre/lib/ext下的这个jar复制一份到%JAVA_HOME%/jre/lib下,
把eclipse中的jre删掉重新加一下,问题解决
相关文章推荐
- Caused by: java.security.NoSuchAlgorithmException: AES KeyGenerator not available
- java.security.NoSuchAlgorithmException: AES KeyGenerator not available
- java.security.NoSuchAlgorithmException: TLS SSLContext not available
- java.security.NoSuchAlgorithmException: DES KeyGenerator not available
- Eclipse的bug,SunTlsRsaPremasterSecret KeyGenerator not available
- Caused by: java.io.FileNotFoundException: dbcpconfig.properties (No such file or directory)
- java.security.NoSuchAlgorithmException: No such algorithm: RSA/ECB/PKCS1Padding 问题解决
- java.security.NoSuchAlgorithmException: Algorithm DH not available
- Caused by: java.lang.SecurityException: Jurisdiction policy files are not signed by trusted sign...
- 报错: java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore jks implementa
- java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES 解决方案
- java.security.NoSuchAlgorithmException: SSLContext SSL implementation not found
- Caused by: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.int
- ibatis报错:Caused by: java.util.NoSuchElementException
- java.net.SocketException: java.security.NoSuchAlgorithmException
- java.security.NoSuchAlgorithmException: Cannot find any provider supporting DESede/CBC/PKCS5Padding
- java.security.NoSuchAlgorithmException: AES KeyGenerator not available
- 【已解决】 java.security.KeyStoreException: java.security.NoSuchAlgorithmException
- Caused by: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.HEADSET_PLUG
- java.security.NoSuchAlgorithmException: Algorithm HmacSHA1 not available