karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: [KARAF-WEBCONSOLE] Serialization
Date Thu, 25 Aug 2011 06:16:57 GMT
Thanks for the update Andreas.

Regards
JB

On 08/25/2011 06:05 AM, Andreas Pieber wrote:
> 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
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message