Hi everyone,
I am having trouble with XML encoding of a java application which uses hibernate. I get a null pointer on every serialisation attempt of my hibernate objects, and everytime a "EnhancerByCGLIB" is in the stacktrace.
I tried disabling cglib and using Hibernate.initialize(status); without success.
My mapping files were generated by MyEclipse - Hibernate Tools, should I modify them to disable lazy initialisation? There is about 50 or more mapping file so I'm not giving it a shot :(
I dont know where to look anymore, any advice would be great.
Baptiste
Hibernate version: 3.2
Full stack trace of any exception that occurs:
java.lang.NullPointerException
at org.model.Status$$EnhancerByCGLIB$$51351ad4.getIdstatus(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.reflect.misc.Trampoline.invoke(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
at java.beans.Statement.invoke(Unknown Source)
at java.beans.Expression.getValue(Unknown Source)
at java.beans.DefaultPersistenceDelegate.doProperty(Unknown Source)
at java.beans.DefaultPersistenceDelegate.initBean(Unknown Source)
.... A lot more writeObject and writeExpression
Name and version of the database you are using: MaxDB
|