I\'m using Javafx, and I wrap my objects into ListProperty to let the tableview updates for any changes on the objects of the list. Now I\'m trying to serialize my project a
To avoid NotSerializableException make sure:
Besides that you also need to define serialVersionUID for every Serializable class. Check all 3 cases above plus:
Note: your code may run without serialVersionUID sometimes but read the last paragraph in Serializable's javadoc to understand why it will
be a problem depending on the environment.
There's a VM option to add details to the exception. It will show the root and nested classes failing to serialize and help you figure out what you're missing:
-Dsun.io.serialization.extendedDebugInfo=true