-->
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: UnsupportedOperationException in DefaultMergeEventListener
PostPosted: Mon Mar 08, 2010 1:42 am 
Newbie

Joined: Mon Mar 08, 2010 1:21 am
Posts: 1
I'm trying to get a entity model to cascade merge.
When I call merge, sometimes the insert/update appears to succeed. Other times it fails:
Code:
java.lang.UnsupportedOperationException
   at org.hibernate.util.IdentityMap.keySet(IdentityMap.java:195)
   at org.hibernate.event.def.EventCache.keySet(EventCache.java:132)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:97)

From what I can tell, onMerge uses an org.hibernate.event.def.EventCache object based on IdentityMap. The IdentiyMap supports the entrySet method, but not the keySet method.

My objects do not override equals/hashcode and the model does have cycles, but when I look at the code for DefaultMergeEventListener in
http://fisheye.jboss.org/browse/Hiberna ... va?r=16664
the only way I can see for it to work is to totally avoid the inner loop.

Any ideas?


Top
 Profile  
 
 Post subject: Re: UnsupportedOperationException in DefaultMergeEventListener
PostPosted: Wed Aug 25, 2010 5:56 pm 
Newbie

Joined: Fri Nov 11, 2005 4:42 am
Posts: 17
anybody have an answer for this????


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.