Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11593

Smack4.1 No response received within reply timeout

$
0
0

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


Viewing all articles
Browse latest Browse all 11593

Trending Articles