Results 1 to 2 of 2
  1. #1
    gladiator is offline Member
    Join Date
    Apr 2011
    Rep Power

    Default HTTP Status 500 - type Exception report

    Can someone help me figure out what exactly the problem, I get this code when I tried to run the the project.

    HTTP Status 500 -


    type Exception report


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


    javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
    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.26 logs.

    Below is the code

    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    PrintWriter out ;
    String user_id, passwd, action, qry, htmlPage;
    action= request.getParameter("action");

    user_id= request.getParameter("user_id");
    passwd= request.getParameter("password");
    [boolean bError=(user_id==null)||(passwd==null)||m_DataBase .validateUser(user_id,passwd,false)==-1); htmlPage= "";]

    int nUserID=m_DataBase.validateUser(user_id,passwd,fal se);
    dbService Service=m_DataBase.getServiceByAdminID(Integer.toS tring(nUserID));

    if (!bError)

    if (action.equals("login"))
    if (!bError)
    htmlPage+="<br><div align='center'><font face='Verdana' size='5'>WELCOME</font></div>";
    htmlPage+="<div align='center'><br><font face='Verdana' size='5'>Login error</font><br>";
    htmlPage+="<a href='http://localhost:8080/testing'>Go back</a></font></div>";
    else if (action.equals("rest_mod_menu"))

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power


    1.) One of the variables being accessed at line 183 is null.
    2.) Constructing view pages in servlets was done around 1998 when there was no JSP. Please don't do it these days (for your sake).

Similar Threads

  1. HTTP Status 500 -
    By aiesha in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-23-2011, 05:16 AM
  2. http://localhost:8080/helloservice/HelloService?Tester HTTP Status 404 -
    By vietnamusa in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 03-13-2011, 01:02 AM
  3. HTTP Status 500 - type Exception report - TOM CAT
    By hari krishna in forum Java Servlet
    Replies: 6
    Last Post: 10-16-2010, 04:06 PM
  4. HTTP Status 500 - type Exception report
    By sini.sep87 in forum Java Servlet
    Replies: 15
    Last Post: 11-17-2009, 03:18 PM
  5. Replies: 7
    Last Post: 11-11-2009, 09:29 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