XMPP Smack4.3.4 android端接入异常问题处理

本文主要探讨了使用Smack4.3.4在Android上接入XMPP服务器时遇到的两个问题:1) Too many failed authentications异常,原因是IP被服务端加入黑名单;2) Ping时遇到的SSLException,可能是由于网络I/O错误导致。针对这些问题,提出了相应的解决方案,包括联系服务端清理IP黑名单和排查网络连接问题。
摘要由CSDN通过智能技术生成

一.登录时Too many (20) failed authentications异常

     1.1 异常log

             smack.XMPPException$StreamErrorException:policy-violation You can read more about the meaning of this stream error at http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions
<stream:error><policy-violation xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xml:lang='en'>Too many (20) failed authentications from this IP address (::ffff:113.88.132.28).The address will be unblocked at at 01:40:03 25.03.2020 UTC

     1.2解决办法

           IP被服务端加入黑名单了,需要服务端清理

 

二.Ping时javax.net.ssl.SSLException: Read error异常

     2.1 异常log

            D/SMACK: SENT (0): <iq to='im.demo.aiframe.net' id='UbyV1-113' type='get'><ping xmlns=

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值