openfire

Openfire: Offline UTF-8 encoded messages are saved wrong

爱⌒轻易说出口 提交于 2019-12-01 10:12:21
We use Openfire 3.9.3. Its MySql database uses utf8_persian_ci collation and in openfire.xml we have: ...<defaultProvider> <driver>com.mysql.jdbc.Driver</driver> <serverURL>jdbc:mysql://localhost:3306/openfire?useUnicode=true&amp;characterEncoding=UTF-8</serverURL> <mysql> <useUnicode>true</useUnicode> </mysql> .... The problem is that offline messages which contain Persian characters (UTF-8 encoded) are saved as strings of question marks. For example سلام (means hello in Persian) is stored and showed like ????. MySQL does not have proper Unicode support, which makes supporting data in non

Openfire 的安装和配置

若如初见. 提交于 2019-12-01 08:29:56
http://www.cnblogs.com/hoojo/archive/2012/05/17/2506769.html Android XMPP 例子(Openfire+asmack+spark) http://www.eoeandroid.com/thread-153213-1-1.html #征文再续#Android基于XMPP Smack Openfire开发IM(一) http://www.apkbus.com/forum.php?mod=viewthread&tid=121247 移动开发:利用smack实现基于XMPP协议的简单通信demo http://www.xue5.com/Mobile/Mobile/653510.html 仿微信 聊天带表情发送 http://www.godcoder.com/home/page/2 来源: oschina 链接: https://my.oschina.net/u/1389206/blog/345357

iOS XMPP Framework with Openfire Server get all registered users

ぃ、小莉子 提交于 2019-12-01 07:44:19
问题 for my IOS Chatting Application i am using Openfire Server, i am retrieving particular user friends list but now i want to retrieve all registered users from Openfire Server. Please help me out and thanks in advance. 回答1: Hi Guys finally i found the alternative answer for this by searching users using their username. 1.for every contact i am adding emailid username@domainname like this. 2.in the place searchstring if we use domainname then we will get all registered users. //Request - (void

Openfire: Offline UTF-8 encoded messages are saved wrong

我只是一个虾纸丫 提交于 2019-12-01 07:12:19
问题 We use Openfire 3.9.3. Its MySql database uses utf8_persian_ci collation and in openfire.xml we have: ...<defaultProvider> <driver>com.mysql.jdbc.Driver</driver> <serverURL>jdbc:mysql://localhost:3306/openfire?useUnicode=true&amp;characterEncoding=UTF-8</serverURL> <mysql> <useUnicode>true</useUnicode> </mysql> .... The problem is that offline messages which contain Persian characters (UTF-8 encoded) are saved as strings of question marks. For example سلام (means hello in Persian) is stored

Why the openfire's user remains ONLINE even with no SESSION exists in sessions

筅森魡賤 提交于 2019-12-01 05:48:30
I'm developing an android app contains "Messaging" using OpenFire as an XMPP server and using Smack for android client. All functions works fine, but when a user is online(as you can see it's state in admin panel of openfire), and network connectivity disconnected suddenly, the session of it will be destroyed, but the user remains ONLINE in server! Thus, the packets not stores in server as an offline messages and will be sent to user even the user is offline and packets will be lost! I was tested an windows client (Spark), but when its connectivity losing, session in server will be destroyed

提高openfire最大连接数

做~自己de王妃 提交于 2019-12-01 04:09:49
提高openfire最大连接数 影响连接数的元素包含三种: 1) Linux的系统参数 2) 进程自身可以创建的线程数 3) Openfire自身系统参数 Linux系统参数 1. Ulimit –n 265535   在Linux平台上,无论编写客户端程序还是服务端程序,在进行高并发TCP连接处理时,最高的并发数量都要受到系统对用户单一进程同时可打开文件数量的限制(这是因为系统为每个TCP连接都要创建一个socket句柄,每个socket句柄同时也是一个文件句柄),这个数字可以设的更大。 此命令是临时更改,也可以通过修改文件/etc/security/limits.conf 2. net.ipv4.ip_conntrack_max=265535 系统允许的最大跟踪连接条目。在/etc/sysctl.conf文件中增加此属性,并运行>/sbin/sysctl.conf –p 另外在sysctl -p的时候A报error: 'net.ipv4.ip_conntrack_max' is an unknown key ,通过以下命令修正: modprobe ip_conntrack echo "modprobe ip_conntrack" >> /etc/rc.local 3. fs.file-max = 265535 系统级别的能够打开的文件句柄的数量,ulimit 是进程级别的 4.

send and receiving message using smack API

萝らか妹 提交于 2019-12-01 03:48:45
I have setup my open fire(jabber server) on local machine with two user testuser1 and testuser2 .using Spark client both users perform chat without any issue,it's nice. openfire IP -192.168.1.65 I want to use smack API(3.3.0) for send and receiving message. i have write sender side code to send message(with testuser1) and tested with Spark client(with testuser2) message received on testuser2 side,but when i try with java code to receive sender message ,i am not able to receive those publish messages. Sender.java import org.jivesoftware.smack.Chat; import org.jivesoftware.smack.XMPPConnection;

Why the openfire's user remains ONLINE even with no SESSION exists in sessions

*爱你&永不变心* 提交于 2019-12-01 03:46:56
问题 I'm developing an android app contains "Messaging" using OpenFire as an XMPP server and using Smack for android client. All functions works fine, but when a user is online(as you can see it's state in admin panel of openfire), and network connectivity disconnected suddenly, the session of it will be destroyed, but the user remains ONLINE in server! Thus, the packets not stores in server as an offline messages and will be sent to user even the user is offline and packets will be lost! I was

feature not implemented while retrieving archive message

非 Y 不嫁゛ 提交于 2019-12-01 02:25:19
问题 i am using Openfire 3.8.2 and have installed monitor plugin and enable the archiving for one to one chat. now i am able to view the archive chat on the server side but when i pass a stanza i am getting feature not implemented Request <iq type='get' id='334'> <list xmlns='urn:xmpp:archive' with='user4@mydomain.com'> <set xmlns='http://jabber.org/protocol/rsm'> <max>30</max> </set> </list> </iq> Response <iq type="error" id="334" to="user1@mydomain.com/458"> <error type="cancel" code="501">

SOCKS5 connection times out (GCDAsyncSocket). (OpenFire, XEP-0065 and iOS XMPPFramework)

故事扮演 提交于 2019-11-30 16:19:04
Problem : I am attempting a TURNSocket (XEP-0065 - SOCKS5) using the iOS XMPPFramework and an OpenFire Server. I want to be able to send and receive files. However, in most scenarios, the receiver returns no response. I currently suspect the problem is to do with the OpenFire proxy server, which times out! This is set up on the local network, and I have edited the hosts file to point to it. Note : The base of my code is from the following tutorial : http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-server-setup/ XML and Error : The sender sends the following XML