ASmack连接Openfire服务器异常
来源:互联网 发布:监理行业发展前景知乎 编辑:程序博客网 时间:2024/06/06 09:33
1.SASLError using DIGEST-MD5: not-authorized
增加
SASLAuthentication.registerSASLMechanism("PLAIN", SASLPlainMechanism.class); SASLAuthentication.supportSASLMechanism("PLAIN",0);
错误代码:
ConnectionConfiguration connConfig=new ConnectionConfiguration("192.168.1.111",5222); connConfig.setReconnectionAllowed(true); connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled); connConfig.setSendPresence(true); XMPPConnection XMPPConnection = new XMPPTCPConnection(connConfig,null); XMPPConnection.connect();
改正后
ConnectionConfiguration connConfig=new ConnectionConfiguration("192.168.1.111",5222);connConfig.setReconnectionAllowed(true);connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);connConfig.setSendPresence(true);SASLAuthentication.registerSASLMechanism("PLAIN", SASLPlainMechanism.class);SASLAuthentication.supportSASLMechanism("PLAIN",0);XMPPConnection XMPPConnection = new XMPPTCPConnection(connConfig,null);XMPPConnection.connect();
2.SASL authentication failed using mechanism PLAIN
出现在登录时 onnect.login(account,password); 确认密码账号是否正确
0 0
- ASmack连接Openfire服务器异常
- Asmack客户端无法连接Openfire服务器问题的解决
- openfire + asmack
- aSmack连接服务器异常smack.SmackException$ ConnectionException thrown by XMPPConnection.connect();
- Android XMPP 例子(Openfire+asmack+spark) 出现登陆连接错误
- gtalk 连接 openfire 服务器
- Android客户端基于XMPP的IM(openfire+asmack)的聊天工具之环境搭建及与服务器建立连接(一)
- 使用strophejs连接openfire服务器
- Android, xmpp, asmack以及openfire
- XMPP-Android基于openfire+asmack
- Xmpp协议 OpenFire服务器 Asmack Android客户端 一些Bug的解决方法
- xmpp协议学习之搭建openfire服务器以及asmack的使用!
- 使用openfire服务器,在android上实现asmack登陆、状态监视、文本和文件传送。
- 手机客户端android网络不稳定而导致asmack不能自动重连接openfire的问题
- gloox连接openfire服务器遇到的问题
- 解决因手机客户端android网络不稳定而导致asmack不能自动重连接openfire的问题
- openfire asmack+android 发送消息 501错误
- xmpp+openfire+asmack最新jar包地址
- LightOJ 1234(调和级数、有通项公式的发散数列求和)
- spring集成redis
- UEditor之实现配置简单的图片上传示例
- 网页布局,右边距margin为0
- Django官方手册阅读(投票应用)
- ASmack连接Openfire服务器异常
- HDU1142 A Walk Through the Forest(SPFA+记忆化搜索)
- mapreduce编程---寻找图中的三角形
- mybatis高级输出映射(多对多查询)
- 自己动手用C扩展PHP(三)
- 传输层
- poj 1511 Invitation Cards(优先队列优化Dijkstra+链式前向星存储边)
- LightOJ 1282(求高次幂的前三位和后三位)
- Linux源码分析工具