-->
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.  [ 7 posts ] 
Author Message
 Post subject: Hibernate has a bug processing collections
PostPosted: Fri Sep 12, 2003 10:00 am 
Newbie

Joined: Tue Sep 02, 2003 1:12 pm
Posts: 10
Hello,

I just migrated to Hibernate 2.1 beta3 and I am getting an error when I try to save an object that contain collections:

net.sf.hibernate.AssertionFailure: Hibernate has a bug processing collections

It says Hibernate has a bug. I think it is only a 2.1 version problem because it didnt occur when I used 2.0.3. However Id like to migrate because I wanna use 2.1 new features.

Is it really a bug or that i something i could do?

Thank you,

_________________
Henrique Velloso
--------------------
System Architect
FUNDEP - UFMG - BRAZIL


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2003 10:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Could you submit the code (as a simple main() method) to JIRA. It may be a bug, or it might be you doing something 'wrong', but either way, I still need to know about differences b/w 2.1 and 2.0.


This is why we do betas ;)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2003 1:33 pm 
Newbie

Joined: Tue Sep 02, 2003 1:12 pm
Posts: 10
Hello Gavin,

I can't think a way I could reproduce it in a single main(). There are too many classes and database tables associated.

_________________
Henrique Velloso
--------------------
System Architect
FUNDEP - UFMG - BRAZIL


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2003 1:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well, then you'll understand if I absolutely disbelieve that Hibernate has a bug then?

All bugs are reproduceable.


If this only occurs in a situation that is too complicated to reproduce in a main() method, then quite clearly you havn't tried to isolate the problem _at_all_, and it is far more likely that your own over-complicated code is responsible.

Isolating problems is the *first* thing you do, before posting here.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2003 1:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
P.S. The most likely cause of this is that you caught an exception that occurred buring flush(), and then continued to use the session.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2003 2:05 pm 
Newbie

Joined: Tue Sep 02, 2003 1:12 pm
Posts: 10
I will try to isolate. The problem is that I have a huge class hierarchy with many branchs and composite ids. I had to do it because im working in a pre-made database. I cant modify it. I will try to make null the branchs not associated with the problem, modifying current mappings. I hope it do not create other problems. :-|

_________________
Henrique Velloso
--------------------
System Architect
FUNDEP - UFMG - BRAZIL


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2003 1:14 pm 
Regular
Regular

Joined: Thu Aug 28, 2003 10:54 am
Posts: 67
You haven't replaced commons-lang 1.0 with 2.0 have you? I find the same error when I use version 2.0 without having 1.0 in the classpath too.


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