Getting exception - oracle.apps.jtf.base.resources.FrameworkException: Framework Session is null whi
Hello,
We have a requirement in custom JSP page to redirect to login page in case the user has not logged in or the session has expired. For this we have used seeded code -
RequestCtx.userIsLoggedIn.
Below is the logic used:
<%@ include file="jtfsrnfp.jsp"%>
boolean loggedIn = false;
loggedIn = RequestCtx.userIsLoggedIn();
if(!loggedIn){
response.sendRedirect("AppsLocalLogin.jsp");
}
But we are getting below exception:
<!-- Exceptions on this page if any (which were ignored):
oracle.apps.jtf.base.resources.FrameworkException: Framework Session is null.
java.lang.NullPointerException
-->
Please let us know if anyone know the reason for this exception.
Also please let us know if you know any alternate solution for this.