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
Solved

Java Programming question

Posted on 1997-09-08
1
234 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
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

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 second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 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