-->
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: Cache : Cannot serialize a Session while connected
PostPosted: Tue Apr 03, 2007 2:29 pm 
Newbie

Joined: Tue Jan 17, 2006 5:00 am
Posts: 16
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:1.2 b3

I was trying to enable secondlevel cache in order to use the query cache. I configured the NHibernate.Caches.Prevalence.PrevalenceCacheProvider.

On the classes set up to use the cache/query cache I now get the error : "Cannot serialize a Session while connected" - which, to me at least, makes no sense - it's not the session that supposed to be serialized just the object and why shouldn't that be possible while connected???

The class is attributed [Serializable] and the mapping has the <cache usage="nonstrict-read-write" />

I have so far been unable to find any useful information regarding this problem, so any hints pointing me in the right direction is appreciated!


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.