Smack, android and classcastexception Edit: Admin, please delete this thread

Hello people,

As title says, I am trying to use smack API on the Android platform. So I went here and downloaded the smack API port that the author has made. As you can see, smackx was merged into smack package, and smack.providers file is missing from META-INF folder.

Connecting and logging on to XMPP servers works OK, but creating a multiuser chat room gives me an exception. I try:

MultiUserChat muc = new MultiUserChat (connection, "gpschamber@conference.jabber.org");

try

{

muc.create(“kellogs-moderator”);

muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

and get a

java.lang.ClassCastException: Lorg/jivesoftware/smack/packet/DefaultPacketExtension;

when stepping over

muc.create(“kellogs-moderator”);

line.

I have manually inserted smack.providers file (found in smack_3_0_4.zip from downloads section) into its place under META-INF as Gato has adviced some 4 years ago. However, the same exception gets spitted by Android.

Thanks for any help,

Mike

there is a thread with a similar name arround. look for it