With the migration to a newer version of Smack, JIDs are represented using a set of specific implementations. In various places in Spark, instances of such classes are compared with strings. They're of different types, and cannot be compared successfully.
All comparison should be based on the same type of class. JIDs should be represented by those type-safe classes, not by Strings.