Could be this line:
Code:
user = (User)session.load(User.class, user.getUserID());
There's no other piece of code that could throw an LIE (LazyInitializationException). If the user that you passed in to this method was lazily initialized (i.e. a member of a lazily initialized collection), then the user.getUserId() would not be able to be resolved if the session that loaded the user collection's owner was closed prior to this method call. If this is a constructed user object (for QBE for instance), then none of this code should produce the LIE. Did the stack trace identify the line of code? If so, which one?