NoResponseException when trying to create Instant room

Hello,

I am trying to get create a room using Smack API 4.1.1. However I keep getting a NoResponseException when a call to multiUserChat.create(“MyRoom”) is called. I have actually followed the sample from this document:

http://www.igniterealtime.org/builds/smack/docs/4.1.1/documentation/extensions/m uc.html

Connection credentials

domain = ‘adastra.re

serviceName = ‘adastra.re

resource = ‘work’

port = 5222

username = ‘sunonemobile’

password = ‘xxxxxxxx’

Debug logs

11:02:10 AM SENT (0): <stream:stream xmlns='jabber:client' to='adastra.re' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
    11:02:10 AM RECV (0): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='adastra.re' id='6a5f71ca-125b-43dd-9c39-8cbb92522e83' xml:lang='en' xmlns='jabber:client'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required/></starttls></stream:features>
    11:02:10 AM SENT (0): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'></starttls>
    11:02:10 AM RECV (0): <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
    11:02:11 AM SENT (0): <stream:stream xmlns='jabber:client' to='adastra.re' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
    11:02:11 AM RECV (0): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='adastra.re' id='e9c0a687-093d-4cdc-81d3-bd88aa96b2ba' xml:lang='en' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms></stream:features>     11:02:11 AM SENT (0): <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'>biwsbj1zdW5vbmVtb2JpbGUscj1DUmo9OmQpPHB2RXp+c0Z8dXdtMFx0aCcvVTZzMCJWaQ==</auth>
    11:02:11 AM RECV (0): <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cj1DUmo9OmQpPHB2RXp+c0Z8dXdtMFx0aCcvVTZzMCJWaTA4ZDEyMDZiLWY1NTItNGIwMy1hMmRiLTI0N2I2ODc1NWZhYSxzPVpqUTNZVFEzWkdNdE9USTNNaTAwTTJabExXRmlOMlV0WVdNeU5qY3dOVEkzTXpWaixpPTQwOTY=</challenge>
    11:02:11 AM SENT (0): <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>Yz1iaXdzLHI9Q1JqPTpkKTxwdkV6fnNGfHV3bTBcdGgnL1U2czAiVmkwOGQxMjA2Yi1mNTUyLTRiMDMtYTJkYi0yNDdiNjg3NTVmYWEscD1ud1FvRWZTRVdGaUlrL2x2N1ovakYvREg0U1k9</response>
    11:02:11 AM RECV (0): <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dj1VQjhRb2VNTm5WWHI2WCs3QjdtZ2Z4S0c5R2M9</success>
    11:02:11 AM SENT (0): <stream:stream xmlns='jabber:client' to='adastra.re' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' id='e9c0a687-093d-4cdc-81d3-bd88aa96b2ba' xml:lang='en'>
    11:02:11 AM RECV (0): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='adastra.re' id='a69f4ed6-a934-42df-a5da-b3042ec1bf74' xml:lang='en' xmlns='jabber:client'><stream:features><ver xmlns='urn:xmpp:features:rosterver'/><c hash='sha-1' ver='gSMoIW481fAxMwFFgpYGrKO9pWM=' node='http://prosody.im' xmlns='http://jabber.org/protocol/caps'/><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><required/></bind><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session></stream:features>
    11:02:11 AM SENT (0): <iq id='GNxzf-3' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>work</resource></bind></iq>
    11:02:12 AM RECV (0): <iq id='GNxzf-3' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>sunonemobile@adastra.re/work</jid></bind></iq>
    11:02:12 AM User logged (0): sunonemobile@adastra.re:5222/work
    11:02:12 AM SENT (0): <iq id='GNxzf-5' type='get'><query xmlns='jabber:iq:roster'></query></iq>
    11:02:12 AM XMPPConnection authenticated (0)     11:02:12 AM SENT (0): <presence id='GNxzf-6'><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='NfJ3flI83zSdUDzCEICtbypursw='/></presence>
    11:02:12 AM SENT (0): <presence to='sunonemobile@adastra.re/MyRoom' id='GNxzf-7'><x xmlns='http://jabber.org/protocol/muc'></x><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='NfJ3flI83zSdUDzCEICtbypursw='/></presence>
    11:02:12 AM RECV (0): <iq id='GNxzf-5' type='result' to='sunonemobile@adastra.re/work'><query ver='11' xmlns='jabber:iq:roster'><item jid='sunone@adastra.re' subscription='none'/></query></iq>
    11:02:12 AM RECV (0): <presence id='GNxzf-6' from='sunonemobile@adastra.re/work'><c hash='sha-1' ver='NfJ3flI83zSdUDzCEICtbypursw=' node='http://www.igniterealtime.org/projects/smack' xmlns='http://jabber.org/protocol/caps'/></presence>

Exception thrown

com.sunsystems.smackclient.SmackClientSpec > Create an instant room for xmpp adastra.re server STANDARD_ERROR
    org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: AndFilter: (FromMatchesFilter (full): sunonemobile@adastra.re/myroom, StanzaTypeFilter: org.jivesoftware.smack.packet.Presence).
    at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackException.java:106)
    at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackException.java:90)
    at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:229)
    at org.jivesoftware.smackx.muc.MultiUserChat.enter(MultiUserChat.java:311)
    at org.jivesoftware.smackx.muc.MultiUserChat.createOrJoin(MultiUserChat.java:400)
    at org.jivesoftware.smackx.muc.MultiUserChat.createOrJoin(MultiUserChat.java:376)
    at org.jivesoftware.smackx.muc.MultiUserChat.create(MultiUserChat.java:354)
    at com.sunsystems.smackclient.SInstantRoom.createRoom(SInstantRoom.java:65)
    at com.sunsystems.smackclient.SmackClient.createNewRoom(SmackClient.java:226)

Code snippet of create room function

public boolean createRoom() {
        MultiUserChatManager multiUserChatManager = MultiUserChatManager.getInstanceFor(mClientConnection);
        MultiUserChat multiUserChat = multiUserChatManager.getMultiUserChat("sunonemobile@adastra.re");         try {
            multiUserChat.create("MyRoom");
            multiUserChat.sendConfigurationForm(new Form(DataForm.Type.submit));
                       return true;
        }
        catch(NoResponseException ex) {
            ex.printStackTrace();
        }
        catch(XMPPErrorException ex) {
            ex.printStackTrace();
        }
        catch(NotConnectedException ex) {
            ex.printStackTrace();
        }
        catch(SmackException ex) {
            ex.printStackTrace();
        }         return false;
    }

Many thanks for any suggestions,

Is adastra.re the domain bare JID of a component providing a XEP-45 MUC service?

Hello,

The bare JID that I used to login into the ‘adastra.re’ xmpp server is ‘sunonemobile@adastra.re’ Connecting and logging in are successful.

The adastra.re is just a free xmpp server I am testing with. Sending peer to peer messages is also successful. However, I would like to do the multiuserchat starting by creating a new room.

Flow wrote:

Is adastra.re the domain bare JID of a component providing a XEP-45 MUC service?

adastra.re is the domain. However, I am not sure about the component that provides the XEP-45 MUC service. Would it be in some format like this ‘sunonemobile@conference.adastra.re’?

Many thanks for any more suggestions,

See MultiUserChatManager (Smack 4.1.1 API) getServiceNames()

This problem has been resolved now.

We installed the latest openfire and have been using that as our xmpp server.

getServiceNames() returned ‘develop.nagios-office’

We then created a Instant room using the following

MultiUserChat multiUserChat = multiUserChatManager.getMultiUserChat(“stevesroom@develop.nagios-office”);

multiUserChat.create(“InstantRoom”);