Hey guys,
I'm currently hunting down one Not Serializable Exception (NSE) after the
other in PW. Currently I wasn't able to find any problems with PW but
instead how LoadableDetachable Model (LDM) is used. Just to make this clear:
Let's call a not serialisable object NSO. If you do something like
new LoadableDetachableModel<NSO>(...) {
...
NSO x = generateNSOFromSomewhere();
return x;
...
}
this will still fail to serialize. The LDMs purpose is to transform the NSO
to something which could be serialized (SO). So, LDM have to be used in the
following way instead:
new LoadableDetachableModel<SO>(...) {
...
NSO x = generateNSOFromSomewhere();
SO y = convertNSOtoSO(x);
return y;
...
}
I know that everything still seams to work (although of those NSE), it is
not very pretty/good if we plaster the entire log file with those
exceptions.
Hope this helps.
Kind regards,
Andreas