-->
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.  [ 8 posts ] 
Author Message
 Post subject: Error with lazy initialization in 1-m relationships cached
PostPosted: Wed Oct 29, 2003 8:37 am 
Newbie

Joined: Tue Oct 07, 2003 6:48 am
Posts: 10
Hi!
We are trying to cache our one-to-many relationships with JCS
(by adding <jcs-cache usage="read-write"/> to xml file).

The problem is that second time I try to load relationships instances (first time I havent any problem) I get this message:


" Could not initialize proxy - the owning Session was closed "

In adition, we are using lazy initialization. We havent this problem without caching.

Am I making some mistake?

Thanks in advance!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2003 9:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Aaahhhh .... I *think* it is a problem that is fixed in current CVS. Try building Hibernate from CVS.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 5:08 am 
Newbie

Joined: Tue Oct 07, 2003 6:48 am
Posts: 10
Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 5:11 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Actually just try 2.1 beta 5, which I released last night.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 5:41 pm 
Newbie

Joined: Fri Oct 03, 2003 11:58 am
Posts: 14
I am having the same problem.

I have tried checking out CVS Head and building it and I am receiving the same problem.

The build created Hibernate 2.0.3. Is this the right one? The wrong one?

Thanks,

Chris


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 7:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Did you try 2.1 beta 5??


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 01, 2003 5:40 pm 
Newbie

Joined: Fri Oct 03, 2003 11:58 am
Posts: 14
I checked out CVS head and I downloaded hibernate-2.1beta5.zip from sourceforge. They both did the same thing.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 01, 2003 7:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
ok then, please submit a very simple test case to JIRA, so I can reproduce this.


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