-->
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: Strange cast exception from NHibernate???
PostPosted: Fri Jul 15, 2005 5:47 pm 
Newbie

Joined: Fri May 13, 2005 4:51 pm
Posts: 12
Hello!

NHibernate gives me a strange cast exception. The message of the exception is: "Unable to cast object of type 'Iesi.Collections.HashedSet' to type 'System.Collections.IList'.". The stack trace is:
at NHibernate.Type.PersistentCollectionType.Copy(Object original, Object target, ISessionImplementor session, Object owner, IDictionary copiedAlready)
at NHibernate.Type.TypeFactory.Copy(Object[] original, Object[] target, IType[] types, ISessionImplementor session, Object owner, IDictionary copiedAlready)
at NHibernate.Impl.SessionImpl.DoCopy(Object obj, Object id, IDictionary copiedAlready)
at NHibernate.Impl.SessionImpl.SaveOrUpdateCopy(Object obj)
at "Here goes my own function invocation".

Do some of you know how to overcome this difficulty?


Best regards,

Henrik Dahl


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 15, 2005 7:39 pm 
Newbie

Joined: Fri May 13, 2005 4:51 pm
Posts: 12
It looks like the solution done for NH-293 in order to support maps does not work for sets as well.

I would like very much if this would work. Should I do something in order to improve the likelyhood it will be fixed?

Best regards,

Henrik Dahl


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 16, 2005 3:30 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Are you using the CVS version? The bug is fixed in CVS, and it will be part of the 0.9 release.


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.