-->
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.  [ 3 posts ] 
Author Message
 Post subject: about CGLIB
PostPosted: Sun Jan 04, 2004 10:23 am 
Beginner
Beginner

Joined: Thu Dec 04, 2003 3:47 am
Posts: 31
Location: Hong Kong
I'm using hibernate 2.0.3.

I have an error
Caused by: net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of org.astri.ims.ccs.pes.dataobjects.Firmware.?

I would like to set cglib.use_reflection_optimizer=false. I know this is a system level setting, so I would like to set it in hibernate.properties

I could do it before, but when I moved the code to a new project, i don't know why the file hibernate.properties cannot be read, no matter where I place it (from the document, it should be ok as long as it is in the classpath, but still it cannot be reached). I tried to set it in hibernate.cfg.xml in the following line

<property name="cglib.use_reflection_optimizer">false</property>

The previous problem still exists.

Could anyone give hints for solving this?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 04, 2004 2:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Be sure to put hibernate.properties to be seen from the same classloader that load Hibernate classes.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 04, 2004 2:12 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Or try the -D way to set

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.