Hello, I'm new to Java and JavaFX and playing around with the Smack API for instant messaging. At moment I have a java file working for loggin in/out of a jabber server (Openfire), send message and receive messages. Log-in/out and send message is called from a javafx file. However, I'm struggling to get received messages to be displayed ...
I am connected to server(Xmpp)
but unable to send and receive packets at my psi client
Here is snippet of my code
POSClientIQ posclientiq = new POSClientIQ();
posclientiq.connectXMPPServer();
posclientiq.processMessage();
}
public void processMessage()
{ try{
final IQ iq1 = new IQ() {
public String getChildElementX...
Hi,
I'm trying to establish a connection to an XMPP server using smack.
ConnectionConfiguration cf = new ConnectionConfiguration("jabber.ccc.de");
cf.setTruststorePassword("changeme");
this.connection = new XMPPConnection(cf);
this.connection.connect();
this.connection.login("user", "password");
But whenever logging in I get an XMPPE...
I'm trying to get the Jabber ID for a nick in a multi user chat, but the following code returns only null:
class JabberMUCMessageListenerAdapter implements PacketListener {
private final MultiUserChat muc;
public JabberMUCMessageListenerAdapter(MultiUserChat muc) {
this.muc = muc;
}
@Override
public void ...
how to send xmpp message to component? if my component name is 'abc.domain.net', in my xmpp client(spark), i just add user 'abc.domain.net' ? any such example that using whack to listen to message?
I tried add abc.domain.net (component) as roaster inside spark. try send message, but inside whack processPacket(), it didn't trigger any...
Hi,
I want to create an application for Android that enables me to get the geolocation of a user. This has to be made as a client-server app and for the server side I'm using OpenFire.
For getting the user's location I would have to use XEP-0080, right? And SmackAPI also?
I'm completely new to XMPP and Smack, so if anyone could get me a...
I'm trying to use the latest Smackx trunk to get and then subscribe to a pubsub node. However, openfire just sends me a back an error: item not found (404).
I am instantiating the java objects from ColdFusion, so my code snippets might look funny but maybe someone will be able to tell me what I've forgotten.
Here's how I create the nod...
I am currently finding about how to build a XMPP client application on android 2.1.I came across this link which somewhat talks about the same problem.I am a newbie to android dev and thus found the solution given there to be difficult to digest.
The system currently has Active MQ as a JMS provider.My job is to fed the messages coming f...
Hi,
I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively.
Foll...
Hi
This is with regards to post here
I am able to connect my PC to the local tigase server setup locally(I am using Smack API). Now I am facing problems when I want to connect Android Phone to that server over Wi-Fi. I am able to connect to the local server by using client Beem for android.My XMPP Domain name of the server is my PC name...
Hi,
I'm working on a test suite for XMPP server. Currently I have implemented a client able to connect, create account, send stanzas taken from XML file, receive the reply, store it in another file and compare that with the expected output. I can create several clients, but I'm looking for concurrent operation.
How do I go about makin...
hi im trying to use the smack api to send/receive messages in facebook chat. im using:
host: chat.facebook.com
port: 5222
service: chat.facebook.com
username: my facebook [email protected]
password: my facebook password
logcat says im getting a "503 service unavailable error" but i cant work out why. my username/password work...
Hi all,
client1 can send txt message to client2 using
connection.getChatManager().createChat(to, this).sendMessage(message);
How to send other kind of message: like INFO message ? (client1 to client2) ?
Because I want, INFO message should not be displayed in the chat window....is it possible ? using smack, smackx library.
Many Th...
Hi I am new in Java. And its giving me a lot of stress. I need to chat with smack api and openfire server. For this my java code is below
import java.util.*;
import java.io.*;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.MessageListener;
import org.jivesoftware...
Hi,
I have developed an application on Android which makes use of the Smack API to connect to XMPP server.In this application I hardcode the User Sign-In information i.e. Username and Password.
xmpp.login("admin", "tigase");
and I get packets from a different user
PacketFilter filter = new
AndFilter(new
PacketTypeFilter(Me...
How to send invitation to gtalk contact with smack java library?
...
Hi
I am trying to connect to gmail using SMACK API through XMPP server. but getting the
error : SASL authentication failed using mechanism PLAIN
U can check a glimpse of code. I got it from net only
ConnectionConfiguration connConfig = new ConnectionConfiguration("talk.google.com", 5222, "gmail.com");
connection = new XMPPCon...
I have a button in Android Application. When the button is clicked following code is invoked:
TestSmack a = new TestSmack();
a.login("[email protected]","password");
I have a TestSmack class.....in the constructor of this class i wrote
public TestSmack ()
{
ConnectionConfiguration connConfig = new
ConnectionConfiguration("t...
I am having a problem with an application using Smack 3.1 and a server running openfire. Upon starting the application, it will read the last message on the node. This doesn't work since the messages are parsed, processed and placed into a db. Besides sending a message creation time in the payload, is there any way to stop this duplicati...
hi i am using smack.jar to connect to my gmail server. but xmppconnection.connet() is failing and it says that server is not responding . i am attaching the log. please help me out.
Exception in thread "main" Connection failed. No response from server.:
at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:164)
at or...