rocks.xmpp.core.session.NoResponseException when trying to enter a group chat

Issue #34 closed
cmsimike created an issue

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)

  1. cmsimike 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

  2. Christian Schudt repo owner

    This should be fixed in version 0.5.0 (which is now in Maven Central). If you think it's not, please reopen.

  3. Log in to comment