ClassCastException

Hello,

I can setup a connection, but when I try to log in, I get the following exception:

java.lang.ClassCastException: org.jivesoftware.smack.PacketReader$4

at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSes

sion(SASLAuthentication.java:300)

at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentica

tion.java:210)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:410)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:374)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:355)

Can anybody help?

Tx in advance!

http://www.jivesoftware.org/community/thread.jspa?threadID=18716&tstart=0 look here or other realted topics.

You could try to increse defaultTmeout value in SmackConfigurator class

Hey ole,

Which Smack version are you using? Smack 2.2.0 includes a fix for SMACK-124 that could explain the problem you are seeing.

Regards,

– Gato