Solved

Java Programming question

Posted on 1997-09-08
1
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
EricKaplan earned 50 total points
ID: 1226662
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

733 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