Results 1 to 4 of 4
  1. #1
    priyanka_t is offline Member
    Join Date
    Dec 2007
    Posts
    9
    Rep Power
    0

    Question HTTP stauts error

    Hey guys, how to fix 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
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:372)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:810)


    root cause

    java.lang.NullPointerException
    org.apache.jsp.web.jsp.familyhistory_jsp._jspServi ce(familyhistory_jsp.java:144)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:810)


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

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default

    Can you post you familyhistory.jsp?

  3. #3
    felixtfelix is offline Member
    Join Date
    Dec 2007
    Location
    Mumbai, India
    Posts
    37
    Rep Power
    0

    Default

    It is saying NullPointerException. Means that you are assiging or using any object which is having a null value.
    You can fix it in two ways
    1. You have to put consecutive System.out.println() in your jsps whereever you suspect the error. then you can see the console upto what statements printed. Then you can find the statement which cause error.
    2. Go to the work\Catalina\localhost\<application_name> of your tomcate installation find the file familyhistory_jsp inside somewhere of it. Then go to the line number 144 as per your stack. you can get that statement which cause errot. This will require aditional knowledge of sevlet and compilation of jsp into servelet as well.

  4. #4
    priyanka_t is offline Member
    Join Date
    Dec 2007
    Posts
    9
    Rep Power
    0

Similar Threads

  1. Http Sessions
    By manasa in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 11:51 AM
  2. i need help in http process
    By sureshjava in forum New To Java
    Replies: 0
    Last Post: 01-29-2008, 05:56 AM
  3. use ftp instead of http
    By gabriel in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 07:06 PM
  4. Error HTTP 404
    By Eric in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-05-2007, 09:20 PM
  5. Socks via HTTP 1.2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 06-26-2007, 10:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •