Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

marshal instrumented hibernate annoted pojo

user11138293Feb 14 2013 — edited Feb 14 2013
I use the maven InstrumentTask to modify my hibernate pojos for lazy fetching . Now I want to marshal instance of this pojo into xml for which I am using jaxb.

JAXBContext.newInstance(MyEntity.class)

fails giving exception
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 5 counts of IllegalAnnotationExceptions
net.sf.cglib.transform.impl.InterceptFieldCallback is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at net.sf.cglib.transform.impl.InterceptFieldCallback
		at public net.sf.cglib.transform.impl.InterceptFieldCallback 
can I use jaxb for cglib instrumented pojos ?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 14 2013
Added on Feb 14 2013
1 comment
1,354 views