This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes http 500 in jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "http 500 in jsp page" Watch "http 500 in jsp page" New topic
Author

http 500 in jsp page

karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
i got this error .....

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

java.lang.NullPointerException
org.apache.jsp.jsp.person_jsp._jspService(person_jsp.java:91)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18




Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

karthik ekantha wrote:

What happens if the session attribute hasn't been set yet? What will personalDetailsMap2 be?


That will always return false. As per the contract of Object.equals, it should always return false when the argument is null. To compare against null you should use ==, not equals.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
karthik ekantha
Ranch Hand

Joined: Feb 08, 2012
Posts: 78
thank you for your response....i got it output....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http 500 in jsp page
 
Similar Threads
how to assign variable in text area?
about http session
http 500 in jsp page
Redirct page in Tilse with JSTL
http error?