Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Connecting to DB crashes Java

Connecting to DB crashes Java

From: Dare Obasanjo <kpako_at_bellsouth.net>
Date: Thu, 09 Mar 2000 02:53:20 -0500
Message-ID: <38C75870.158B4A6E@bellsouth.net>


Everytime I try to connect to my database using jdbc Java crashes on me.

I use jdk1.2.2 on an Oracle 8.1.5 database on Windows 98SE. Here's my problem

/*

DB access method 1



ry{

   Class.forName("oracle.jdbc.driver.OracleDriver");   }catch(ClassNotFoundException e){
   System.out.println("Could not load Oracle Driver");   }

  String user, pass;
  user = readEntry("userid: ");
  pass = readEntry("password: ");
   Connection conn =
 DriverManager.getConnection("jdbc:oracle:oci8:"+user+"/"+pass+"@orcl.25hoursaday.com");

 or
   DriverManager.getConnection ("jdbc:oracle:oci8:@", "scott", "tiger");

or
DriverManager.getConnection("jdbc:oracle:oci8:"+user+"/"+pass+"@");

all cause the following error message to crop up JAVA caused an invalid page fault in
module JAVAI.DLL at 017f:6ee0fb83.
Registers:

EAX=1000a1e4 CS=017f EIP=6ee0fb83 EFLGS=00010216
EBX=00000000 SS=0187 ESP=0063f11c EBP=0063f1a4
ECX=12e67a4b DS=0187 ESI=014fe480 FS=4e27
EDX=00006874 ES=0187 EDI=00654758 GS=0000
Bytes at CS:EIP:
8b 4b 04 89 4c 24 10 85 c9 75 6f 8b 03 8d 70 14 Stack dump:
0063f1a4 00654758 014fe480 007f9310 62757473 4f5f3800 42444943 74617453 00000000 00000000 40004233 00003631 00000000 00000000 00000000 6ee0f816

javai.dll is a dll in the lib subfolder of the jre folder in the Oracle program files
directory.
*/

/*

method 2


 OracleDriver ora = new OracleDriver();   Connection conn = ora.defaultConnection();

comment: This just causes java.sql.SQLExceptions to be thrown. */

Anybody have an idea what's wrong? Received on Thu Mar 09 2000 - 01:53:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US