Serializing enhanced bytecode

15 views
Skip to first unread message

phuyem

unread,
May 17, 2011, 5:16:09 AM5/17/11
to dpHibernate
Hi,

We use "javassist byte code" for enhancing Many-2-One relationships.
Everyrthing else work until HibernateSerialize lazy field.

Here is my scenario: I want to retrieve the list of 25 Agence

When I use debugger, I see some strange field injected into my
objects. They look like "$JAVASSIST_READ_WRITE_HANDLER
FieldInterceptorImpl (id=215)". And inside
JAVASSIST_READ_WRITE_HANDLER, I see alot of Hibernate stuff like
session, sessionFactory.... They cause alot of problem (Nullpointer is
one of them).

Could you give me some hint on how to overcome this problem.

Thanks and sorry for my bad english




Reply all
Reply to author
Forward
0 new messages