我在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)
答案 0 :(得分:1)
jks没有在android中实现。改为将其改为bks。