rocks.xmpp.core.session.NoResponseException when trying to enter a group chat
Hi,
I've been prototyping an xmpp bot and one of the features I'd like has to do with broadcasting messages to a room of users. I'm able to confirm that I can log in with my xmpp creds and send a direct message to me.
The issue is that I get the above exception when trying to enter a ChatRoom.
MultiUserChatManager multiUserChatManager = xmppSession.getExtensionManager(MultiUserChatManager.class);
ChatService chatService = multiUserChatManager.createChatService(Jid.valueOf("conference.im.xxxx.com"));
List<ChatRoom> publicRooms = chatService.getPublicRooms();
System.err.println("public rooms: " + publicRooms); // returns the correct amount of rooms
When I get to the next line, however, I get an exception:
bottest.enter("xxxxbot");
I've confirmed that my bot does indeed enter the room correctly (as I see it in the list of users) but it always throws an exception. I've set the time out to be 30 seconds but that did not help the situation.
Thoughts?
Comments (6)
-
reporter -
repo owner Hi,
unfortunately this was a bug in 0.4.0 which also was reported here: https://bitbucket.org/sco0ter/babbler/issue/12/presence-and-iq-responses-not-recognized
Last time I checked this, I couldn't reproduce it and was likely fixed with b1bbea55cf19f9fae62f545fbd902f7df0f8efdc
You could try out 0.5.0-SNAPSHOT and see if it works for you. (from Downloads section or Sonatype OSS Snapshot repository, which is linked at the main page)
-
reporter Thank you for the heads up! I tried searching prior to posting (I promise) but found nothing. I'll try the latest snapshot and see if that fixes it.
FWIW the XMPP server I'm connecting to is prosody. I can get you the specific version number if you're at all interested in debugging it on .4.0
-
repo owner - changed status to resolved
This should be fixed in version 0.5.0 (which is now in Maven Central). If you think it's not, please reopen.
-
repo owner - changed version to 0.5.0
-
repo owner - changed status to closed
- Log in to comment
I'm on version 0.4.0