-->
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: classcastexception (save and saveOrUpdateCopy)
PostPosted: Mon Jun 21, 2004 10:30 am 
Newbie

Joined: Mon Nov 17, 2003 10:53 am
Posts: 15
hi,

i am getting the following exception when i try
to use Session.saveOrUpdateCopy. the interesting
part on it does not happen if i use simply
Session.save which is even more interesting since
i am quite sure that i have closed the session i loeaded
the object from.

<stacktrace>
java.lang.ClassCastException
at net.sf.hibernate.type.EntityType.resolveIdentifier(EntityType.java:213)
at net.sf.hibernate.type.EntityType.copy(EntityType.java:141)
at net.sf.hibernate.type.TypeFactory.copy(TypeFactory.java:284)
at net.sf.hibernate.impl.SessionImpl.doCopy(SessionImpl.java:3990)
at net.sf.hibernate.impl.SessionImpl.saveOrUpdateCopy(SessionImpl.java:3938)
</stacktrace>

any suggestions?
and "yes i have read the FAQ" and i have created the
exluded.properties file. no change thou.

thanks robertj


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.