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
Answers to "Error when connecting to Database full stack trace of the root cause is available in the Apache Tomcat/5.0.25"
RE: Error when connecting to Database full stack trace of the root cause is available in the Apache Tomcat/5.0.25?

I think this is coming because your database driver configuration is missing, please configure JDBC-ODBC DSN in control panel for windows.



Please check out how can you configure this driver at the link below:



http://www.javaworld.com/javaworld/jw-07...

http://livedocs.adobe.com/dreamweaver/8/...
 
Vote for this answer ::  
Update Alert Setting