XMPPError: bad-request - modify error create new user using smack library 4.1.4 and openfire
2017-06-02 11:23
513 查看
使用openfir+smack4.1.4注册的时候 报错bad-request- modify
解决方法:
设置适当的服务名称 不要使用原始的(127.0.0.1)
登录openfire管理界面后会显示服务器名称 把那个名称设置上去就行了 下面是我的代码
解决方法:
设置适当的服务名称 不要使用原始的(127.0.0.1)
登录openfire管理界面后会显示服务器名称 把那个名称设置上去就行了 下面是我的代码
XMPPTCPConnectionConfiguration xmpp = XMPPTCPConnectionConfiguration.builder() //服务器IP地址 .setHost("192.168.1.155") //服务器端口 .setPort(5222) //服务器名称(管理界面的 主机名) // .setServiceName("127.0.0.1") 不设置默认的地址 .setServiceName("user-20150810nb") //是否开启安全模式 .setSecurityMode(XMPPTCPConnectionConfiguration.SecurityMode.disabled) //是否开启压缩 .setCompressionEnabled(false) .setSendPresence(false) //开启调试模式 .setDebuggerEnabled(true) .setUsernameAndPassword("admin", "admin") .build();
相关文章推荐
- Home not found. Define system property "openfireHome" or create and add the openfire_init.xml file to the classpath
- Delphi Open Tools API - How to create and add new menu item
- XMPP/Smack/Openfire javax.net.ssl.SSLException: Received fatal alert: internal_error
- ASIHTTPRequest Unable to create request (bad url?) Error
- Knockout is a JavaScript library that helps you to create rich, responsive display and editor user interfaces with a clean underlying data model.
- ASIHTTPRequest Unable to create request (bad url?) Error
- 安装mysql 出现:Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- Siebel Tools: Create new LOV Type and Values & Create Static Picklist Using Tools
- Error Domain=ASIHTTPRequestErrorDomain Code=5 "Unable to create request (bad url?)" UserInfo=0x15f86
- Siebel Tools: Create new LOV Type and Values & Create Static Picklist Using Tools
- openfire error code="406" type="MODIFY" 发文件
- File transfer in android with asmack and Openfire
- Error: "Database 'XXX' is already open and can only have one user at a time"
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解决办法
- java.lang.OutOfMemoryError : unable to create new native Thread 与 Too many open files 解决方法
- How To Create a New User and Grant Permissions in MySQL
- Error: "Database 'XXX' is already open and can only have one user at a time"
- iOS Tutorial: Create iPhone video chat app using Parse and Opentok (tokbox)
- Using XSLT and Open XML to Create a Word 2007 Document