This error occurs because you have a class (buddyconnect.UserInfo
here) implementing Serializable
but forgot to include a serialVersionUID
.
If you don't declare and initialize that (private static final long
) field in your class, the JRE will generate a new, (nearly) random one each time your program is executed again.
As a result, instances of this class serialized by one execution of your program will not be deserializable by another execution of your program.
Declare one at the top of your class, such as in:
public class UserInfo
{
private static final long serialVersionUID = 0x1b32faab5902bfa3L;
// etc