连接xmpp时出错

发布于 2024-10-17 23:49:14 字数 2104 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风月客 2024-10-24 23:49:14

您可以在 DNS 中找到有关如何连接的答案:

$ dig +short -t SRV _xmpp-client._tcp.gmail.com.
20 0 5222 talk2.l.google.com.
20 0 5222 talk3.l.google.com.
20 0 5222 talk4.l.google.com.
5 0 5222 talk.l.google.com.
20 0 5222 talk1.l.google.com.

gmail.com 替换为客户端尝试连接的 JID 的域部分。

You can find the answer about how to connect in the DNS:

$ dig +short -t SRV _xmpp-client._tcp.gmail.com.
20 0 5222 talk2.l.google.com.
20 0 5222 talk3.l.google.com.
20 0 5222 talk4.l.google.com.
5 0 5222 talk.l.google.com.
20 0 5222 talk1.l.google.com.

Where you replace gmail.com with the domain portion of the JID the client is trying to connect as.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文