Dear mates
I am trying to build a small XMPP client in android. Any ideas on what
library i can use?. I have tried using Smack API. I installed OpenFire (
xmpp server ) on my computer . Than I can connect OpenFire server
But i cannot login openfire server
XMPPConnection connection = new XMPPConnection(connConfig);
try {
connection.connect();
Log.i("XMPPClient", "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Connected to " +connection.getHost());
}
catch (XMPPException ex) {
Log.e("XMPPClient", "[SettingsDialog] Failed to connect to " +
connection.getHost());
xmppClient.setConnection(null);
}
try {
Log.i("XMPPClient",
"-----------------------------------------------" );
connection.login("[email protected]", "demo1");
Log.i("XMPPClient", "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Login USER " + connection.getUser());
i got a following errors:
--------------------------------------------------
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Connected to 10.0.2.2
I/XMPPClient( 219): -----------------------------------------------
E/dalvikvm( 219): Could not find class 'java.beans.PropertyDescriptor',
referenced from method
org.jivesoftware.smack.util.PacketParserUtils.parseWithIntrospection
W/dalvikvm( 219): VFY: unable to resolve new-instance 126
(Ljava/beans/PropertyDescriptor;) in
Lorg/jivesoftware/smack/util/PacketParserUtils;
W/dalvikvm( 219): VFY: rejecting opcode 0x22 at 0x0016
W/dalvikvm( 219): VFY: rejected
Lorg/jivesoftware/smack/util/PacketParserUtils;.parseWithIntrospection
(Ljava/lang/String;Ljava/lang/Class;Lorg/xmlpull/v1/XmlPullParser;)Ljava/lang/Object;
W/dalvikvm( 219): Verifier rejected class
Lorg/jivesoftware/smack/util/PacketParserUtils;
W/dalvikvm( 219): threadid=19: thread exiting with uncaught exception
(group=0x4001aa28)
E/AndroidRuntime( 219): Uncaught handler: thread Smack Packet Reader (0)
exiting due to uncaught exception
E/AndroidRuntime( 219): java.lang.VerifyError:
org.jivesoftware.smack.util.PacketParserUtils
E/AndroidRuntime( 219): at
org.jivesoftware.smack.PacketReader.parseIQ(PacketReader.java:576)
E/AndroidRuntime( 219): at
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:275)
E/AndroidRuntime( 219): at
org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
E/AndroidRuntime( 219): at
org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
----------------------end error----------------------------
Help me please :)
Regards
Tsolmon
--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en