How to deserialise javafx classes with inaccessible fields?
williamclocksin opened this issue · comments
Is there a special way to deserialise javafx classes with inaccessible fields?
Here is an example error message:
Caused by: com.cedarsoftware.util.io.JsonIoException: Cannot set field: red on class: javafx.scene.paint.Color as field is not acccessible. Add a create a ClassFactory implementation to create the needed class, and use JsonReader.assignInstantiator() to associate your ClassFactory to the class: javafx.scene.paint.Color
at com.cedarsoftware.util.io.MetaUtils.setFieldValue(MetaUtils.java:1111)
at com.cedarsoftware.util.io.ObjectResolver.assignField(ObjectResolver.java:158)
... 55 more