-->
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: NonUniqueObjectException & session being disconnected
PostPosted: Tue Jun 15, 2004 9:25 am 
Regular
Regular

Joined: Thu Feb 05, 2004 6:51 am
Posts: 50
Hi all,

I must have misunderstanding something about session disconnecting.

Sometime I get an exception Could not synchronise session with database, so before making manual flush or commit, I check if !session.isConnected or session.connection().isClosed() and if that's the case, I call session.reconnect() to avoid this problem.

I haven't been able yet to find why these hazardous disconnection happen, I'm using hibernate 2.1 incorparated in my app in a J2EE app server JOnAS. So it is confogured the work with a jonas datasource.

The problem is that I get an net.sf.hibernate.NonUniqueObjectException :a different object with the same identifier value was already associated with the session: 3, of class: org.... if I do the reconnected and this happen when I call session.flush.

I was used to have this when I performed a save instead of a update. But the incriminated object is updated and not saved.

So???
Any idead

Vlad


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 15, 2004 9:51 am 
Regular
Regular

Joined: Thu Feb 05, 2004 6:51 am
Posts: 50
No body has an idea?

Vlad


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.