What can I say, this is driving me nuts.
I can not join a room such that Smack will recognize it and will let me have the Roster.
Just downloaded the newest Smack, no difference. I added before a priority to the Smack login, I removed it. Now my Smack is new and original never the less it will not Join a room.
Maybe it will help so here is how the parent frame login:
login = loginSetter.getLogin();
connection = new XMPPConnection(login.server, login.port);
cya(jabbing, “[chacking for old messages]”);
connection.addPacketListener(this,myFilter);
try{
if(login.resource.equals("") || login.resource == null)
connection.login(login.userName, login.password);
else{ connection.login(login.userName, login.password ,login.resource /, login.priority/);}
}
(cya print messages to the users window)
Now when the user wants to join a room she clicks join which creates a new instance of the GroupChatClient and starts its thread
public class GroupChatClient extends JPanel implements PacketListener, Runnable, ActionListener, KeyListener,
ListSelectionListener, RosterListener, myJAB {
public GroupChatClient(TedsJabber client, XMPPConnection connection, String room){
this.connection = connection;
this.client = client;
this.room = room;
buildUI();
}
public void run() {
try{
connection.addPacketListener(this,new OrFilter(new PacketTypeFilter(Message.class), new PacketTypeFilter(Presence.class )));
groupChat = connection.createGroupChat(room);
groupChat.addParticipantListner(this);
groupChat.addMessageListener(this);
groupChat.join(client.login.userName);
setRoster();
}
Here I try to join a room that sends a legal presence.
tedweitz is here
My Sytem.out shous the errors (I interogate isJoined every time)
run:
GroupChatClient line 59 Exception: org.jivesoftware.smack.XMPPExcept
ion: No response from server.
Is GroupChat joined? :false
What can be wrong?
Thanks,
Ted