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.
|
 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.
|
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" / >
|