Openfire的连接例外:远程服务器错误(502)xmpperror连接到5222 [英] Openfire Connecting Exception: remote-server-error(502) xmpperror connecting to 5222

查看:3776
本文介绍了Openfire的连接例外:远程服务器错误(502)xmpperror连接到5222的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作chatApp。我使用oenfire服务器过去2个月使用asmack成功实施XMPP聊天。
但很少小时前我得到异常的下方,到现在我无法联系服务器。

I working on chatApp. i am successfully implement xmpp chat using oenfire server past 2 month using asmack. but few hour ago i get below exception and till now i am unable to contact server.

192.168.0.1:5222例外:XMPPError连接到192.168.0.1:5222; :远程服务器错误(502)

我试图找到对谷歌的解决方案,但没有得到任何的成功,

i try to find solution on google, but not get any success,

ConnectionConfiguration connConfig = new ConnectionConfiguration(
                    Constants.TEST_HOST, Constants.PORT,
                    Constants.TEST_SERVICE);
            con = new XMPPConnection(connConfig);

            SASLAuthentication.supportSASLMechanism("PLAIN");
            connConfig.setSASLAuthenticationEnabled(true);
            con.connect();

我怎么能解决这个问题。感谢您的帮助提前

how can i fix this problem. Thanks for help in advance

推荐答案

在这个问题上经过多方考证。
我发现因为上面原因。

After many research on this issue. i found to reason for this as above.

1。可能是您的防火墙权限不允许连接断绝。

2。愿你的插座设置或服务器的IP就是变化。

在我的病例
我重新启动我的服务器。并删除防火墙设置。它解决了我的问题。

In my case- i restart my server. and remove firewall setting. Its resolved my problem

所以,请检查您的断绝插座的设置,服务器IP地址和防火墙的权限。

so please check your sever socket setting, server ip address and firewall permissions.

和还确保与端口5222(用于设备和9090浏览器)服务器始终启用。

and also make sure that server with port 5222 (for device and 9090 for browser ) is always enable.

这篇关于Openfire的连接例外:远程服务器错误(502)xmpperror连接到5222的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆