Well things are better I can get in to the GroupChat send and receive messages but the ChatGroup still is not knowing it has joined. I get the same old exception and I can not get the Roster by asking it from the ChatGroup
Any ideas where to look for the cause?
Thanks,
Ted
I joine like this:
connection.addPacketListener(this,new OrFilter(new PacketTypeFilter(Message.class), new PacketTypeFilter(Presence.class )));
groupChat = connection.createGroupChat(room);
groupChat.addMessageListener(this);
groupChat.join(client.login.userName);
I process the packets like this:
public void processPacket(Packet packet){
try{
if (Message.class.isInstance(packet)){
Message msg = (Message)packet;
client.timedCya(jabbing,"[ "msg.getFrom() " ] "+msg.getBody());
System.out.println(“Is GroupChat joined? :”+groupChat.getJoined());
}
else if (Presence.class.isInstance(packet)){
setRoster();
}
}
catch(Exception e)
{
e.printStackTrace(System.out);
System.out.println("processPacket error "+e);
}
}
public void rosterModified(){
setRoster();
}
Here is the Exception and the Joined Status: (Mean while I talked with room several times)
Buildfile: build.xml
run:
Is GroupChat joined? :false
GroupChatClient line 59 Exception: org.jivesoftware.smack.XMPPExcept
ion: No response from server.