-->
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.  [ 6 posts ] 
Author Message
 Post subject: How to set hibernate.cglib.use_reflection_optimizer false?
PostPosted: Thu Oct 30, 2003 2:56 am 
Newbie

Joined: Tue Oct 28, 2003 6:00 pm
Posts: 14
I am getting net.sf.hibernate.PropertyAccessException, and the error trace suggests to turn off refelection optimizer. Howerver, it doesn't seem that I can set it in hibernate.cfg.xml. I have tried to add a <property> of both hibernate.cglib.use_reflection_optimizer and cglib.use_reflection_optimizer. Neither works for me. My hibernate config is in XML format located in the classpath. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 3:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
http://www.hibernate.org/116.html#A28


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 2:08 pm 
Newbie

Joined: Tue Oct 28, 2003 6:00 pm
Posts: 14
Interesting. Thanks a lot. I will review FAQ before posting my question next time.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 5:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
heh but I just created the FAQ especially for you ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 5:46 pm 
Newbie

Joined: Fri Oct 31, 2003 5:42 pm
Posts: 2
[quote="gavin"]heh but I just created the FAQ especially for you ;-)[/quote]

Ok. and I am facing the same problem, indeed. However, I use Hibernate as a JBoss service. I tried to change named property using JBoss jmx-console. It seems to be modified (I can see the modified value in service properties). However, I still get the message, that I have to set this property to false.

As far, as I know, the hibernate.properties file (or is it called hibernate.property?) is not mandatory for JBoss Hibernate service. So, what am I doing wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 6:40 pm 
Newbie

Joined: Fri Oct 31, 2003 5:42 pm
Posts: 2
ok. Seems, like I have solved this problem: one has to set this property in JVM properties (e.g. with -Dhibernate.cglib.use_reflection_optimizer=false) while starting application server.

At least, this helped me.


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