openfire

'remote-server-timeout' exception as I try to connect to the server

99封情书 提交于 2019-12-02 12:44:19
While trying to connect to openfire server through the following code : Connection connection = new XMPPConnection("https://192.168.0.101:5222"); connection.connect(); I get an exception which says : https://192.168.0.101:5222:5222 Exception: Could not connect to https://192.168.0.101:5222:5222.; : remote-server-timeout(504) What could be the reason for this ? Note : I have allowed openfire fire server through the firewall.I also tried putting off the firewall, but the same result.Server is my own machine. The same machine on which I am trying to run the program. You can use Connection

How can i listen incoming subscription request in smack openfire android

孤人 提交于 2019-12-02 12:41:01
I am creating an android chat application using smack openfire.The problem that i am facing is i know how to send and accept subscription request but how can i know if i have received any subscription request. I have used Stanza listener but the listner is only listening to incoming chat messages not subscription request. Below is my code StanzaFilter filter=new StanzaTypeFilter(Message.class); PacketCollector collector=connection.createPacketCollector(filter); connection.addAsyncStanzaListener(new StanzaListener() { @Override public void processPacket(Stanza packet) throws SmackException

service unavailable error in openfire message archive management

杀马特。学长 韩版系。学妹 提交于 2019-12-02 11:16:27
I am using monitoring plugin 1.6.0 with openfire 4.2.0. Following is the screenshot of archive settings on openfire admin Console. also following is the screenshot of plugins I am using with this. My Issue as you can see the plugin is installed. but when I am trying to fetch chat history with following code : I am getting service unavailable response. func fetchChatHistoryFromServer(completionHandler completion: @escaping FetchChatHistoryCompletionHandler) { let iq = DDXMLElement(name: "iq") iq.addAttribute(withName: "type", stringValue: "set") iq.addAttribute(withName: "id", stringValue:

How the XMPP client must notified of new Message, when app is in background?

会有一股神秘感。 提交于 2019-12-02 08:09:11
问题 Considering OPENFIRE not supports XEP-0357 (Push Notification), then how the client must notified of new messages? Does the user connection must be always AVAILABLE? But in other messaging apps like whatsApp, when user goes to background, it's presence turns into UNAVAILABLE. Other problem is for developing iOS version of it that does not supports BACKGROUND-SERVICE like as in android exists. What the other IM clients do in this situation? 回答1: I founded my answer myself. I developed a local

openfire performance tunning --- 第一步

。_饼干妹妹 提交于 2019-12-02 08:00:30
在做性能测试的时候,我们根据出现的问题来提出相应的解决办法。 一般情况下,第一次碰到的问题主要集中在同时在线人数。通过一些系统配置来提高在线人数的数量。 系统配置如下: solaris, openfire 3.7.1 同时在线人数主要涉及到TCP最大连接数的修改和配置。 主要参考资料来自oracle 官方网站: http://docs.oracle.com/cd/E19683-01/817-2180-10/pt_chap6.html 这里面需要修改4个参数: rlim_fd_max rlim_fd_cur tcp_conn_req_max_q tcp_conn_req_max_q0 这是我的第一步。 来源: oschina 链接: https://my.oschina.net/u/145002/blog/38211

Unable to connect XMPPFramework to Openfire server in iOS

爱⌒轻易说出口 提交于 2019-12-02 04:27:07
问题 I am working on an iOS chat app where user login to app. I've downloaded XMPPFramework from GitHub XMPPFramework. I am trying to connect XMPP framework with Openfire server by following this tutorial. Here is my code to connect XMPP to openfire. - (BOOL)connect { [self setupStream]; [xmppStream setHostName:@"192.168.1.5"]; [xmppStream setHostPort:5222]; NSString *jabberID = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"]; NSString *myPassword = [[NSUserDefaults

Get XMPP Chat History OpenFire

蓝咒 提交于 2019-12-02 02:47:12
I am trying to implement a chat application using XMPPFramework in iOS, using OpenFire server. My chat is working fine, I am trying to retrieve chat history from server. Ofcourse I have enabled Message Archiving on Server. This is the Request I am sending <iq type="get"> <retrieve xmlns="urn:xmpp:archive" with="dev_user80@mydomain"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> This is the response I am getting. <iq xmlns="jabber:client" type="error" to="dev_user103@mydomain/6i0qoo9tek"> <retrieve xmlns="urn:xmpp:archive" with="dev_user80@mydomain"> <set

How the XMPP client must notified of new Message, when app is in background?

余生长醉 提交于 2019-12-02 02:47:01
Considering OPENFIRE not supports XEP-0357 (Push Notification), then how the client must notified of new messages? Does the user connection must be always AVAILABLE? But in other messaging apps like whatsApp, when user goes to background, it's presence turns into UNAVAILABLE. Other problem is for developing iOS version of it that does not supports BACKGROUND-SERVICE like as in android exists. What the other IM clients do in this situation? I founded my answer myself. I developed a local API in my server, to send push notification. This local API will have all the users tokens per jids (when

Unable to connect XMPPFramework to Openfire server in iOS

不羁的心 提交于 2019-12-02 00:29:34
I am working on an iOS chat app where user login to app. I've downloaded XMPPFramework from GitHub XMPPFramework . I am trying to connect XMPP framework with Openfire server by following this tutorial . Here is my code to connect XMPP to openfire. - (BOOL)connect { [self setupStream]; [xmppStream setHostName:@"192.168.1.5"]; [xmppStream setHostPort:5222]; NSString *jabberID = [[NSUserDefaults standardUserDefaults] stringForKey:@"userID"]; NSString *myPassword = [[NSUserDefaults standardUserDefaults] stringForKey:@"userPassword"]; if (![xmppStream isDisconnected]) return YES; if (jabberID ==

ubuntu下设置开机自启动项

£可爱£侵袭症+ 提交于 2019-12-02 00:17:54
这里说明, Ubuntu 中系统没有了 RH 系统中的 chkconfig 命令 ! 可用一些小工具来管理 Ubuntu 的启动选项: 小工具 rcconf : #sudo apt-get rcconf #sudo apt-get install rcconf root 下运行: #sudo rcconf 功能更全的工具 : sysv-rc-conf #sudo apt-get update #sudo apt-get install sysv-rc-conf 运行: #sudo sysv-rc-conf 也可以直接加入启动程序,例如把 /etc/init.d/red5 加入到系统自动启动列表中: #sudo sysv-rc-conf red5 on 其他使用方法见: google::Ubuntu::sysv-rc-conf 命令用法 也可以直接修改 直接改 /etc/rc0.d ~ /etc/rc6.d 和 /etc/rcS.d 下的东西, S 开头的表示启动, K 开头的表示不启动, 例如:想关闭 Red5 的开机自动启动,只需 #sudo mv /etc/rc2.d/S20red5 /etc/rc2.d/K20red5 就可以了。 Ubuntu自动启动程序 首 先,linux随机启动的服务程序都在/etc/init.d这个文件夹里,里面的文件全部都是脚本文件