powered by Jive Software

Can not join MUC: No response exception


#1

I have updated SMACK to 4.2.2 and I got the same error.

val nickName: Resourcepart = Resourcepart.from(“JohnDoe”)
muc.join(nickName) -> here I have Exception :persevere:
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:253) at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:355) at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:711)

Please hep !!!


MUC presence error does not collected
MUC presence error does not collected
#2

Always Show the full exception and its stacktrace. Please also have a look at https://github.com/igniterealtime/Smack/wiki/How-to-ask-for-help,-report-an-issue-and-possible-solve-the-problem-yourself


#3

com.rndmobile.com.smacktest E/AndroidRuntime: FATAL EXCEPTION: Thread-4
Process: com.rndmobile.com.smacktest, PID: 18225
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): room@server.com, MUCUserStatusCodeFilter: status=110), AndFilter: (FromMatchesFilter (full): room@server.com/johnDoe, StanzaIdFilter: id=5hmsx-23, PresenceTypeFilter: type=error))).
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:253)
at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:355)
at org.jivesoftware.smackx.muc.MultiUserChat.join(MultiUserChat.java:711)


#4

Here is code for version 4.2.2

val serverAdress = "XXX.XXX.XXX,XXX"
val conf = XMPPTCPConnectionConfiguration.builder()
conf.setHostAddress(InetAddress.getByName(serverAdress))
conf.setXmppDomain(JidCreate.domainBareFrom(serverAdress))
conf.setHost(serverAdress)
conf.setPort(5222)
conf.setSecurityMode(SecurityMode.disabled)
conf.setDebuggerEnabled(true)
conf.setSendPresence(true)
val connection = XMPPTCPConnection(conf.build())
connection.connect()
connection.login(“userName”, “password”)
val mucm = MultiUserChatManager.getInstanceFor(connection)
val services = mucm.xmppServiceDomains
if (services.isEmpty()) {
throw Exception(“No MUC services found”)
}
val service = services[0]
val room = JidCreate.entityBareFrom(“room@” + service)
val muc = mucm.getMultiUserChat(room)
val nickname: Resourcepart = Resourcepart.from(“nickname”)
muc.join(nickname) <-here is the Exception metioned before
muc.sendMessage(“Hello”)
Thread.sleep(1000)
muc.leave()
connection.disconnect()


#5

The same code for 4.1.1 - This WORKS !!!

val serverAdress = "XXX.XXX.XXX.XXX"
val conf = XMPPTCPConnectionConfiguration.builder()
conf.setServiceName(serverAdress)
conf.setHost(serverAdress)
conf.setPort(5222)
conf.setSecurityMode(SecurityMode.disabled)
conf.setDebuggerEnabled(true)
conf.setSendPresence(true)
val connection = XMPPTCPConnection(conf.build())
connection.connect()
connection.login(“userName”, “password”)
val mucm = MultiUserChatManager.getInstanceFor(connection)
val services = mucm.serviceNames
if (services.isEmpty()) {
throw Exception(“No MUC services found”)
}
val service = services[0]
val muc = mucm.getMultiUserChat(“room@” + service)
muc.join(“NickName”)
muc.sendMessage(“Hello”)
Thread.sleep(1000)
muc.leave()
connection.disconnect()


#6

Please do not split content over multiple posts. Also always make sure your code is readable by formatting it if you want people to look at it. Furthermore the most important part, the XMPP trace, is missing. See https://github.com/igniterealtime/Smack/wiki/How-to-ask-for-help,-report-an-issue-and-possible-solve-the-problem-yourself


#7

I am getting same issue. See my post
No response received within reply timeout . muc.join().

Can you please help me if you found any solution


#8

i get this too,this is full exception and its stacktrace.


#9

Hi @Flow, I’m facing something similar but when I’m creating the room and in the deafult room settings (in OF) I checked members-only.