i cannot connect to the server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swapnilw7
    New Member
    • Apr 2012
    • 1

    i cannot connect to the server

    HTTP Status 500 -

    type Exception report

    message

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

    exception

    org.apache.jasp er.JasperExcept ion: Exception in JSP: /index.jsp:30

    27: else
    28: {
    29: //System.out.prin tln("session id is......."+sess ion.getId());
    30: SecurityDetail sd = new SecurityDetail( );
    31: valGroup vg = sd.getGroup();
    32: groupName = vg.getGroupName ();
    33: imgName = chkNull(vg.getI mgName(),"");


    Stacktrace:
    org.apache.jasp er.servlet.JspS ervletWrapper.h andleJspExcepti on(JspServletWr apper.java:451)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 373)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:329)
    org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :265)
    javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
    filters.Session Validate.doFilt er(SessionValid ate.java:139)
    root cause

    java.lang.NullP ointerException
    hrd.Dbconnect.g etStatement(Dbc onnect.java:132 )
    hrd.SecurityDet ail.<init>(Secu rityDetail.java :66)
    org.apache.jsp. index_jsp._jspS ervice(index_js p.java:76)
    org.apache.jasp er.runtime.Http JspBase.service (HttpJspBase.ja va:98)
    javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
    org.apache.jasp er.servlet.JspS ervletWrapper.s ervice(JspServl etWrapper.java: 331)
    org.apache.jasp er.servlet.JspS ervlet.serviceJ spFile(JspServl et.java:329)
    org.apache.jasp er.servlet.JspS ervlet.service( JspServlet.java :265)
    javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:803)
    filters.Session Validate.doFilt er(SessionValid ate.java:139)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.

    Apache Tomcat/5.5.26
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    An HTTP 500 error means that something went wrong on the server and the server could not process the request. Typically you don't get any additional error information and it is frustrating to solve the problem because it could be anything.

    But you're lucky, you actually have more information than you would normally get.

    According to what you posted, you are encountering a NullPointerExce ption on line 132 of your Dbconnect.java code file.

    This means that the connection that you tried to use was not properly instantiated/created/"newed".

    Check out that line and make sure that the variable is properly created before you try to use it.

    -Frinny

    Comment

    Working...