连接xmpp时出错
02-18 01:53:29.980: 错误/XMPPClient(350): [SettingsDialog] 无法连接到 gtalk.google.com 02-18 01:53:29.980:错误/XMPPClient(350):无法连接到 gtalk.google.com:5222。:远程服务器超时(504)无法连接到 gtalk.google.com:5222。 02-18 01:53:29.980:错误/XMPPClient(350):--引起:java.net.UnknownHostException:gtalk.google.com 02-18 01:53:30.050:错误/AndroidRuntime(350):致命异常:主要 02-18 01:53:30.050:错误/AndroidRuntime(350):java.lang.IllegalStateException:未连接到服务器。 02-18 01:53:30.050: 错误/AndroidRuntime(350): 在 org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:329) 02-18 01:53:30.050:错误/AndroidRuntime(350):在org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:301) 02-18 01:53:30.050:错误/AndroidRuntime(350):在org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:283) 02-18 01:53:30.050:错误/AndroidRuntime(350):在org.apache.android.xmpp.SettingsDialog.onClick(SettingsDialog.java:54) 02-18 01:53:30.050: 错误/AndroidRuntime(350): 在 android.view.View.performClick(View.java:2485) 02-18 01:53:30.050: 错误/AndroidRuntime(350): 在 android.view.View$PerformClick.run(View.java:9080) 02-18 01:53:30.050:错误/AndroidRuntime(350):在android.os.Handler.handleCallback(Handler.java:587) 02-18 01:53:30.050: 错误/AndroidRuntime(350): 在 android.os.Handler.dispatchMessage(Handler.java:92) 02-18 01:53:30.050: 错误/AndroidRuntime(350): 在 android.os.Looper.loop(Looper.java:123) 02-18 01:53:30.050:错误/AndroidRuntime(350):在android.app.ActivityThread.main(ActivityThread.java:3647) 02-18 01:53:30.050:错误/AndroidRuntime(350):在java.lang.reflect.Method.invokeNative(本机方法) 02-18 01:53:30.050:错误/AndroidRuntime(350):在java.lang.reflect.Method.invoke(Method.java:507) 02-18 01:53:30.050: 错误/AndroidRuntime(350): 在 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 02-18 01:53:30.050:错误/AndroidRuntime(350):在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 02-18 01:53:30.050:错误/AndroidRuntime(350):在dalvik.system.NativeStart.main(本机方法) 02-18 01:53:35.710:错误/InputDispatcher(59):通道“4072b418 XMPP 设置(服务器)”~使用者关闭了输入通道或发生错误。事件=0x8 02-18 01:53:35.710:错误/InputDispatcher(59):通道'4072b418 XMPP设置(服务器)'〜通道已不可恢复地损坏并将被处置!
02-18 01:53:29.980: ERROR/XMPPClient(350): [SettingsDialog] Failed to connect to gtalk.google.com
02-18 01:53:29.980: ERROR/XMPPClient(350): Could not connect to gtalk.google.com:5222.: remote-server-timeout(504) Could not connect to gtalk.google.com:5222.
02-18 01:53:29.980: ERROR/XMPPClient(350): -- caused by: java.net.UnknownHostException: gtalk.google.com
02-18 01:53:30.050: ERROR/AndroidRuntime(350): FATAL EXCEPTION: main
02-18 01:53:30.050: ERROR/AndroidRuntime(350): java.lang.IllegalStateException: Not connected to server.
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:329)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:301)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:283)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at org.apache.android.xmpp.SettingsDialog.onClick(SettingsDialog.java:54)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at android.view.View.performClick(View.java:2485)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at android.view.View$PerformClick.run(View.java:9080)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at android.os.Handler.handleCallback(Handler.java:587)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at android.os.Handler.dispatchMessage(Handler.java:92)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at android.os.Looper.loop(Looper.java:123)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at android.app.ActivityThread.main(ActivityThread.java:3647)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at java.lang.reflect.Method.invokeNative(Native Method)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at java.lang.reflect.Method.invoke(Method.java:507)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-18 01:53:30.050: ERROR/AndroidRuntime(350): at dalvik.system.NativeStart.main(Native Method)
02-18 01:53:35.710: ERROR/InputDispatcher(59): channel '4072b418 XMPP Settings (server)' ~ Consumer closed input channel or an error occurred. events=0x8
02-18 01:53:35.710: ERROR/InputDispatcher(59): channel '4072b418 XMPP Settings (server)' ~ Channel is unrecoverably broken and will be disposed!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在 DNS 中找到有关如何连接的答案:
将
gmail.com
替换为客户端尝试连接的 JID 的域部分。You can find the answer about how to connect in the DNS:
Where you replace
gmail.com
with the domain portion of the JID the client is trying to connect as.