powered by Jive Software

Exeception coming when sending a message after joining MUC room

Hi all,

I am getting the following exception when i am sending the message to the room, after joining the room in MultiUserChat.

java.lang.IllegalStateException: Not connected to server.

at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:665)

at org.jivesoftware.smackx.muc.MultiUserChat.sendMessage(MultiUserChat.java:1794)

Any help would be highly appreciated…

Thanks and Regards,

Siddharth