Error : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

Hi,
I am writing an application and am trying to open a connection to Oracle database that is on a server. I am using the following test code to check if it connects to the database.
import java.sql.*;
class dbAccess {
  public static void main (String args []) throws SQLException
        String DBurl = "jdbc:oracle:thin:@local:1522:DBORA";
        String user = "test";
        String pwd = "test123";
        Class.forName("oracle.jdbc.driver.OracleDriver");
        con = DriverManager.getConnection(DBurl, user, pwd);
}On running the above program I keep on getting the following error:
Error : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
java.lang.NullPointerException
If I open the connection using JDeveloper wizard I can see the DB. But if running the above program in the JDev, JCreator or commandline keep on getting the error. Any help is appreciated. Thanks

How do I set the path for the Oracle Driver. ThanksI dunno. You're supposed to know where that class is (what jar it lives in). You set it up in JDeveloper in the first place, so you must have known where it is. After you know that, it's up to you to figure out how JCreator projects are set up to include jars in a project (just like JDeveloper projects do). For the command-line way, you set the classpath on the command-line arguments:
java -cp (your classpath here, which must include the jars it needs) ...

Similar Messages

  • Re : Error java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDrive

    Hello All,
    I am writing this simple program which connects to Oracle DB ( 10.2 ). The Java version I have is 1.5.0_13 . I do have oracle client installed. When I run the below code ...I get error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at OraThin.main(OraThin.java:13)The code I have is :
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    } Please suggest as to what am I missing, I am not that well versed with Java.
    Thanks in advance,
    Sam

    Hello Paul,
    Thanks for you suggestion. Based on it , I did add the exact jar file in the PATH environmental variable in XP.
    Path=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\a
    pp\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Ora
    cle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\
    client;C:\j2sdk1.4.2_06\bin;Even after adding the specific jar file *("C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar")* ..I am getting the exact same error. moreover, to verify this I also tried to import import oracle.jdbc.driver.*.....and now my code would not even complie and I get error *(c:\Program Files\Java\jdk1.5.0_13\bin\OraThin.java:3: package oracle.jdbc.driver*
    does not exist ) . I also rebooted my machine just to make sure ...that didnt work either. Also, I changed these jar to be first in the PATH varibale ..to avoid conflict with any later .jar's classes. The code is :
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    }What am I missing here!! ?
    Thanks again,
    Sam

  • Error: java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver

    hi,
    I try a simple connect to a DB 9.2.0.1
    through JDBC
    $javac -d /home/oracle/jdbc Applet1.java
    OK
    but ...
    oracle@pluto:/home/oracle/jdbc$ appletviewer -J-Djava.security.policy=mypolic>
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    at mypackage.Applet1.connectToDB(Applet1.java:55)
    at mypackage.Applet1.access$000(Applet1.java:17)
    at mypackage.Applet1$1.actionPerformed(Applet1.java:41)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1
    64)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstr
    ctButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonMode
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:25
    private void connectToDB(ActionEvent e) {
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver())
    con = DriverManager.getConnection ("jdbc:oracle:thin:@pluto:1521:DB
    9IDEV","system","manger");
    empValues.setText("Connected to the Database. Fetching Values from
    TOTO Tables.\n");
    fetchValues();
    } catch (SQLException ex) {
    System.out.println("Connection Error = " + ex.toString());
    I tried with:
    CLASSPATH=/tools/oracle/9.2.0/jdbc/lib/classes12.jar
    and ( loaded from otn for JDK 1.4 and 9.2.0.1)
    CLASSPATH=/tools/oracle/9.2.0/jdbc/lib/ojdbc14.jar
    What I have to put in the CLASSPATH, please ???

    Please don't cross post.
    http://forum.java.sun.com/thread.jsp?thread=541572&forum=57&message=2625798
    http://forum.java.sun.com/thread.jsp?thread=541573&forum=48&message=2625800
    http://forum.java.sun.com/thread.jsp?thread=541574&forum=31&message=2625802

  • Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.

    Hi!!!
    I�m trying to execute a example program included in http://archive.coreservlets.com/, the file is FruitTest.java....this compile very well...but....when i tried to execute it i have the following error:
    Error loading driver: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    Could somebody tell me what i have to add to my classpath?...and how to know if i have to download something and in what link is it?......
    Thanks in advance...
    Mary

    Hi mary,
    Please try following code, but before that please include classes12.zip in ur classpath. This file contains the oracle thin driver.
    Connection connection = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@dbUrl"
    connection = DriverManager.getConnection(url, "dbName", "password");
    }catch (Exception e){
    e.printStackTrace();
    good luck ...san :-)

  • Java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriveroracle.j

    My compile works just fine: javac mail_create.java
    but when I try to run I get OracleDriver error. Not sure how to fix this. Using RedHat Linux 7.3
    [ora9ias@tautog classes]$ java mail_create
    Error: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriveroracle.j
    dbc.driver.OracleDriver
    [ora9ias@tautog classes]$ pwd
    /home/oracle/9iAS/j2ee/home/default-web-app/WEB-INF/classes
    [ora9ias@tautog classes]$
    Some of my code...
    import java.io.*;
    import java.util.*;
    import java.text.*;
    import java.sql.*;
    public class mail_create {
    public static void main(String[] arguments) {
    StringTokenizer st1;
         int cnt1, cnt2, cnt3, cnt4, ival, newal;
         String commabv, commemail, comabbrv, commca, commail;
         String comcod []=new String [99];
         String comvar []=new String [800];
         String curabr []=new String [800];
         String comail []=new String [800];
    try {
         Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    .....

    http://search.java.sun.com/search/java/index.jsp?qt=%2Boracledriver+%2Bclassnotfoundexception&nh=10&qp=&rf=1&since=&country=&language=&charset=&variant=&col=javaforums

  • Java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver

    When I run java servlet test_ora.java with IE6.0 I get the following error page:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at test_ora.doGet(test_ora.java:21)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:536)
    Java Web Services Developer Pack/1.0-fcs
    I thought it is about JDBC configuration. But when I run JdbcCheckup.java everything works fine. Can anybody help me, please?
    test_ora.java looks like this:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class test_ora extends HttpServlet {
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    String str_dok_numer, str_f_inkraft;
    int int_dok_wal_id;
    Connection conn=null;
    Statement s = null;
    response.setContentType("text/html;charset=iso-8859-2");
    PrintWriter out = response.getWriter();
    try {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@192.168.15.2:1521:DB2","janusz","kimono");
    s = conn.createStatement();
    } catch (SQLException e) {
    out.println("Blad polaczenia z baza danych: " + e.getMessage());
    try {
    ResultSet r =s.executeQuery("select dok_numer, f_inkraft, dok_wal_id from gndlf_umowy_inkraft");
    out.println("DOK_NUMER\tF_INKRAFT\tDOK_WAL_ID");
    while(r.next()){
    out.println (r.getString (1) +"\t" + r.getString (2) + "\t" +r.getString (3));
    conn.close();
    } catch (Exception e) {
    out.println("Wystapil problem z wyslaniem SQL do bazy danych: " + e.getMessage());
    finally {
    try { conn.close(); }
    catch(SQLException e) {}
    and here is code for JdbcCheckup.java (I get it from Internet and made some modifications):
    * This sample can be used to check the JDBC installation.
    * Just run it and provide the connect information. It will select
    * "Hello World" from the database.
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    // We import java.io to be able to read from the command line
    import java.io.*;
    class JdbcCheckup {
    public static void main(String args[])
    throws SQLException, IOException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Prompt the user for connect information
    System.out.println("Please enter information to test connection to the database");
    String user;
    String password;
    String database;
    user = readEntry("user: ");
    int slash_index = user.indexOf('/');
    if (slash_index != -1)
    password = user.substring(slash_index + 1);
    user = user.substring(0, slash_index);
    else
    password = readEntry("password: ");
    database = readEntry("database(a TNSNAME entry): ");
    System.out.print("Connecting to the database...");
    System.out.flush();
    System.out.println("Connecting...");
    //Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@" + database, user, password);
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.15.2:1521:" + database, user, password);
    System.out.println("connected!!!");
    // Create a statement
    Statement stmt = conn.createStatement();
    // Do the SQL "Hello World" thing
    ResultSet rset = stmt.executeQuery("select 'Hello World' from dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    // close the result set, the statement and connect
    rset.close();
    stmt.close();
    conn.close();
    System.out.println("Your JDBC installation is correct.");
    // Utility function to read a line from standard input
    static String readEntry(String prompt)
    try
    StringBuffer buffer = new StringBuffer();
    System.out.print(prompt);
    System.out.flush();
    int c = System.in.read();
    while (c != '\n' && c != -1)
    buffer.append((char)c);
    c = System.in.read();
    return buffer.toString().trim();
    catch(IOException e) {
    return "";
    I use Java Web Service Developer Pack 1.0 on Win98 SE, database Oracle 8.1.7 is installed on dedicated IBM server (AIX 4.x).
    I put these lines in autoexec.bat:
    set PATH=C:\Perl\bin\;"C:\j2sdk1.4.0\bin";%PATH%
    set CLASSPATH=.;C:\j2sdk1.4.0\lib\tools.jar;C:\j2sdk1.4.0\lib\classes12.zip;C:\j2sdk1.4.0\lib\classes111.zip;%CLASSPATH%
    set CLASSPATH=C:\jwsdp_1_0\common\lib\servlet.jar;C:\jwsdp_1_0\common\lib\jasper-compiler.jar;C:\jwsdp_1_0\common\lib\jasper-runtime.jar;%CLASSPATH%
    set JAVA_HOME=C:\j2sdk1.4.0

    I have the same problem. I created a JSP page that uses a class to retrieve database information. I added a main method to the class so I would be able to test it. When I test the class using the main method the method returns all the information from the database. When I try it using Tomcat, I get the following error: java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    Does anyone have an idea of what is going on?
    My CLASSPATH configuration is the same.

  • JDBC,Oracle - java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracle

    I am using JBuilder5 which comes with jdk1.3. I have installed oracle 8.1.7 Enterprise version.
    I am using Win NT 4.0.
    I have set the PATH variable as E:\oracle\ora81\lib; and
    CLASSPATH as : E:\oracle\ora81\jdbc\lib\classes12.zip;E:\oracle\ora81\jdbc\lib\nls_charset12.zip;
    My JDBC code is
    package sample2;
    import java.sql.*;
    public class Two {
    Connection con;
    Statement st;
    public Two() {
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:oci8:@First","scott","tiger");
    st = con.createStatement();
    ResultSet rs = st.executeQuery("Select * from Book");
    while(rs.next())
    System.out.print(rs.getInt("ID")+"\t");
    System.out.print(rs.getString("title")+"\t");
    System.out.print(rs.getString("author")+"\t");
    System.out.print(rs.getString("subject")+"\t");
    System.out.println(rs.getInt("copies")+"\t");
    st.close();
    con.close();
    catch(Exception ex)
    System.out.println("Exception : " + ex.toString());
    public static void main(String[] args) {
    Two two1 = new Two();
    I am getting this exception:
    Exception : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I can understand that the classpath for the driver is the problem here.
    Also, I tried to run this file without JBuilder as a independent file on a notepad. Even then this exception is thrown.
    I have set the PATH to E:\oracle\ora81\bin and also to E:\oracle\ora81\lib.
    I ran "echo %classpath%" from my command prompt and this is what i am getting.
    E:\JBuilder5\jdk1.3\lib\tools.jar;E:\JBuilder5\jdk1.3\dt.jar;E:\oracle\ora81\jdbc\lib\classes12.zip;E:
    \oracle\ora81\jdbc\lib\nls_charset12.zip;
    I searched solution for this probldem in Sun JDC Forum itself. Many of them suggested to unzip classes12.zip and create jar file and add it in the classpath. Alos, some have suggested to copy the classes12.zip in home directory and then include this path in the classpath. I tried those solutions also. But, nothing seem to work.
    Somebody help me fix this problem.
    Thanks in advance.

    Jbuilder5 uses a different means of loading dependent classes. Use menu : Tools -->Configure Libraries - Click New and setup a new named library that points to classes12.zip .
    Then include this in u'r required Libraries of your project using menu Project --> Project Properties - required Libraries tab.
    I don't thnk Jbuilder5 even refers to CLASSPATH set in Windows NT environement. Path may need to be set to include oracle/ora81/bin directory though.
    Hope this helps.

  • Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.dr

    Hi
    I am trying to use type 4 driver to connect to my Oracle 9i Rel2 database. I downloaded the odbc14.jar from oracle and added in the C:\Oracle9i\jdbc\lib path. As on the website, I setup my environment:
    Setting Up Your Environment
    On Win95/Win98/NT:
    - Add [ORACLE_HOME]\jdbc\lib\classes111.zip and
    [ORACLE_HOME]\jdbc\lib\nls_charset11.zip to your CLASSPATH.
    (Add classes12.zip and nls_charset12.zip if JDK 1.2.x or 1.3 is
    used. Add ojdbc14.jar and nls_charset12.zip if JDK 1.4 is used.)
    - Make sure [ORACLE_HOME]\bin is in your PATH.
    Still I am getting the following error during runtime:
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at jdbc.InsertQueryEx.main(InsertQueryEx.java:11)
    Below is the source code:
    import java.sql.*;
    import java.io.*;
    public class InsertQueryEx {
    public static void main(String[] args)throws Exception{
    Class.forName("oracle.jdbc.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@Prashy:1521:orcl", "scott", "tiger");
    DataInputStream din = new DataInputStream(System.in);
    Statement stmt = con.createStatement();
    while(true){
    try{
    System.out.println("enter emp name");
    String name = din.readLine();
    System.out.println("enter emp no");
    int no = Integer.parseInt(din.readLine());
    System.out.println("enter emp salary");
    float sal = Float.parseFloat(din.readLine());
    System.out.println("enter emp address");
    String addr = din.readLine();
    int count = stmt.executeUpdate("insert into myemp values("+no+",'"+name+"',"+sal+",'"+addr+"')");
    if(count>0)
    System.out.println("Record added");
    else
    System.out.println("Failed");
    catch (Exception e){
    System.err.println("Exception: "+e.getMessage());
    Any help is appreciated
    Thanks
    Prashant

    I am sorry but I did add those in the classpath but still getting this error:
    This is what I have for user variable in classpath:
    .;C:\Oracle9i\jdbc\lib\ojdbc14.jar;C:\Oracle9i\jdbc\lib\nls_charset12.jar
    error is:
    java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at jdbc.InsertQueryEx.main(InsertQueryEx.java:14)
    Thanks

  • SchemaTool() throws ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    KODO 2.5.3
    I am trying to use the SchemaTool java class for schema manipulations. When
    I try to construct a SchemaTool object I get the following exception:
    com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    NestedThrowables:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I am passing an instance of MultiLoaderClassResolver (constructed using a
    custom URLClassLoader) as the ClassResolver argument to the SchemaTool
    constructor. The orcale jar "classes12.jar" is one of the URLs in the
    URLClassResolver. Before constructing a SchemaTool object, a call to
    canResolveClass("oracle.jdbc.driver.OracleDriver") on the class resolver
    returns true. So why is SchemaTool not able to find this class?
    Thanks
    Vijay

    Marc,
    It might well be problems with my custom class loader (which are a pain to
    debug indeed) or my lack of understanding of some of your schema tool
    classes, but the basic problem I encountered (before getting to the Logger
    issue) is as follows:
    I have an instance of MultiLoaderClassResolver constructed using my custom
    class loader.
    A call to resolveClass("orcale.jdbc.driver.OrcaleDriver") on this instance
    returns the correct Class (does not throw a ClassNotFound exception).
    The same MultiLoaderClassResolver instance is passed as an argument to
    SchemaTool(). SchemaTool.refresh() throws an exception:
    ClassNotFound: orcale.jdbc.driver.OrcaleDriver
    So it seems to me that somewhere in the SchemaTool code you are trying to
    resolve orcale.jdbc.driver.OrcaleDriver using something other than the
    instance of MultiLoaderClassResolver that I passed in. From the stack trace
    in my earlier message, it seems like that is happening in:
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassM
    apping.java:1584)where an instance of ConfigurationConnector is constructed. BTW, this is how
    I construct and pass a ConfigurationConnector to SchemaTool:
    JDBCConfiguration conf = new JDBCSimpleConfiguration(someProps);
    ClassResolver resolver = new MultiLoaderClassResolver(myCustomClassLoader);
    Connector connector = new ConfigurationConnector(conf, resolver, false);
    SchemaTool sTool = new SchemaTool(conf, resolver, connector);
    Vijay
    "Marc Prud'hommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Vijay-
    Custom ClassLoader problems are often very hairy to debug. The first
    error message you are receiving indicates a problem:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement LogThis indicates to me that the
    "org.apache.commons.logging.impl.Log4JLogger" and
    "org.apache.commons.logging.Log" classes are being loaded in different
    ClassLoaders, which is generally a bad thing. Is your URLClassLoader
    deferring to the parent ClassLoader?
    I think that the first step is to identify why the class loaders are
    different for these two classes (which should be easy to do with some
    printlns in a test program that uses your URLClassLoader).
    Bear in mind that this isn't technicall a Kodo issue, but a general
    ClassLoader issue. However, we are happy to try to provide hints and
    guidance about how to isolate the source of the problem.
    In article <[email protected]>, Vijay Ganesan wrote:
    After trying out some combinations, the stack trace at the bottom of
    this
    message gives a better clue of what my problem is:
    Looks like a new ConfigurationConnector is created in ClassMapping.javathat
    ignores my class resolver (based on my custom class loader) that Icreated
    as follows:
    JDBCConfiguration conf = new JDBCSimpleConfiguration(someProps);
    ClassResolver resolver = newMultiLoaderClassResolver(myCustomClassLoader);
    >>
    Connector connector = new ConfigurationConnector(conf, resolver, false);
    SchemaTool sTool = new SchemaTool(conf, resolver, connector);
    Adding the following line before the schema related code solves theproblem:
    Thread.currentThread().setContextClassLoader(myCustomClassLoader);
    However, that causes another error which, from a brief look at
    LogFactoryImpl, seems surely related to custom class loaders. Don't knowhow
    to get past this one:
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:532)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:272)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.createConnecti
    onFactory(ConfigurationConnector.java:140)
    --------Stack trace------------
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at
    com.solarmetric.util.classes.LoaderClassResolver.resolveClass(LoaderClassRes
    olver.java:34)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.createConnecti
    onFactory(ConfigurationConnector.java:113)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
    rationConnector.java:67)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
    rationConnector.java:59)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.ConfigurationConnector.<init>(Configu
    rationConnector.java:39)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.createPKColumns(ClassM
    apping.java:1584)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.install(ClassMapping.j
    ava:1416)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMapping(Mapping.java:
    169)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java
    :116)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.Mapping.createMappings(Mapping.java
    :86)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.createMappings(SchemaTool.j
    ava:831)
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:333
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:321
    at
    com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refresh(SchemaTool.java:311
    "Stephen Kim" <[email protected]> wrote in message
    news:[email protected]...
    My guess is that your custom classloader is preventing instanceof. Can
    you try using the system classloader or see if java.sql.Driver is
    assignable from oracle.jdbc.dirver.OracleDriver?
    Vijay Ganesan wrote:
    KODO 2.5.3
    I am trying to use the SchemaTool java class for schema
    manipulations.
    When
    I try to construct a SchemaTool object I get the following exception:
    com.solarmetric.kodo.runtime.FatalUserException:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    NestedThrowables:
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I am passing an instance of MultiLoaderClassResolver (constructed
    using
    a
    custom URLClassLoader) as the ClassResolver argument to the
    SchemaTool
    constructor. The orcale jar "classes12.jar" is one of the URLs in the
    URLClassResolver. Before constructing a SchemaTool object, a call to
    canResolveClass("oracle.jdbc.driver.OracleDriver") on the classresolver
    returns true. So why is SchemaTool not able to find this class?
    Thanks
    Vijay
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z

    Hello.
    I'm trying to detect if a row is the last one of a ResultSet (from a
    executeQuery):
    ResultSet results = sql.executeQuery();
    if (results.isLast())
         out.println("EMPTY");
    But I get this error message:
    Error 500
    Servlet internal error:
    java.lang.AbstractMethodError: oracle.jdbc.driver.OracleResultSet.isLast()Z
         at estructura_10._jspService(mycode_10.java:93)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
    What am I doing wrong?
    Thank you very much.

    What do you want to do with a RS instead at least 1 next() ?
    Only 1 next() - then you know, if it is empty.
    If it's not empty, I assume you will do any retrieval, so you will have needed at least this first next(), don't you?
    Even if you would like to skip the first row (though you have retrieved it), it would not be too much costs.
    If you don't want to retrieve but only count your rows, do a query "SELECT COUNT(*) FROM table WHERE <your condition ...>".
    However, to get the count you would have to do one - only one - next() call.

  • Java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.lo

    I am evaluating the sun RI of javax.sql package . I downloaded the jdbc_rowset_tiger-1_0_1-mrel-jwsdp.zip package and installed in my machine.
    I tried the JdbcRowSet implmenation and it worked pretty smooth. I wanted to try the disconnected Rowset implementation. I tried CachedRowSet Implementation with thin driver. I get the following error message.
    Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z
    at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)
    at com.sun.rowset.CachedRowSetImpl.execute(Unknown Source)
    at CachedRowSetSampl.main(CachedRowSetSampl.java:79)
    I am using thin driver with Oracle8i db.
    Appreciate any early responses

    I had the same problem initially.
    I fixed it by downloading an updated ojdbc14.jar (1).
    It may be because I downloaded the ocrs12.jar from there a bit earlier and the versions of ojdbc14.jar and ocrs12.jar need to match (that is, come from the Oracle10g suite of jars).
    Here is the class I used:
    import java.sql.*;
    import javax.sql.*;
    import com.sun.rowset.WebRowSetImpl;
    import com.sun.rowset.providers.RIXMLProvider;
    public class test {
      public static void main(String[] args) {
        try {
          Class.forName("oracle.jdbc.driver.OracleDriver");
          WebRowSetImpl wrs = new WebRowSetImpl();
          wrs.setCommand("select table_name from user_tables");
          wrs.setUsername("scott");
          wrs.setPassword("tiger");
          wrs.setUrl("jdbc:oracle:thin:@paramount.com:1521:ORCL");
          wrs.execute();
          wrs.writeXml(System.out);
        } catch (Exception e) {
          System.out.println("Exception:"+e);
    Dale(1) http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html (Oracle Database 10g JDBC Drivers)

  • Web Server 6.1 and ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    I am trying to set up the Oracle jdbc on Sun ONE Web Server Enterprise Edition 6.1 but do not seem to be having any luck. It seems that OCI and thin fails.
    I have installed the Oracle client in the folder c:\oracle\ora92. I have selected the following items to install in the Oracle client: Oracle 9i Client 9.2.0.1.0, Common files, JDBC/OCI, JDBC/Thin, and Internet Directory Client. (I then downloaded ojdbc14.jar and placed it in jdbc\lib folder.)
    I am seeing the following error: ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    From the following web page:
    <code>
    <%@page language="java"
    import="java.sql.*,
    oracle.jdbc.driver.*,
    oracle.sql.*
    "%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <%
    //connections to ops2
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@wydot-ops2","username","password");
    Statement stmt = conn.createStatement();
    ResultSet rset = null;
    rset = stmt.executeQuery("SELECT AGENCY_NUMID,AGENCY_NAME FROM flightsch.state_agencies ORDER BY agency_name");
    while(rset.next())
    String ag_name = rset.getString("agency_name");
    %>
    <%= ag_name%>
    <%
    } //end of while loop
    rset.close();
    stmt.close();
    conn.close();
    %>
    </body>
    </html>
    </code>
    I have made the following entries into the Sun One Administration pages:
    Java Tab
    JVM path Settings
    Classpath suffix = c:\oracle\ora92\jdbc\lib
    Ignore Env Class Path = on
    Native Lib Path Prefix = c:\j2sdk1.4.2_02\lib
    Native Lib Path Suffix =
    JDBC Connection Pools
    Pool = jdbc-oracle-pool
    DataSource Classname = oracle.jdbc.pool.Oracle.DataSource
    URL = wydot-ops2
    User = username
    Password = password
    (Rest of items = defaults)

    oracle.jdbc.driver.OracleDriver is deprecated, you may be having an issue with that. Try oracle.jdbc.OracleDriver instead.
    Typically you don't need to registerDriver, just load the classes:
    Class.forName("oracle.jdbc.OracleDriver");
    WEB-INF/lib is the correct place to place application jar files, it is part of the automatic CLASSPATH for typical containers.

  • 500 Internal Server Error java.lang.NoSuchFieldError:  oracle.jdbc.oci8.OCI

    I am running small SQLJ in a JSP to get the hang of it.
    I am running on 920, and have downloaded the new runtime classes for 920 and tested per the instructions.
    Using JDev 903, here is the private method for running a query ( It is from an article I found by Julie Basu at Oracle; I have played around with the empno/emp_no variable to convert it to an int):
    <%! private String runQuery(String emp_no) throws java.sql.SQLException {
    DefaultContext dctx =null;
    String ename = null; double sal = 0.0; String hireDate=null;
    StringBuffer sb = new StringBuffer();
    //int emp_no = Integer.parseInt(emp_no);
    try {
    dctx =Oracle.getConnection("jdbc:oracle:oci8:@olap","scott","tiger");
    #sql [dctx] { SELECT ename, sal, TO_CHAR(hiredate,'DD-MON-YYYY')
    INTO :ename,:sal,:hireDate
    FROM scott.emp WHERE empno=:emp_no
    sb.append("<BLOCKQUOTE><BIG><B><PRE>\n");
    sb.append("Name :"+ename+ "\n");
    sb.append("Salary :"+sal+ "\n");
    sb.append("Date hired :"+hireDate);
    sb.append("</PRE></B>></BIG></BLOCKQUOTE>");
    } catch (java.sql.SQLException e){
    sb.append("<P> SQL Error: <pre> "+e+" </pre> </p>\n");
    } finally {
    if (dctx!=null) dctx.close();
    return sb.toString();
    %>
    I keep getting the following error:
    java.lang.NoSuchFieldError: oracle.jdbc.oci8.OCIEnv.envCharSetId
         int oracle.jdbc.oci8.OCIEnv.get_env_handle()
              native code
         long oracle.jdbc.oci8.OCIEnv.getEnvHandle()
              OCIEnv.java:70
         oracle.jdbc.dbaccess.DBConversion oracle.jdbc.oci8.OCIDBAccess.logon(java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
              OCIDBAccess.java:390
         void oracle.jdbc.driver.OracleConnection.<init>(oracle.jdbc.dbaccess.DBAccess, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
              OracleConnection.java:361
         java.sql.Connection oracle.jdbc.driver.OracleDriver.getConnectionInstance(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Properties)
              OracleDriver.java:485
         java.sql.Connection oracle.jdbc.driver.OracleDriver.connect(java.lang.String, java.util.Properties)
              OracleDriver.java:337
         java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.util.Properties, java.lang.ClassLoader)
              DriverManager.java:517
         java.sql.Connection java.sql.DriverManager.getConnection(java.lang.String, java.lang.String, java.lang.String)
              DriverManager.java:177
         void sqlj.runtime.ref.ConnectionContextImpl.<init>(sqlj.runtime.ref.ProfileGroup, java.lang.String, java.lang.String, java.lang.String, boolean)
              ConnectionContextImpl.java:346
         void sqlj.runtime.ref.DefaultContext.<init>(java.lang.String, java.lang.String, java.lang.String, boolean)
              DefaultContext.java:172
         sqlj.runtime.ref.DefaultContext oracle.sqlj.runtime.Oracle.getConnection(java.lang.String, java.lang.String, java.lang.String, boolean)
              Oracle.java:580
         sqlj.runtime.ref.DefaultContext oracle.sqlj.runtime.Oracle.getConnection(java.lang.String, java.lang.String, java.lang.String)
              Oracle.java:609
         java.lang.String _SQLJ.runQuery(java.lang.String)
         [SQLJ.jsp]
              SQLJ.jsp:42
         void SQLJ.jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         [SQLJ.jsp]
              SQLJ.jsp:20
         void com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              OrionHttpJspPage.java:56
              [SRC:/SQLJ.jsp]
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              JspPageTable.java:317
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:465
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JspServlet.java:379
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    When I run it using just JDBC with the thin Driver, I have no problems.
    What could be the issue?
    Thanks,
    Scott Rappoport

    Fail to make OCI connection Using JDeveloper

  • Exception Occur  "java.lang.AbstractMethodError: oracle.jdbc.driver....."

    I am using oracle 10.2.0.1.0. I can able to connect the database using sqlplus. I am executing some ant task. While running the ant script I am getting the following exception.
    [java] INFO: Locale id is:1
    [java] Oct 16, 2006 7:20:24 PM com.cramer.globalisation.resourcebundleloader.DataBaseMgr getLocaleI
    d
    [java] INFO: Using the default locale ID :1
    [java] Oct 16, 2006 7:20:24 PM com.cramer.globalisation.resourcebundleloader.ResourceBundleReader l
    oadPropertyFile
    [java] INFO: .\html\homepages\thersholdhomepage\config\bundle\thersholdhomepage.properties is Crame
    r resource bundle file
    [java] java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/lang/Stri
    ng;)Ljava/sql/Savepoint;
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
    [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
    [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
    [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
    [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [java] at org.apache.tools.ant.Task.perform(Task.java:364)
    [java] at org.apache.tools.ant.Target.execute(Target.java:341)
    [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [java] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.ja
    va:37)
    [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [java] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [java] at org.apache.tools.ant.Task.perform(Task.java:364)
    [java] at org.apache.tools.ant.Target.execute(Target.java:341)
    [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [java] Caused by: java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljav
    a/lang/String;)Ljava/sql/Savepoint;
    [java] at com.cramer.globalisation.resourcebundleloader.DataBaseMgr.insertBundleRow(DataBaseMgr
    .java:118)
    [java] at com.cramer.globalisation.resourcebundleloader.ResourceBundleLoader.loadPropertyFiles(
    ResourceBundleLoader.java:77)
    [java] at com.cramer.globalisation.resourcebundleloader.ResourceBundleLoader.main(ResourceBundl
    eLoader.java:47)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
    [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
    [java] ... 24 more
    [java] --- Nested Exception ---
    [java] java.lang.AbstractMethodError: oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/lang/Stri
    ng;)Ljava/sql/Savepoint;
    [java] at com.cramer.globalisation.resourcebundleloader.DataBaseMgr.insertBundleRow(DataBaseMgr
    .java:118)
    Can anyone help me in this issue?.....

    few of my colligue are using the same database, and
    they are not getting these kind of error. Only my
    system and 2 more system is giving these problem.
    All of us are using the same version of oracle
    only.I said driver not database.
    >
    Only I am and 2 more friends are getting the "
    java.lang.AbstractMethodError:
    oracle.jdbc.driver.T4CConnection.setSavepoint(Ljava/la
    ng/String")
    "And are you running the same exact code as everyone else?
    Additionally you might want to check your class path to verify that only what is required is in that.
    You haven't put anything in the ext directory have you?

  • Java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getBlob

    Hi,
    I am using WSAD 4.0.3. While I am running application I am getting this error.
    [10/5/02 13:26:17:984 GMT+08:00] 7a483a9b ExceptionUtil X CNTR0020E: Non-application exception occurred while processing method lodge on bean BeanId(CePAC#CePACEJB.jar#CfsControllerBean, f0b300abe8): java.lang.AbstractMethodError: oracle/jdbc/driver/OracleResultSet.getBlob
    I have set the classpath i.e classes111.zip. This function is to insert record to a database having blob field.
    Waiting for a quick response.

    java.lang.AbstractMethodErrorIn jdbc that often occurs because you are using a newer version of JDBC (the jvm) and an older driver. It occurs because you called a method which exists in the newer JDBC but does not exist in the older driver.
    getBlob() was introduced in java 1.2, so it was not in JDBC 1.0.

Maybe you are looking for

  • Thunderbolt port - MDP fitting doesn't fit

    I've just purchased a MacBook Pro 13" to replace a stolen MacBook. The port to connect to an external display has changed but everywhere seems to say my existing Mini DisplayPort cable will still work but it's a completely different fitting.  I'm ver

  • FTP error: Receiver Communication Channel

    Hello Experts, I am getting the following FTP error in my Receiver Communication Channel. Error occurred while connecting to FTP server:  Peer certificate rejected by ChainVerifier Please suggest. Thanks, Anup

  • Calibration Executive fails to generate pdf reports

    I have Calibration Executive 3.4.1 and it has stopped generating pdf, word, or excel reports. It still generates text and html reports. I reinstalled cal exec and made sure it as all the current updates. The only thing we changed lately was installin

  • How we can see the abap memory data

    How we can see the abap-memory data fine the code below import lsind          report_title          table_name          report_field          change_display          show_hide          conversion_exits          table_description          form_program

  • Setting up a WD Passport external HD

    This may be intuitive for many of you but not for me.  I just bought a 2TB Western Digital external hard drive.  I've plugged it into the computer and and transferred the utility and security files.  I've opened the WD Drive Utilities icon and run th