I’‘m having this problem, not sure if it’'s smack, muc or my code but maybe you can help.
I’'m using smack 1.1.1.
In my group chat applet (jre-1.3.1) I’'m connecting to a group chat and all is ok the first time…joining, writing, messagelistener, participantslistener
After closing the window when I try joining the room again it gives me an error:
org.jivesoftware.smack.XMPPException: No response from server.
at org.jivesoftware.smack.GroupChat.join(GroupChat.java:184)
at org.jivesoftware.smack.GroupChat.join(GroupChat.java:148)
at ro.dc2.client.ui.ChatRoom.(ChatRoom.java:38)
at ro.dc2.client.ui.DC2.createNewRoom(DC2.java:185)
I’‘d suggest turning on Smack debug and looking at the packets to see what is going wrong. You could also try a different server just to see if it’'s some sort of server problem. Jabber.org has a public XMPP server that lets you creates groupchat rooms, for example.
I’‘ve got it. I was adding a listener the first time and since the connection wasn’'t dropped when closing the chat room it was adding the listener again when reopened.