-->
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: ClassCastException using Hibernate 3.1 and ActiveMQ 4.0.1
PostPosted: Fri Jul 07, 2006 3:02 am 
Newbie

Joined: Mon May 29, 2006 4:30 am
Posts: 4
I've been attempting to use ActiveMQ 4.0.1 as the JNDI provider for my Hibernate 3.1 SessionFactory instances, however when I try to create the SessionFactory (using Configuration.buildSessionFactory()) I get the following exception:

Exception in thread "main" java.lang.ClassCastException: java.util.HashSet
at org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHelper.java:88)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1173)
...
(application specific exceptions follows this).


This defect is described in the ActiveMQ 4.0.1 bugtracker at the following URL http://mail-archives.apache.org/mod_mbo ... ble.com%3E

I can't say whether this is a problem with ActiveMQ, or with Hibernate (as I don't completely understand either of the specifications fully), but is there a solution that is in development (other than editing the source myself - I'd rather have "pure" Hibernate and ActiveMQ jar's in use, to make upgrading to newer versions easier) that I can use?

It's a bit of a shame, I really like both of these products, and I would love to be able to use them together (I use ActiveMQ for JMS messaging already).

Can someone point me in the right direction WRT finding out where the best place to put the fix for this problem is? The solution proposed in the ActiveMQ users list is not really the best way to solve this IMHO as it just throws the property away, rather than doing something smart with it.

Cheers,

Aidos


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 3:07 am 
Newbie

Joined: Mon May 29, 2006 4:30 am
Posts: 4
My apologies, I couldn't get onto JIRA before to check if this had already been raised.

It has, and apparently has been fixed. I'm downloading the new Hibernate now, and will try again.

Sorry again.


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.