powered by Jive Software

No response from the server

i m using smack API on eclipse…with ejabberd 2.1.5 version

i m geeting No response from the server.: .

code::

private ConnectionConfiguration configuration = new ConnectionConfiguration(“dummy2040”);

configuration.setCompressionEnabled(false);
configuration.setSASLAuthenticationEnabled(true);
configuration.setSecurityMode(SecurityMode.disabled);
connection = new XMPPConnection(configuration);

userName=“dummy”;

password=“dummy” ;

connection.connect();

SASLAuthentication.unregisterSASLMechanism(“DIGEST-MD5”);

connection.login(userName, password);

other common code for sending and receiving message…

but still i am getting error :::

No response from the server.:
at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSession(SASLA uthentication.java:430)
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 331)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)

can anybody help on this topic…how to handle with this type of situation…