Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

Moving Through Pages gives Options
benwharton
Posted: Friday, August 29, 2008 8:22:08 AM
Rank: Newbie
Groups: Member

Joined: 8/29/2008
Posts: 1
Points: 3


Hi Developers


I'm a producer working on a site built in Cuyahoga where we're using the article module to create Staff and user Blogs.

I've been adding content to the article module with different accounts (so that Blogs are authored by said account owners). Everything seemed fine, and then when I noticed I'd made a few errors, I went to go back and edit the pages...

So I go to click on the Pagination NAV at the bottom (1,2,3,4,5 etc) and I get Server errors saying that the system Could not initialize proxy - the owning Session was closed.

I can't copy the whole error becaue it's interpreting the instructions as sonething nasty!

Our developers say that it's core Cuyahoga code, nothing whuch they've developed, so they're currently not sure what's going on.

One developer thought it might be something to do with bad HTML that might have been inserted into one or more of the pages (I've been putting images into preview text areas to show author images). I've taken all of the pictures out the first page which I can access, but it's made no difference to the errors.

Does anyone know what's going on?

Thanks for any pointers.



Ben


PARTIAL ERROR BELOW


Server Error in '/' Application.
Could not initialize proxy - the owning Session was closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: NHibernate.LazyInitializationException: Could not initialize proxy - the owning Session was closed.

martijnb
Posted: Saturday, September 6, 2008 4:35:17 AM

Rank: Administration
Groups: Administration , Member

Joined: 12/30/2004
Posts: 1,674
Points: 1,824
Location: Wageningen (NL)
This issue has come up before and I think there was a workaround. I'll have to check this.
goolz
Posted: Wednesday, September 29, 2010 12:26:59 AM
Rank: Advanced Member
Groups: Member

Joined: 6/18/2007
Posts: 39
Points: 117
I had a same problem.

The problem has resolved by adding lazy="false" in nhibernate-mapping (.hbm) file:

the property was :
Code:

< many-to-one name="Cuyahogauser" column="userid" class="Cuyahoga.Core.Domain.User, Cuyahoga.Core" cascade="none" / >

changed to :
Code:

< many-to-one name="Cuyahogauser" column="userid"  lazy="false" class="Cuyahoga.Core.Domain.User, Cuyahoga.Core" cascade="none" / >

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.