there are two possible solutions:

first: you declare the collection for childobjects "read not lazy"

second: you attach the parentobject to a new session and re-read the
childobjects collection


2009/2/5 James Sherwood <jsherw...@rgisolutions.com>

> Hello,
>
>
>
> I have an application state object(Visit) that is storing a hibernate
> entity
> object.
>
>
>
> In a page I ask for the visit.object.getchildobject.name and receive this
> error:
>
>
>
> [ERROR] hibernate.LazyInitializationException could not initialize proxy -
> the owning Session was closed
>
> org.hibernate.LazyInitializationException: could not initialize proxy - the
> owning Session was closed
>
>
>
>
>
> Can I not do this from application state objects?
>
>
>
> Thanks,
>
> --James
>
>
>
>


-- 
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com

Reply via email to