My application works fine until I am trying to add some logging using AspectJ for the persistent object. (So I know my mappings are correct.)
The pointcut monitors every method(setter/getter) in the persistent object.
I compiled the code with AspectJ compiler, and deployed to Tomcat, I got
org.hibernate.PropertyAccessException: Exception occurred inside setter of gov.nih.nci.cabio.Gene.id(my persistent object). The SQL is generated before the exception.
I assume it is caused by AspectJ compiler added static JointPoint inside the byte code of my persistent object that Hibernate does not recognize.
Anybody has the same experience? Any idea?
Thanks.
|