I am in a
jsp class they are using
tomcat 4 or 3 can't member. I am using 5.5.7 and when I do this assignment i keep getting this for an 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.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.chapter05.sras.main_jsp._jspService(org.apache.jsp.chapter05.sras.main_jsp:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
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.7 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.7
i have traced to my sqlconn.jsp file.
which looks like this
<%@ page import="java.sql.*" %>
<%
String url = "jdbc
dbc:SRASDSN";
String usernamedb="";
String passworddb="";
Connection connection=null;
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection= DriverManager.getConnection(url,usernamedb,passworddb);
}catch(Exception exc){
out.println(exc.toString());
}
Statement stm= connection.createStatement();
ResultSet rst = null;
%>
so what is it that i am doing wrong. Help me please evne the instructor can't help.
[ February 24, 2005: Message edited by: Bear Bibeault ]