dcsimg
Problems in Logout.jsp
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mujtaba_Ahmed
Posted On:   Saturday, September 28, 2002 03:33 AM

Please check the code of Logout.jsp for errors: <%@ page import="beans.*, java.util.HashMap" %> <% if(session !=null){ User user=(User)session.getValue("user"); if(user!=null){ HashMap hash=(HashMap)application.getAttribute("monitor"); hash.remove(user); session.invalidate(); } } %> You have successfully signout SignIn Here is the error it's showing Error: 500 Location: /examples/jsp/library/signout.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.Page   More>>

Please check the code of Logout.jsp for errors:

			
<%@ page import="beans.*, java.util.HashMap" %>
<%
if(session !=null){
User user=(User)session.getValue("user");
if(user!=null){
HashMap hash=(HashMap)application.getAttribute("monitor");
hash.remove(user);
session.invalidate();
}
}
%>


You have successfully signout


SignIn





Here is the error it's showing



			
Error: 500
Location: /examples/jsp/library/signout.jsp
Internal Servlet Error:

javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at jsp.library.signout_1._jspService(signout_1.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NullPointerException
at jsp.library.signout_1._jspService(signout_1.java:65)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484


Thanks

   <<Less

Re: Problems in Logout.jsp

Posted By:   Steven_Martin  
Posted On:   Saturday, September 28, 2002 01:02 PM

One of the values is null. Do a System.out.println() on each object to find out which one is null or use a debugger.
About | Sitemap | Contact