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-[myhost.com], Port-[5223], Service-[myhost.com]

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 https://github.com/igniterealtime/Smack/wiki/How-to-ask-for-help-or-report-an-is 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=‘mysite.com’ xmlns:stream=‘http://etherx.jabber.org/streams’ version=‘1.0’ from=‘sumea@mysite.com’ xml:lang=‘en’>

</stream:stream>

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);

roster.createGroup(groupName);

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 n.java:106)

at org.jivesoftware.smack.AbstractXMPPConnection$6.run(AbstractXMPPConnection.java :1438)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (ScheduledThreadPoolExecutor.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:292)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

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

Let me know what is the issue.

Thanks in advance,

Dharani

Again, Please follow the instructions found at https://github.com/igniterealtime/Smack/wiki/How-to-ask-for-help-or-report-an-is 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.

hi,

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 .