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.  [ 3 posts ] 
Author Message
 Post subject: how to do a simple evict
PostPosted: Thu Jul 05, 2007 4:22 pm 
Newbie

Joined: Thu Jul 05, 2007 4:15 pm
Posts: 3
I am doing an evict like this (after there has been a db problem):


/**
* Remove the given object from the Session cache.
*/
public void evict( Object obj )
{
getHibernateTemplate().evict( obj );
}

then I get an exception after the evict:

org.hibernate.AssertionFailure: possible nonthreadsafe access to session

what does this error mean, what is causing it and what am I doing wrong?


Roj


Last edited by roj on Fri Jul 06, 2007 2:57 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 5:05 am 
Regular
Regular

Joined: Mon Apr 02, 2007 3:54 am
Posts: 67
Location: Hyderabad
as per me evict method is used to clear the object. u can check API also.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 06, 2007 2:56 pm 
Newbie

Joined: Thu Jul 05, 2007 4:15 pm
Posts: 3
huh?


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