Catching an UnauthorizedSessionRequestException in a Servlet or JSP
 Technote (FAQ)
 
Problem
You wrote a servlet with a try/catch block set up to catch an UnauthorizedSessionRequestException. You purposely caused an UnauthorizedSessionRequestException to occur when you ran the application, and found that the exception handling portion of this code never ran.
 
Cause
This error is not designed to be caught in your code.
 
Solution
The UnauthorizedSessionRequestException is designed not to be caught in user code. It causes the servlet or JSPā„¢ that is executing to immediately cease execution, print a stack trace, and not propagate back to the user written code. This is done to prevent exposure of user ID details to an unauthorized request for a session. The solution for this issue is to remove application code which may be attempting to catch and handle this exception, or recognize that the code you have written to handle this exception will never execute.
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS > Sessions and Session Management
Operating system(s): z/OS
Software version: 4.0.1
Software edition:
Reference #: 1063915
IBM Group: Software Group
Modified date: Dec 2, 2004