Time out Exception in XMPPBOSHConnection :

Hi ,

I am trying to establish a XMPPBOSHConnection.

with following configuration.

BOSHConfiguration conf = BOSHConfiguration.builder().setUsernameAndPassword(“xyz”, “123”)

.setFile("/http-bind/").setHost(“10.0.0.10”).setPort(5280).setServiceName(“10.0 .0.10”)

.build();

//conf.setRosterLoadedAtLogin(false);

XMPPBOSHConnection connection = new XMPPBOSHConnection(conf);

setUsedHostAddress(connection.getHost().get(0));

try {

connection.connect();

connection.login();

}catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

and i m getting the following exception: -

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

at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:106)

at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:85)

at org.jivesoftware.smack.SynchronizationPoint.checkForResponse(SynchronizationPoi nt.java:253)

at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWait(Synchronizatio nPoint.java:146)

at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWaitOrThrow(Synchro nizationPoint.java:125)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:837)

at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.ja va:360)

at BoshTestJava.runTestSubclass(BoshTestJava.java:55)

at BoshTestJava.main(BoshTestJava.java:23)

I m using Prosody server:

on server side i m getting the following logs:

May 22 17:18:55 socket
debug
server.lua: accepted new client connection from 10.0.0.26:37919 to 5280
May 22 17:34:13 socket
debug
server.lua: client 10.0.0.26:37919 read error: closed
May 22 17:34:13 socket
debug
server.lua: closed client handler and removed socket from list

So can any one tell me how to establish a successful bosh connection.

Any help is greatly appreciated.

Thanks in advance.