-->
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: "Found two representations of same collection" exc
PostPosted: Mon Jul 19, 2004 6:16 pm 
Beginner
Beginner

Joined: Sat Jan 31, 2004 10:09 am
Posts: 26
When I save an entity, I got the following exception. Does anyone know how "Found two representations of same collection " exception occurs?
My flush mode is "COMMIT". And my Hibernate session won't close until HTTP session is closed, that is I use reconnect/disconnect to manage the transaction.

Code:
Caused by: net.sf.hibernate.HibernateException: Found two representations of same collection
net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2861)
net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32)
net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69)
net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36)
net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2581)
net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2447)
net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2249)
net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2228)
net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
hibernate.SessionUtil.executeTxn(SessionUtil.java:167)
... 62 more


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.