Serialization failing with nHibernate / Spring AOP proxies

Sep 27, 2012 at 3:00 PM

We are having a problem serializing nHibernate / Spring AOP proxies in that we get an error when serializing a collection that contains these types of objects.

If we change the lazy attribute on the collection to 

lazy="false"

then everything works as expected.

It would nice however to have the JSON library recognize the AOP proxy and force it to be hydrated as expected.

Anyone else seen this problem and have a solution for it.

Whatty