XMPP/Smack/Openfire javax.net.ssl.SSLException: Received fatal alert: internal_error
来源:互联网 发布:帝国cms首页模板修改 编辑:程序博客网 时间:2024/05/16 09:27
在xmpp协议通信中,用smack框架登录非本地openfire服务器的时候,出现javax.net.ssl.SSLException: Received fatal alert: internal_error异常信息。原因是登录他网openfire服务器出现登录延时(在没有成功链接到openfire服务器),然后就进行登录login操作的时候,就会出现这个异常。
解决办法
1、在链接openfire服务器后,线程休眠一段时间,再进行登录login操作。……connection.connect();Thread.sleep(3000); connection.login(user, pass); …… 2、设置setPacketReplyTimeout参数 ...... SmackConfiguration.setPacketReplyTimeout(PACKET_REPLY_TIMEOUT);config = new ConnectionConfiguration(SERVER, PORT); ...... 注意:如果设置了休眠时间或setPacketReplyTimeout参数后还是出现错误,请讲时间设置再大些看看
参考官方解答:http://community.igniterealtime.org/message/206443#206443
- XMPP/Smack/Openfire javax.net.ssl.SSLException: Received fatal alert: internal_error
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- eclipse javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- SSL/TLS的Handshake过程与javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure异常
- SSL/TLS的Handshake过程与javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure异常
- SSL/TLS的Handshake过程与javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure异常
- javax.net.ssl.SSLException
- ios信息推送 异常 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshak
- 使用Java访问https接口javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- 访问https,抛出的异常javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
- javaMail(javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection)
- 出现javax.net.ssl.SSLException: Not trusted server certificate错误
- javax.net.ssl.SSLException: Not trusted server certificate
- javax.net.ssl.SSLException: Not trusted server certificate .
- javax.net.ssl.SSLException: hostname in certificate didn't match:
- javax.net.ssl.SSLException: hostname in certificate didn't match:
- 让cacti监控路由器与交换机的流量
- metro button 自定义不同状态下的字体颜色
- Tomcat 的session管理
- 关于SLL与DLL
- 在SecureCRT屏幕上获取数据并存至文件中
- XMPP/Smack/Openfire javax.net.ssl.SSLException: Received fatal alert: internal_error
- ubuntu环境下安装字体
- 被点击访问过的超链接样式不在具有hover和active了
- UISegmentedControl详解
- vc2005调试
- Linux 文件共享 NFS
- 【工具教程】NotePad++教程
- 【web前端】小tip: 外链地址网站标志图标API应用
- 高次幂取模