1
我正在開發Android中的聊天應用程序... 我有一些例外,當我運行我的應用程序如何在android中實現聊天應用程序?
08-27 18:05:29.545: WARN/System.err(809): java.security.KeyStoreException: KeyStore jks implementation not found
08-27 18:05:29.565: WARN/System.err(809): at java.security.KeyStore.getInstance(KeyStore.java:134)
08-27 18:05:29.565: WARN/System.err(809): at org.jivesoftware.smack.ServerTrustManager.<init>(ServerTrustManager.java:61)
08-27 18:05:29.589: WARN/System.err(809): at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:1246)
08-27 18:05:29.594: WARN/System.err(809): at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:313)
08-27 18:05:29.594: WARN/System.err(809): at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
08-27 18:05:29.604: WARN/System.err(809): at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
和也越來越覈實異常,但我檢查了我的用戶名和密碼...
08-27 18:05:31.184: ERROR/AndroidRuntime(809): FATAL EXCEPTION: Thread-9
08-27 18:05:31.184: ERROR/AndroidRuntime(809): java.lang.VerifyError: org.jivesoftware.smack.sasl.SASLMechanism
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at java.lang.Class.getDeclaredConstructors(Native Method)
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at java.lang.Class.getConstructor(Class.java:477)
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:303)
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:349)
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at com.sample.test.HelloFormStuffActivity$1.run(HelloFormStuffActivity.java:41)
08-27 18:05:31.184: ERROR/AndroidRuntime(809): at java.lang.Thread.run(Thread.java:1096)
我該如何改變? – Kandha 2010-08-27 13:13:18
更改您獲得密鑰庫實例的行,例如: KeyStore.getInstance(「bks」); – 2010-08-27 13:20:35
我的代碼沒有這行... – Kandha 2010-08-27 13:24:14