thanks ivan,
i did not know this one.
but do i really need this? i don't need an open session in the view. i
access the lazy list in the dao/action already. i don't need it in the
view.
thanks,
tibi
Quoting liu Ivan :
You should use this ServletFilter to close hibernate Session:
hibern
You should use this ServletFilter to close hibernate Session:
hibernateFilter
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
2010/5/6
>
> here the code of the user object:
>@OneToMany
>private Set passwordHistory = new
> HashSet();
>
> here the stacktrace:
>
> ERRO
here the code of the user object:
@OneToMany
private Set passwordHistory = new
HashSet();
here the stacktrace:
ERROR [4010...@qtp-19386565-3] LazyInitializationException.(42)
| failed to lazily initialize a collection of role:
nl.rapidsugar.emailOpMaat.model.User.passwordHistory,
i will look at it tomorrow when i'm at work again.
it will be a standard stacktrace.
i thought the session is closed much later (when going to the view).
but i will look at it tomorrow good night ;)
tibi
Ebrahim Pasbani wrote:
> Hi
> Please show complete stack trace of exception
>
> On Wed, Ma
Hi
Please show complete stack trace of exception
On Wed, May 5, 2010 at 6:41 PM, wrote:
>
> hi i want to load the lazy collection. but the transaction seems to be
> closed already.
>
> anny ideas??
>
> i have this:
>
>public User getFullUserByUsername(String username) throws
> UsernameNotFou
hi i want to load the lazy collection. but the transaction seems to be
closed already.
anny ideas??
i have this:
public User getFullUserByUsername(String username) throws
UsernameNotFoundException {
List users = getHibernateTemplate().find("from User where
username=?", usern