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: <mimifuzzy_at_my-deja.com>
Date: Wed, 05 Apr 2000 17:56:41 GMT
Message-ID: <8cfuog$bp6$1@nnrp1.deja.com>


I am running Windows NT4.0, JDK1.2.2, Oracle8i (8.1.5), and Apache Tomcat 3.x beta and have the same problem. I read in the Oracle documentation that the installed JDBC drivers don't work with JDK1.2.2. So, I went to Oracle's web site and downloaded a new JDBC driver (classes12.zip) and a new charset. I've placed the new zip files in my classpath in place of the old ones. It's still crashing though.

I tried running the sample program
JdbcCheckup.java, but it crashes too.

I'm going to try it again by specifying the classpath on the command line just to make sure no other classpath is screwing it up.

Kevin

In article <38C75870.158B4A6E_at_bellsouth.net>,   Dare Obasanjo <kpako_at_bellsouth.net> 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.25hoursa day.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?
>
>

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Apr 05 2000 - 12:56:41 CDT

Original text of this message

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