Getting a "No response received" after upgrading to Smack 4.1

Hi Folks,

I’ve been unable to receive xmpp messages since I made an upgrade from version 3.3. I suspect there is something wrong with my XMPPTCPConfiguration but I haven’t been able to figure it out. Any help would be appreciated. Thanks!

Connection Created: Host-[], Port-[5223], Service-[]

2015-04-17 13:59:13,577 [pool-3-thread-1] ERROR IngestService - No response received within reply timeout. Timeout was 10000ms (~10s). Used filter: No filter used or filter was ‘null’.

This was my working setup with Smack 3.3

** ***ConnectionConfiguration config = new ConnectionConfiguration(url,port); *

  • config.setSecurityMode(ConnectionConfiguration.SecurityMode.enabled);*

  • config.setSocketFactory(new DummySSLSocketFactory());*

  • config.setCompressionEnabled(true);*

  • config.setReconnectionAllowed(true);*

  • connection = new XMPPConnection(config); *

  • filter = new FromContainsFilter(pfilter);*

  • myCollector = connection.createPacketCollector(filter);*

  • … *

  • connection.connect();*

  • connection.login();*

And this is what I’m doing now

Builder builder = XMPPTCPConnectionConfiguration.builder();

  • try {*

  •  SSLContext context=SSLContext.getInstance("TLS");*
  •   context.init(null,new TrustManager[]{new DummyTrustManager()},null);*
  •   builder.setCustomSSLContext(context);*
  •   } catch (KeyManagementException | NoSuchAlgorithmException e) {*
  •   e.printStackTrace();*
  •   }*
  • XMPPTCPConnectionConfiguration conf =*

  • builder.setServiceName(url).setUsernameAndPassword(username, password)*

  •  .setPort(port) *
  •  .setSecurityMode(ConnectionConfiguration.SecurityMode.required)*
  •  //.setSocketFactory(new DummySSLSocketFactory())*
  •  .setDebuggerEnabled(true)*
  •  .setHost(url)*
  •  .setCompressionEnabled(false).build();*

Please follow the instructions found at sue when asking for help. Thank you.

This is what I see in the **Raw Sent Packets **tab of the Smack Debug Window.

<stream:stream xmlns=‘jabber:client’ to=‘’ xmlns:stream=‘’ version=‘1.0’ from=‘’ xml:lang=‘en’>


The wiki site also talks about the full stacktrace of the exception. Furthermore please show not only the sent but also the received XMPP elements.

i am getting the same exception while creating roster group,

My code is,

Roster roster = Roster.getInstanceFor(xmppconnection);

xmppconnection.setPacketReplyTimeout(1000 * 60 * 5);


and got the following exception,

  • org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: IQReplyFilter: iqAndIdFilter (AndFilter: (OrFilter: (IQType
    at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio

at org.jivesoftware.smack.AbstractXMPPConnection$ :1438)

at java.util.concurrent.Executors$

at java.util.concurrent.FutureTask$Sync.innerRun(


at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (

at java.util.concurrent.ScheduledThreadPoolExecutor$

at java.util.concurrent.ThreadPoolExecutor.runWorker(

at java.util.concurrent.ThreadPoolExecutor$


Let me know what is the issue.

Thanks in advance,


Again, Please follow the instructions found at sue when asking for help. Thank you.

Getting a “No response received” after upgrading to Smack 4.1

And please create a new thread as this maybe the same exception but with a different API call.


i have created a new thread and added full stacktrace and smack exchange streams in it. please find in Getting a “No response received” after upgrading to Smack 4.1 during roster creation .