Posted on Feb. 13, 2008 at 19:27 +0100
Tagged with cglib, hibernate, json, json-lib
Sometimes I'm really blind. For the last couple of months I was all the time having some problems with serializing JavaBeans that I get out of Hibernate into JSON and often got an error like this:
java.lang.NoSuchMethodException: Property 'delegate' has no getter method
I always knew that it had to be something with the whole proxy-layer Hibernate uses for handling for instance lazy referencing, but for some reason I never really actually did anything against it but rewrite the code to build the JSONObjects more or less manually.
[more ...]