-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Using AspectJ to trace the Persistent Object
PostPosted: Wed Feb 02, 2005 6:48 pm 
Newbie

Joined: Wed Sep 29, 2004 10:45 am
Posts: 6
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 3:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
does it work without your aspectj changes ?

And what kind of exception is generated ? it should be in the complete stack trace.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.