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 -> Re: Connecting to DB crashes Java

Re: Connecting to DB crashes Java

From: C. Ferguson <c_ferguson_at_rationalconcepts.com>
Date: Thu, 09 Mar 2000 09:32:30 GMT
Message-ID: <38C76FA6.8B820A40@rationalconcepts.com>


Wow, correct me if I'm wrong, but I thought only personal oracle was valid on win98...hmmm...I'll have to go check the oracle site.

Anyway, that could be one problem.

Since your are using the oci driver, I'm assuming you are running your app on the database server machine.

Since 8.1.5 is only up to jdk1.1.8, and you've installed jdk1.2.2 on that machine, then you have probably stomped the registry entry for the java version and oracle is now confused because the java version in the registry is now 1.2.2 but oracle only supports version 1.1.8...just another possible problem.

Last thought,
try the thin driver.

regards,
cindy

Dare Obasanjo wrote:

> 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 - 03:32:30 CST

Original text of this message

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