On Friday 02 June 2006 01:24, Edward Yakop wrote:

> A small patch is required for model versioning to work for wicket in
> OSGI environment.
>
> Case:
> The [ClassNotFoundException] is thrown when Objects#cloneModel or
> Objects#cloneObject tries to clone objects that the class is not
> resolveable by the Class#forName (used by ObjectInputStream) .

This is related to the fact that the ObjectInputStream is not able to figure 
out twhich classloader to use, and will use the classloader of the caller, 
i.e. wicket.util.lang.Objects.

The suggested patch is simple, especially since the 'hard work' already exist 
in the ReplaceObjectInputStream, by adding override of the resolveClass() 
method, which simply delegates to the ClassResolver of the application.

Voila!


IMHO, the patch is proper for supporting all types of usecases requiring the 
ClassResolver, and would appreciate if it is scheduled for inclusion in a 
1.2.1 release. Thanks.



Cheers
Niclas


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to