Hi good people!

Please help me out, i have an intranet running in my PC that means my PC is a local server. when user try to access the intranet it give them 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.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.NullPointerException
org.apache.jsp.jsp.validate_jsp._jspService(org.apache.jsp.jsp.validate_jsp:118)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

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

Do you think it's related to MS SQL Server? or do you mean MySQL\Java forum?

yes! it is related to MS SQL Server, my database is running in MS SQL Server. Pages that connect to the database are the one that are not running but the connection code is correct!

As MS is running and when you run a query it executes it, so the problem from the front-end application!

java.lang.NullPointerException
org.apache.jsp.jsp.validate_jsp._jspService(org.apache.jsp.jsp.validate_jsp:118)

Quite clearly this is a problem inside your JSP code in the page "validate.jsp". You are most probably calling some method on an object reference initialized to "null" as below :-

String a = null;
int b = a.length();

The above code snippet would throw a NullPointerException when it is run on the second line. In order to trace the cause of the error. Go inside your Tomcat installation and open the corresponding servlet generated for your JSP page.
It should be most probably in the folder "$TOMCAT_HOME/work/org/apache/jsp/jsp/" and should be named "validate_jsp.java". Check what is happening on line number 118. If this JSP was written by you, you will be able to backtrack and locate the corresponding line in your JSP page and trace the root cause of the Error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.