By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,805 Members | 1,280 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,805 IT Pros & Developers. It's quick & easy.

i cannot connect to the server

P: 1
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: Exception in JSP: /index.jsp:30

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


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
filters.SessionValidate.doFilter(SessionValidate.j ava:139)
root cause

java.lang.NullPointerException
hrd.Dbconnect.getStatement(Dbconnect.java:132)
hrd.SecurityDetail.<init>(SecurityDetail.java:66)
org.apache.jsp.index_jsp._jspService(index_jsp.jav a:76)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
filters.SessionValidate.doFilter(SessionValidate.j ava: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
Apr 3 '12 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
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 NullPointerException 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
Apr 4 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.