Openfire 3.9.3 is suitable for smack 4.1.0 beta ? I always connect failed, and it prompt time out

hello, all, I recently update to android 4.1.0 beta,but there’s a problem that I could not connect to the server, did anyone have the same problem?

here is my code and log.

I had import these library to project

jxmpp-core-0.4.1.jar

jxmpp-util-cache-0.4.1.jar

minidns-0.1.1.jar

smack-android-4.1.0-beta1.jar

smack-android-extensions-4.1.0-beta1.jar

smack-core-4.1.0-beta1.jar

smack-experimental-4.1.0-beta1.jar

smack-extensions-4.1.0-beta1.jar

smack-resolver-minidns-4.1.0-beta1.jar

smack-sasl-provided-4.1.0-beta1.jar

smack-tcp-4.1.0-beta1.jar

and the code

public static String SERVER = “192.168.1.141”;

public static int SERVER_PORT = 5223;

public static boolean DEBUG = true;

public XMPPTCPConnectionConfiguration getConfiguration(String username, String password) {

XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder();

builder.setUsernameAndPassword(username, password);

builder.setHost(IMConfiguration.SERVER);

builder.setPort(IMConfiguration.SERVER_PORT);

builder.setServiceName(IMConfiguration.SERVER);

builder.setCompressionEnabled(true);

builder.setDebuggerEnabled(IMConfiguration.DEBUG);

builder.setSendPresence(false);

builder.setRosterLoadedAtLogin(true); ! !

builder.setSecurityMode(SecurityMode.enabled);

builder.setHostnameVerifier(new HostnameVerifier() {

@Override

public boolean verify(String hostname, SSLSession session) {

return true;

}

});

try {

TLSUtils.acceptAllCertificates(builder);

} catch (KeyManagementException e) {

e.printStackTrace();

} catch (NoSuchAlgorithmException e) {

e.printStackTrace();

}

return builder.build();

}

connection = new XMPPTCPConnection(getConfiguration(username, password));

connection.setUseStreamManagement(true); //I enable this feature, openfire 3.9.3 is support this one

connection.setPacketReplyTimeout(10000); // it still throw NoResponseException

connection.connect();

connection.login();

the log

01-21 12:32:59.583: I/VCardProvider(1167): Could not enable secure processing parsing feature: http://javax.xml.XMLConstants/feature/secure-processing

01-21 12:32:59.611: D/dalvikvm(1167): GC_CONCURRENT freed 650K, 10% free 10911K/12103K, paused 11ms+0ms, total 20ms

01-21 12:32:59.635: D/SMACK(1167): SENT (0): <stream:stream xmlns=‘jabber:client’ to=‘192.168.1.141’ xmlns:stream=‘http://etherx.jabber.org/streams’ version=‘1.0’>

01-21 12:33:09.639: W/System.err(1167): org.jivesoftware.smack.SmackException$NoResponseException: No response received within packet reply timeout. Timeout was 10000ms (~10s)

01-21 12:33:09.639: W/System.err(1167): at org.jivesoftware.smack.SynchronizationPoint.checkForResponse(SynchronizationPoi nt.java:192)

01-21 12:33:09.639: W/System.err(1167): at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWait(Synchronizatio nPoint.java:114)

01-21 12:33:09.639: W/System.err(1167): at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWaitOrThrow(Synchro nizationPoint.java:97)

01-21 12:33:09.639: W/System.err(1167): at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:813)

01-21 12:33:09.639: W/System.err(1167): at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.ja va:355)

01-21 12:33:09.639: W/System.err(1167): at com.meetrend.chat.IMConnectionManager.login(IMConnectionManager.java:357)

01-21 12:33:09.639: W/System.err(1167): at com.meetrend.chat.IMConnectionManager.syncLogin(IMConnectionManager.java:175)

01-21 12:33:09.639: W/System.err(1167): at com.meetrend.chat.IMManager.login(IMManager.java:171)

01-21 12:33:09.639: W/System.err(1167): at com.meetrend.crm.ui.fragment.LoginFragment$1.run(LoginFragment.java:218)

01-21 12:33:09.639: W/System.err(1167): at java.lang.Thread.run(Thread.java:856)

Thanks in advance!

Please set SmackConfiguration.DEBUG_ENABLED to true and show use the XMPP trace. Edit: Oh, I just noticed that your logs shows a opening stream element.

Could you take a look at the server logs?