Android 客户端开发

问题汇总:

1.java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found

03-28 16:43:20.514: W/System.err(3387): java.security.KeyStoreException: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found
03-28 16:43:20.514: W/System.err(3387): 	at java.security.KeyStore.getInstance(KeyStore.java:119)
03-28 16:43:20.514: W/System.err(3387): 	at org.jivesoftware.smack.ServerTrustManager.<init>(ServerTrustManager.java:71)
03-28 16:43:20.514: W/System.err(3387): 	at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:858)
03-28 16:43:20.514: W/System.err(3387): 	at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:250)
03-28 16:43:20.524: W/System.err(3387): 	at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:46)
03-28 16:43:20.524: W/System.err(3387): 	at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:72)
03-28 16:43:20.524: W/System.err(3387): Caused by: java.security.NoSuchAlgorithmException: KeyStore jks implementation not found
03-28 16:43:20.524: W/System.err(3387): 	at org.apache.harmony.security.fortress.Engine.notFound(Engine.java:177)
03-28 16:43:20.524: W/System.err(3387): 	at org.apache.harmony.security.fortress.Engine.getInstance(Engine.java:151)
03-28 16:43:20.524: W/System.err(3387): 	at java.security.KeyStore.getInstance(KeyStore.java:116)
03-28 16:43:20.524: W/System.err(3387): 	... 5 more

解决方案:

				configuration.setSASLAuthenticationEnabled(false);
				configuration.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);  



你可能感兴趣的:(Android 客户端开发)