Why does writeObject throw java.io.NotSerializableException and how do I fix it?

The fields of your object have in turn their fields, some of which do not implement Serializable. In your case the offending class is TransformGroup. How to solve it? if the class is yours, make it Serializable if the class is 3rd party, but you don’t need it in the serialized form, mark the field … Read more

java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException

Just implement Serializable If you’re getting a NotSerializableException like follows, java.io.NotSerializableException: bean.ProjectAreaBean then it simply means that the class as identified by the fully qualified name in the exception message (which is bean.ProjectAreaBean in your case) does not implement the Serializable interface while it is been expected by the code behind. Fixing it is relatively … Read more