Solved

Java Programming question

Posted on 1997-09-08
1
207 Views
Last Modified: 2011-10-03
Hi
I was trying to run the demo applet JdbcApplet.java for jdbc thin driver using the JDK appletviewer from sun.

The applet came up with the "connection refused" exception on the following line of code:
conn = DriverManager.getConnection (connect_string);

the connect_string had been earlier defined as

static final String connect_string =
                  "jdbc:oracle:thin:myuserid/mypassword@myhost:1525:corvus1";

1525 is the port listed in /etc/services for orasrv
corvus1 is the sid as per our administrator sqlplus.
I was running the applet on a Win95 PC from a DOS window and trying to connect to an Oracle8 database on an AIX box.
Do I need to grant some specific permissions ?

0
Comment
Question by:monal090797
1 Comment
 
LVL 3

Accepted Solution

by:
EricKaplan earned 50 total points
Comment Utility
The proper error should be a security exception as applets are allowed to access the host which they ere loaded from and only it.

In any case (even if you run it frm the AIX host), make sure you have loaded the oracle driver (you can debug the client and do a step into driver manager code and see how it iterates over the loaded drivers).

-Eric.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now