王者荣耀荣耀定位提示javax.net.ssl 源代码.SSLException后面一大串字母,

盘点王者荣耀10大最头疼英雄 李白屈居第2名
最近有网友总结了王者荣耀里的一些英雄,这些英雄一出现就会打乱节奏,让大家头疼不已,在实战中你经常遇到哪些呢?让我们一起来看一下吧。
大家都在看
正文已结束,您可以按alt+4进行评论
扫一扫,用手机看新闻!
用微信扫描还可以
分享至好友和朋友圈
腾讯网社区
Copyright & 1998 - 2017 Tencent. All Rights Reserved在使用CAS单点登录页面上报以下错误:
HTTP Status 500 - javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-emptytype Exception reportmessage javax.net.ssl.SSLException: java.lang.RuntimeException:
Unexpected error: java.security. Invalid Algorithm Parameter Exception &the trustAnchors parameter must be non-empty
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
CAS报这类型的错误,主要是安全证书没有导入到客户端的%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS目录下面,有可能是客户端有自带的jre运行环境,所以可以把证书重新导入到客户端自带的/JRE/LIB/SECURITY/CACERTS目录下面,或者把客户端的自带的jre运行环境删除,这样客户端程序就会用咱们自己安装的jre。
CAS证书导入到客户端的方法如下:
keytool -import -keystore &%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS&-file d:\mycerts.crt -alias tomcatgecko
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:7939次
排名:千里之外
转载:12篇
(3)(1)(4)(1)(5)(1)(1)(2)(2)互联网知识169-百谷歌> javax.net.ssl.SSLException:
Unsupported
javax.net.ssl.SSLException:
Unsupported
puppylove & &
发布时间: & &
浏览:2 & &
回复:0 & &
悬赏:0.0希赛币
javamail发送gmail邮件问题try{
//Security.addProvider(new & co.ssl.internal.ssl.Provider());
& String & SSL_FACTORY & = &
&javax.net.ssl.SSLSocketFactory &;
& // & Get & a & Properties & object
& Properties & props & = & System.getProperties();
& props.setProperty( &mail.smtp.host &, &
& props.setProperty( &mail.smtp.socketFactory.class &, & SSL_FACTORY);
& props.setProperty( &mail.smtp.socketFactory.fallback &, &
&false &);
& props.setProperty( &mail.smtp.port &, &
& props.setProperty( &mail.smtp.socketFactory.port &, &
& props.setProperty( &mail.smtp.auth &, &
& props.setProperty( &mail.smtp.ssl &, &
& //props.put( &mail.smtp.user &, &hombreelk &);
& //props.put( &mail.smtp.password &, &hombre123 &);
& final & String & username & = &
&wahaha1982 &;
& final & String & password & = &
&wahaha123 &;
& Session & session & = & Session.getDefaultInstance(props, & new & Authenticator(){
& protected & PasswordAuthentication & getPasswordAuthentication() & {
& return & new & PasswordAuthentication(username, & password);
& // & -- & Create & a & new & message & --
& Message & msg & = & new & MimeMessage(session);
& // & -- & Set & the & FROM & and & TO & fields & --
& msg.setFrom(new & InternetAddress(username & + &
& msg.setRecipients(Message.RecipientType.TO, &
& InternetAddress.parse( & &,false));
& msg.setSubject( &Hello &);
& msg.setText( &How & are & you &);
& msg.setSentDate(new & java.util.Date());
& Transport.send(msg);
& System.out.println( &Message & sent. &);
}catch(Exception & ex)
ex.printStackTrace();
用这段程序可以将邮件发送出去,但是报下面的异常:
javax.mail.MessagingException: & Exception & reading &
& nested & exception & is:
javax.net.ssl.SSLException: & Unsupported & record & version & Unknown-50.49
at & com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1598)
at & com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:685)
at & javax.mail.Transport.send0(Transport.java:171)
at & javax.mail.Transport.send(Transport.java:98)
at & cn.handinfo.mail.impl.MailServiceImpl.main(MailServiceImpl.java:473)
Caused & by: & javax.net.ssl.SSLException: & Unsupported & record & version & Unknown-50.49
at & co.ssl.internal.ssl.InputRecord.readV3Record(Unknown & Source)
at & co.ssl.internal.ssl.InputRecord.read(Unknown & Source)
本问题标题:
本问题地址:
温馨提示:本问题已经关闭,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&

我要回帖

更多关于 javax.net.ssl jar 的文章

 

随机推荐