Hi,
In following program I am using type4 driver & servlet
when I run the application then drivers are loaded as well as connection is established properly.
but run time error is
java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1],
[0], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
Can any one help me why this error?
Code=>
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class JdbcServlet extends HttpServlet
{
Connection con=null;
Statement stmt=null;
ResultSet rst=null;
public void init(ServletConfig config) throws ServletException
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");// Type 4 Driver
System.out.println("The Driver are loaded");
con = DriverManager.getConnection("jdbc
racle:thin:@dbs:1521
rcl","java","java");
System.out.println("The Connection is established");
}
catch (Exception e)
{
e.printStackTrace();
}
}
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
try
{
res.setContentType("text/html");
PrintWriter pw=res.getWriter();
stmt=con.createStatement();
String sql="Select * from logkedar";
rst=stmt.executeQuery(sql);
while(rst.next())
{
//System.out.println("In Dispaly");
System.out.println("ID "+rst.getInt("id")+"\tNAME"+rst.getString("name")+"\tPASSWORD"+rst.getString("pwd"));
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}