MUC presence error does not collected

I send presence to join MUC using MultiUserChat.join(Resourcepart nickname), server responded with auth error presence, but it was not collected.

Checked on Smack 4.2-rc3 also.

19:04:35 SENT (0):

19:04:35 RECV (0): Membership is required to enter this room

19:05:05.203 W/System.err: org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 30000ms (~30s). Waited for response using: AndFilter: (FromMatchesFilter (ignoreResourcepart): d51e7fa0-ffb6-40e9-a0d2-56a351036557@conference.example.com, StanzaTypeFilter: Presence, MUCUserStatusCodeFilter: status=110).

at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:2 53)

at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:335)

at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:691)

at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:583)

at com.xabber.android.data.extension.muc.RoomContact$1.run(RoomContact.java:197)

at com.xabber.android.data.application.Application$6.run(Application.java:439)

at java.lang.Thread.run(Thread.java:761)

Another rough corner case of XEP-0045. As always: Thanks for reporting. Should be fixed with https://github.com/Flowdalic/Smack/commit/2ee7569908f7f59378a0a16d482ba80e44cc60 67, which went into 4.2.0-rc4-SNAPSHOT, now available on Maven Central’s snapshot repositories. Please test and report back if it fixes the issue for you.

Seems that normal responce got broken now:

12:04:20 SENT (0):

12:04:20 RECV (0):

12:04:20.993 D/RosterListener: presenceChanged Presence Stanza [to=grigory.fedorov@example.com/12603163117716414001487574138295152,from=1e2bb476-c82b-463e-bf01-6587f5aa1d31@conference.example.com/grigory.fedorov,id=897rN-784,type=available,]

12:04:50.762 W/System.err: org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 30000ms (~30s). Waited for response using: AndFilter: (StanzaTypeFilter: Presence, OrFilter: (AndFilter: (FromMatchesFilter (ignoreResourcepart): 1e2bb476-c82b-463e-bf01-6587f5aa1d31@conference.example.com, MUCUserStatusCodeFilter: status=110)), AndFilter: (FromMatchesFilter (full): 1e2bb476-c82b-463e-bf01-6587f5aa1d31@conference.example.com/grigory.fedorov, StanzaIdFilter: id=897rN-784, PresenceTypeFilter: type=error)).

at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:2 53)

at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:345)

at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:701)

at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:593)

Bracketing fail. Pushed new version of the commit and new artifacts to Maven Central. Please report back if it fixes the issue. Sorry for the inconvenience.

Looks much better now! Thanks!

2 posts were split to a new topic: Can not join MUC: No response exception