xmpp

Don't work file transfer (xep 0234, 0065)

▼魔方 西西 提交于 2019-12-25 00:38:02
问题 I am developing an application for the iPhone. I will implement a chat with GoogleTalk XMPP in our application. I want to transfer files using SOCKS5 Bytestream (http://xmpp.org/extensions/xep-0234.html # hash). I can not initialize the session. I send request "session-initiate". <jingle xmlns='urn:xmpp:jingle:1' action='session-initiate' initiator='romeo@montague.lit/orchard' sid='851ba2'> <content creator='initiator' name='a-file-offer'> The server returns an error "code= 503 service

Smack throws “Exception in thread ”Smack Packet Reader (0)“ java.lang.NoSuchMethodError: org.jivesoftware.smack.util.StringUtils.parseDate”

走远了吗. 提交于 2019-12-24 23:23:21
问题 I am trying to create Multi user chat group from App Server(TOMCAT),I have created a XMPP bot in a servlet. As per my requirement i have to create a Multiuser Chat group from App server(using xmpp bot on app server),and join user from android app. Creation of Multi user chat group and joining user from Android(using aSmack)works just fine,when i try to do same thing on appServer(TOMCAT),i am getting error, At first when I try to create MUC i was getting "Can't create a multi user chat (MUC)

Tsung connected users are not shown

别来无恙 提交于 2019-12-24 21:15:50
问题 I am trying to make load testing on xmpp ejabberd server using tsung.Every time i run my tsung.xml file no users are connected. here it's my tsung.xml file [root@chatting-server-test-2 .tsung]# vim tsung.xml <servers> <server host="localhost" port="5222" type="tcp"></server> </servers> <load> <arrivalphase phase="1" duration="3" unit="minute"> <users interarrival="1" unit="second"></users> </arrivalphase> </load> <options> <option type="ts_jabber" name="global_number" value="100"></option>

MUC configuration error : Couldn't find a field for the specified variable

 ̄綄美尐妖づ 提交于 2019-12-24 19:45:12
问题 I want to create group chat like whatsapp. i am using MUC service with ejabberd server. I have created group successfully but i unable to add member permanentantly in a group. I have also tried using send invitation and join group but it not work when user is offline. it is autometically remove user from group when it is offline. So i have tried belove code to add member in a group but it gives error : Couldn't find a field for the specified variable. Here is my code : EntityBareJid mucJid =

How to open the XMPP connection in react native throughout the entire app (using xmpp.js)?

老子叫甜甜 提交于 2019-12-24 19:41:34
问题 I am using XMPP.js inside react native and using web socket to connect with the xmpp server. I can successfully connect with the chat server but I have to navigate to different pages inside the App so I have 2 options: I must open a new XMPP connection to the xmpp chat server everytime I navigate to a new page (using react Navigation for navigating) and close the old connection [I think its not recommended] or I must open the connection in the starting and use the same connection throughout

How to make a XMPP client in a container like tomcat?

こ雲淡風輕ζ 提交于 2019-12-24 19:09:52
问题 I need to login, receive and send some messages over XMMP with a servlet loaded on tomcat container. I would like to know if there is any implementation already of this situation ? thx for ur time :) 回答1: I've found smack to be the best available java library for XMPP. It is however, far from perfect for server side development. In particular you need to think about your clustering early as smack connections hold alot of state. The api itself is very nice however, it's pretty trivial to

Getting bad request 400 error using asmack in android

ε祈祈猫儿з 提交于 2019-12-24 17:25:02
问题 I am trying to register a new user using my XMPP client using asmack library in Android on ejabberd server. The problem is that I am getting following error & the user is not being created on the server: bad-request(400) at org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:243) at in.ui.MainActivity$1$1$1.run(MainActivity.java:316) at java.lang.Thread.run(Thread.java:841) Following is the code: _xmppUsername = XMPPConfig.getStringUserInfoValue (XMPPConfig.XMPP_CLIENT_ID)

Show online buddy list issue using the ios xmpp Framework

人盡茶涼 提交于 2019-12-24 17:23:57
问题 I am building an iPhone application using the XMPP Framework. I have an issue in the code bellow: NSString *presenceType = [presence type]; // online/offline NSString *myUsername = [[sender myJID] user]; NSString *presenceFromUser = [[presence from] user]; if (![presenceFromUser isEqualToString:myUsername]) { if ([presenceType isEqualToString:@"available"]) { [self._chatDelegate newBuddyOnline:[NSString stringWithFormat:@"%@@%@", presenceFromUser, @"server.net"]]; } else if ([presenceType

Setup Eclipse for OpenFire server

╄→гoц情女王★ 提交于 2019-12-24 15:11:53
问题 I want to add configurations to the OpenFire server. I downloaded Openfire 3.9.2 from When I try to Open project eclipse says no project found, because it has no .project and .classpath and .settings file. What I should do to run openfire library project in eclipse, I am using eclipse EE edition. 回答1: Check this link to setup: http://www.programering.com/a/MDNyITNwATc.html Check this link to build: https://community.igniterealtime.org/docs/DOC-1200 contact me on skype : cvofjaspreet for

How to resolve undef error in ejabberd hook

雨燕双飞 提交于 2019-12-24 14:52:54
问题 I have added a customized module named mod_confirm_delivery in ejabberd which has compiled and added successfully but when i am sending a message an error is coming in my ejabberd error log file, That is: 2016-03-15 17:03:38.306 [error] <0.2653.0>@ejabberd_hooks:run_fold1:368 {undef,[{mod_confirm_delivery,send_packet,[{xmlel,<<"iq">>,[{<<"xml:lang">>,<<"en">>},{<<"type">>,<<"get">>},{<<"id">>,<<"aacfa">>}],[{xmlcdata,<<"\n">>},{xmlel,<<"query">>,[{<<"xmlns">>,<<"jabber:iq:roster">>}],[]},