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, May 5, 2010 at 6:41 PM, <t...@dds.nl <mailto:t...@dds.nl>> 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
>     UsernameNotFoundException {
>            List users = getHibernateTemplate().find("from User where
>     username=?", username);
>            if (users == null || users.isEmpty()) {
>
>                throw new UsernameNotFoundException("user '" + username
>     + "' not found...");
>            } else {
>                User user = (User) users.get(0);
>                log.debug("load lazy collection");
>                user.getPasswordHistory().size();  //<<<< lazy loading
>     exception
>                return user;
>     }
>
>     thanks
>
>     tibi
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>     <mailto:users-unsubscr...@appfuse.dev.java.net>
>     For additional commands, e-mail: users-h...@appfuse.dev.java.net
>     <mailto:users-h...@appfuse.dev.java.net>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to