I tried to join MUC room using the below code.
MucEnterConfiguration.Builder mucEnterConfigurationBuilder = muc.getEnterConfigurationBuilder(Resourcepart.from(nickName)); muc.join(mucEnterConfigurationBuilder.build());
But it always throwing the exception "org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout.
Timeout was 5000ms (~5s).
I searched a lot related this issue on google but no luck…
I’m using smack 4.3.0 version in my android app. Could you please help me to overcome this issue.
Does joining without the MucEnterConfiguration work? What server are you using? Did you check the stanza trace, to verify that no response was given by the server? What do the server logs say?
You did not really post a stanza trace, so I can only guess.
Did you receive a reply stanza or not?
Which version of Openfire are you using?
That definitely sounds like a bug then, as this kind of stuff normally works.
The timeout is often caused by blocking operations being run in a synchronized event listener, so please check, that this is not the case here. @Flow can better explain that kind of bug though.
We have the below code to join the room
EntityBareJid mucJid = JidCreate.entityBareFrom(chatRoom);
MultiUserChat muc = MultiUserChatManager.getInstanceFor(xmppConnection).getMultiUserChat(mucJid);
Presence presence = new Presence(Presence.Type.available);
xmppConnection.sendStanza(presence);
if (!muc.isJoined())muc.join(Resourcepart.from(userName));
The following exception throws when we trying to join the chat room
org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Waited for response using: AndFilter: (StanzaTypeFilter: Presence, OrFilter: (AndFilter: (FromMatchesFilter (ignoreResourcepart): farm@conference.xmpp-server.c.aximsoft-prod.internal, MUCUserStatusCodeFilter: status=110), AndFilter: (FromMatchesFilter (full): farm@conference.xmpp-server.c.aximsoft-prod.internal/abdul, StanzaIdFilter: id=byRFt-21, PresenceTypeFilter: type=error))).
In particular, we need to determine if there is a) really no response from the server or b) a response which is not matched by the related stanza filter. For that we need the XMPP stanza trace (as Paul already requested).