avoided exception during getSession()