AnsweredAssumed Answered

Smack4.1 No response received within reply timeout

Question asked by johnson on Apr 22, 2015
Latest reply on May 15, 2015 by Madhumita

HI,everyone:

When I making a xmpp connection, i receving a Exception below:

 

org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 5000ms (~5s). Used filter: No filter used or filter was 'null'.

 

the openfire version is 3.9.3 and the smack version is 4.1.0

 

my android code below:

======================================================

try {

 

  XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()

  .setUsernameAndPassword("aaa", "aaa")

  .setHost("192.168.1.105") //my IP address

  .setServiceName("adaofu") //my Server Name

  .setPort(5222)

  .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled)

  .setCompressionEnabled(false)

  .build();

 

 

  conn = new XMPPTCPConnection(config);

  conn.connect();

 

 

  } catch (SmackException e) {

  e.printStackTrace();

  } catch (IOException e) {

  e.printStackTrace();

  } catch (XMPPException e) {

  e.printStackTrace();

  }

 

 

================================

Where is the problem? 

 

Thanks in advance

 

johnson

Outcomes