Interview Question in SQL Server Reporting Services (SSRS)
Interview Question :: Error when connecting to Database full stack trace of the root cause is available in the Apache Tomcat/5.0.25
Jsp program
<%@ page language="java" import="java.sql.*" %>
<%
Connection conn=null;
try
{ Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:m... "scott", "tiger");
}
catch (Exception exc)
{ out.println(exc.toString() + "<br>"); }
out.println ("Database Connected.");
Statement stm = conn.createStatement();
%>
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.JspServlet.ser...
javax.servlet.http.HttpServlet.servic...
root cause
java.lang.NullPointerException
org.apache.jsp.basic10_jsp._jspService...
The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.
please help me in solving this problem

Loading ...