throwing SessionException in  situations