This is an error that typically comes if you try to serialize a derived object and the serializer does not know of  the derived class. There are some good explanations/solutions for this issue:

I was getting this error, because in the MySQL Manager, I had a select query open, that probably had the table locked. Ughhh…