-->
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.  [ 1 post ] 
Author Message
 Post subject: 3.1.3 ClassCastException bug
PostPosted: Wed Jul 26, 2006 11:32 am 
Newbie

Joined: Thu Oct 06, 2005 8:08 pm
Posts: 19
I'm using Hibernate 3.1.3.

When I call buildSessionFactory(), as in:
Configuration cfg = new Configuration();
Configuration cfg2 = cfg.configure();
sessionFactory = cfg2.buildSessionFactory();

I get:

java.lang.ClassCastException: java.lang.Integer
at org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHelper.java:88)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1173)
[snip]

After some searching, this issue seems to be related to the following known bug:
http://opensource.atlassian.com/project ... e/HHH-1560

The fix is mentioned as being in 3.2CR2 and the unreleased 3.1.4.

How risky is 3.2CR3? My application is in final testing and I'd much rather use an older stable version rather than a newer version at this point. However, I want this fix.

Is there a preview build of 3.1.4? Which is safer building my own 3.1.4 build from source code or upgrading to 3.2CR3?


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

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.