2008/10/18 jsm <[EMAIL PROTECTED]>

>
> I was trying out the smack API for connecting to gtalk. I was able to
> connect but had two errors.
> Anybody have any ideas on resolving this error?
>
> First error is something regarding Keystore as shown below:
> ------------------error 1 ---------------------
> 10-18 08:40:10.884: WARN/System.err(266):
> java.security.KeyStoreException: KeyStore jks implementation not found
> 10-18 08:40:10.884: WARN/System.err(266):     at
> java.security.KeyStore.getInstance(KeyStore.java:107)
> 10-18 08:40:10.894: WARN/System.err(266):     at
> org.jivesoftware.smack.ServerTrustManager.<init>(ServerTrustManager.java:
> 61)
> 10-18 08:40:10.894: WARN/System.err(266):     at
>
> org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:
> 1115)
> 10-18 08:40:10.904: WARN/System.err(266):     at
> org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:
> 313)
> 10-18 08:40:10.904: WARN/System.err(266):     at
> org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
> 10-18 08:40:10.904: WARN/System.err(266):     at
> org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
> ------------end err 1 --------------------------
>
> Second error was after I got the connection and I was able to send a
> message but threw the below exception:
> -----------error 2-------------------------------------
> 10-18 08:40:14.814: WARN/dalvikvm(266): VFY: unable to resolve new-
> instance 201 (Ljava/beans/PropertyDescriptor;) in Lorg/jivesoftware/
> smack/util/PacketParserUtils;
> 10-18 08:40:14.834: WARN/dalvikvm(266): VFY:  rejecting opcode 0x22 at
> 0x0016
> 10-18 08:40:14.834: WARN/dalvikvm(266): VFY:  rejected Lorg/
> jivesoftware/smack/util/PacketParserUtils;.parseWithIntrospection
> (Ljava/lang/String;Ljava/lang/Class;Lorg/xmlpull/v1/
> XmlPullParser;)Ljava/lang/Object;
> 10-18 08:40:14.834: WARN/dalvikvm(266): Verifier rejected class Lorg/
> jivesoftware/smack/util/PacketParserUtils;
> 10-18 08:40:14.854: WARN/dalvikvm(266): threadid=23: thread exiting
> with uncaught exception (group=0x40010e28)
> 10-18 08:40:14.854: ERROR/AndroidRuntime(266): Uncaught handler:
> thread Smack Packet Reader (0) exiting due to uncaught exception
> 10-18 08:40:14.864: ERROR/AndroidRuntime(266): java.lang.VerifyError:
> org.jivesoftware.smack.util.PacketParserUtils
> 10-18 08:40:14.864: ERROR/AndroidRuntime(266):     at
> org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:
> 278)
> 10-18 08:40:14.864: ERROR/AndroidRuntime(266):     at
> org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
> 10-18 08:40:14.864: ERROR/AndroidRuntime(266):     at
> org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
> --------- end err 2 -----------------------------------------
> >
> Hi,
   Because smack can't find cacerts security file,this file belong to
JRE(jre\lib\security\cacerts), but android have not the cacerts.Using smack
source and commenting exception code.

Wind

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to