Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

servlet & type4 driver

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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();
}
}
}
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you've got some internal error in your Oracle database. I don't think these errors are cause by a bug in your JDBC code. YOu can find out what an ORA-00600 means via metalink
 
Bartender
Posts: 2658
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Confirming Paul's remark:

It's an internal error. It's not a JDBC error.

If you have an Oracle Metalink account, you can open support document 153788.1

This active document helps you to locate the internal error.

I looked up your error ttcgcshnd-1:

DESCRIPTION:

Oracle is checking that the local character set id is valid as part
of the process to do character data conversions between different
character sets.

This error is raised when the local character set id is found to
be invalid.

...
SUGGESTIONS:
...
Fixed: 8.1.7.2, 9.0.1.0



Regards, Jan
[ February 28, 2007: Message edited by: Jan Cumps ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic