ClassCastException in Smack Library

That was it! Thanks!

Stupid question perhaps; but why aren’t all packet extensions which are present in smackx.jar declared in the smack.providers file in smackx.jar ?