When I try to create a chat room I get a No response from server error:
No response from server.:
at org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:308)
at com.mike.stuff.chat.ChatController.createChatRoom(ChatController.java:92)
at com.mike.stuff.chat.ChatController.(ChatController.java:83)
Interestingly, the code prior to this attempts to login an agent, if they don’‘t have an account it creates them one, then it logs them in, it then gets a list of rooms using the getHostedRooms static method of MultiUserChat. All of this works fine. When it detects it needs to create a room because the room it needs to join doesn’'t yet exist it receives the no response error when calling the create method of MultiUserChat.
I have tried creating the room manually (no problem creating the room manually) through the web console and then joining the room via code but I get the same error (although on the join method).
I tried extending the server timout value (all the way to 30 seconds) with the SmackConfiguration class but that had no affect (and even if it did I wouldn’‘t like it because at best that is a band-aid as the server should be able to respond within the default 5 seconds or something else is wrong…plus it doesn’'t take the server a long time to respond on the login and createAccount calls.)
Any ideas?