Questions tagged [smack]

Smack is an XMPP (Jabber) client library written in Java for Android and Java SE. It provides a simple API allowing developers to write clients for XMPP services.

Smack is an Open Source Java library for writing XMPP based clients. It provides access to the core functionality as well as many of the XMPP extensions. Smack supports both standard Java and Android since version 4.1 and obsoletes the fork.

Note: For Linux SMACK (Simplified Mandatory Access Control Kernel) see .

1476 questions
-1
votes
1 answer

MultiUserChat always returns not connected although I am online in the server

I am having a strange problem. I have a XMPPTCPCONNECTION set up to a remote server. I then created a chatroom in the server from the smack library. Now when I join the room, I can see that I am online in the server and the spark client also shows…
Sumit Bahadur
  • 69
  • 3
  • 11
-1
votes
2 answers

Smack 4.1.3 org.jivesoftware.smack.chat package not found

Following is our progress- Installed openfire server on Amazon Ubuntu instance. Developing Android client app using smack 4.1.3 lib. We have developed Registration and Login module till now. Issue we are facing- Now that we are trying to develop…
Sumit
  • 401
  • 2
  • 6
  • 21
-1
votes
2 answers

Integrating Smack 4.1 in android

I have gone through smack 4.1 documentation as given https://github.com/igniterealtime/Smack/tree/master/documentation . But I'm not getting connected when try to connect to openfire server. Can anyone give me a working code. My openfire…
Nabeel K
  • 5,938
  • 11
  • 38
  • 68
-1
votes
1 answer

Xmpp connection failed with smack

I currently have an android application in which I use the smack library to connect to my XMPP server. This application has already worked in the past, but since today, my tablet could not connect to the server. On the line :…
Spierki
  • 241
  • 5
  • 16
-1
votes
1 answer

Could not use Tutorial "Java sample implementing an XMPP-based App Server using the Smack"

From start I'am new to Java Developing... I've tried to use the folowing Java code on NetBeans IDE: import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode; import…
-1
votes
1 answer

Unable to connect to local Openfire server (using smack api)

i am trying this code on android to connect to my local XMPP Server Thread t = new Thread(new Runnable() { @Override public void run() { // Create a connection ConnectionConfiguration connConfig = new…
-1
votes
1 answer

java.lang.ClassNotFoundException: org.jivesoftware.smack.SmackException$NotConnectedException Smack

Smack is not working with the servlet. However, it works perfectly fine when I copy-paste my code and run it as a desktop application. The error occurs at ChatServer.java:42 Here's my code: Servlet (ChatServer.java): import…
-1
votes
1 answer

Can't connect to XMPP(Openfire) server in Smack. SASLAuthentication exception

I am getting the following error for connecting Smack libraries to Openfire server. I googled and searched in stack-overflow but couldn't solve my problem The Exception is as follows Exception in thread "main"…
Indzi
  • 390
  • 5
  • 24
-1
votes
2 answers

Where to download the latest "release" version of asmack source code

I am trying to download the source code of asmack library. I found the link on github.com and some other sites. But no source code is found. On https://code.google.com/p/asmack/downloads/list But the last commit is in 2010, it is old. On…
-1
votes
1 answer

Friend request send and Accept in Openfire

I am using openfire server in android. Now I need to check how many users are online and who are they. My connection is OK. But I need to add or become a friend of those user. How to solve? Please anyone Help me. Output like as Called when the…
Mahbubur roni
  • 27
  • 2
  • 8
-1
votes
1 answer

Incomplete and random numbers of Friends list using asmack

I am getting random numbers of friends from the asmack roster in android. i am using roster = connection.getRoster(); Collection entries = roster.getEntries(); return roster.getEntries(); please help...
-1
votes
1 answer

Unable to return group list in xmpp with asmack version asmack-android-8-4.0.6.jar

I am unable to get group list with asmack version asmack-android-8-4.0.6.jar from XMPP I tried all the possible methods to get group names from xmpp,I was able to get in Pidjin clinet but not able to get using asmack,here is the code am using to get…
kondal
  • 358
  • 1
  • 6
  • 22
-1
votes
1 answer

How to call java servlet's doGet method from smack library's packetlistener?

I'm using smack library to receive messages from my android application to the server. Below is my code: String username=this.GCM_SENDER_ID+"@gcm.googleapis.com"; String password=this.GCM_SERVER_KEY; config = new…
s3e3
  • 111
  • 1
  • 2
  • 8
-1
votes
1 answer

How to handle the recording issues in jmeter? (i.e) Smack plugin activities are not recording in JMeter

I am trying to make a performance testing by using the JMeter for the User registration process in Chat application,which is developed by using openfire and XMPP. I am providing the different user details through CSV Data set.The issue i am facing…
Baskaran
  • 3
  • 3
-1
votes
1 answer

Smack MUC invitation

I there any way to listen for an incoming MultiUserChat using the regular packet filter. Right now i have a class that handles all incoming packets and deals with them according to the type. For example if the packet is an instance of message then…
Maclaren
  • 259
  • 3
  • 13