openfire登录出现“SASLError using DIGEST-MD5: not-authorized”异常的解决
2014-08-17 19:45
537 查看
当我们用org.jivesoftware.smack.XMPPConnection.login(String username,String password)登录时,如果出现“SASLError using DIGEST-MD5: not-authorized”异常,这说明我们客户端没有开启SASL机制,在XMPP连接配置的时候,加上“SASLAuthentication.supportSASLMechanism("PLAIN",0);”这个支持SASL机制的方法就可以解决了。
相关文章推荐
- dubbo注册中心zookeeper出现异常 Opening socket connection to server 10.70.42.99/10.70.42.99:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
- 解决iText 5.0.1生成pdf,加入iTextAsian.jar 出现异常 Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.的
- 解决Jboss启动时出现的异常“Error creating the dlq connection: XAConnectionFactory not bound”
- 解决调用context.Session["NAME"]时总出现Object reference not set to an instance of an object.异常的方法
- QC登录出现Following client components were not downloaded successfully问题解决
- 登录tomcat 时出现错误:tomcat You are not authorized to view this page
- 关于保存*.js是出现some character can not mapped using "iso-8859-1" 的问题解决见解
- Vmware安装red hat linux出现 The cdrom could not be mounted异常的解决办法
- Android Studio 编译异常Could not execute build using Gradle installation解决办法
- 解决iText 5.0.6生成pdf,出现异常 Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.的异常
- 在为应用集成微博第三方登录获取用户信息的时候出现异常com.weibo.sdk.android.WeiboException: {"error":"User does not exists!","er
- 解决连接MySQL时出现securityException异常,并且会有"That assembly does not allow partially trusted callers"的异常信息
- 从WinForm程序中显示WPF Window出现"The URI prefix is not recognized"异常的解决方法
- 模拟器调试出现异常NotSupportedException: System.Drawing.Bitmap解决
- opencv2.1移植arm 出现找不到libcv.so not found (try using -rpath or -rpath-link) 及大量 undefined reference的解决
- 证书链验证时出现异常:Signature does not match解决办法
- EJB项目出现“org.hibernate.LazyInitializationException: could not initialize proxy - no Session”异常解决
- POI操作excel2007 出现异常 java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlOptions 解决方法
- 极光出现网络异常无法登录的解决方法
- jetty访问jsp页面出现异常:org.apache.jasper.JasperException: PWC6345: A full JDK (not just JRE) is required解决